[Mono-dev] RSA and ECDH

Brandon Perry bperry.volatile at gmail.com
Sun Feb 16 16:54:44 UTC 2014


On 02/16/2014 10:45 AM, Edward Ned Harvey (mono) wrote:
> Yeah, I thought of that - when I first did this a few months ago, I did as you suggested, but then, I think, the mono implementation differs from the .NET implementation - where I think .NET generates key in constructor, but since key generation is so expensive, mono delays key generation until something needs it, just *hoping* the RSA object will be disposed unused (which is probably very rare, I'm guessing).  Which is the reason that I do the export of the key.  It's the cheapest way I can see to force creation of the key.

If this is the case, that sounds like a bug. Behaviour shouldn't deviate
across implementations like that AFAIK.


More information about the Mono-devel-list mailing list