Ok David, now i'm deleting RNG from class members. I'm not sure that I've
understand your example but i will try...
Il giorno sabato 14 luglio 2012 19:08:07 UTC+2, David Irvine ha scritto:
>
> It seems you may not be using the RNG correctly. It's generally preferred
> to have on per thread at least (or a global if you like). i.e. in test.cpp
> you will see how this was done. In your case I am not sure you should have
> a class member RNG used as you have. This can cause all sorts of issues
> with threading and protection of the os provided generator etc.
>
> static OFB_Mode<AES>::Encryption s_globalRNG;
>
> RandomNumberGenerator & GlobalRNG()
> {
> return s_globalRNG;
> }
>
> See the docs here http://www.cryptopp.com/wiki/RandomNumberGenerator
>
> Best Regards
> David Irvine
>
>
> On Sat, Jul 14, 2012 at 5:53 PM, Michele <[email protected]>wrote:
>
>> RSA::PrivateKey RSAprivate;
>> string DigitalSIgn;
>>
>
>
--
You received this message because you are subscribed to the "Crypto++ Users"
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at
http://www.cryptopp.com.