Here is a part of my Signature.cpp :
static CryptoPP::AutoSeededRandomPool rng; //this fixed rng
void Signature::SignHash() //method declared in my
static RSA::PublicKey RSApublic; //keys
//and not declared inside the class as Ingo Naumann suggested
}I'm not sure that the key pair is generated only once ( as I want). I'm
going to verify that key pair is not re-generated every time i call the
method , because I have to sign every file with the same RSAprivate.
Il giorno sabato 14 luglio 2012 21:44:24 UTC+2, Michele ha scritto:
> Ok David, now i'm deleting RNG from class members. I'm not sure that I've
> 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
>> static OFB_Mode<AES>::Encryption s_globalRNG;
>> RandomNumberGenerator & GlobalRNG()
>> See the docs here http://www.cryptopp.com/wiki/RandomNumberGenerator
>> Best Regards
>> On Sat, Jul 14, 2012 at 5:53 PM, Michele <michelegucciard...@gmail.com>wrote:
>>> RSA::PrivateKey RSAprivate;
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.