Hi,
How can i generate key that are wrapped like the
rsa400pb.dat rsa400pv.dat files inside the source directory ?
or, alternatively:
who knows how to make that decrypt code work:
( the Plaintext output is always empty.)
const char *PrivateKey = "30820273020100300D..... etc.
void Decrypt64Byte(unsigned char *InStr, unsigned char *OutStr)
{
StringSource privString(PrivateKey, true, new HexDecoder);
RSAES_OAEP_SHA_Decryptor priv(privString);
AutoSeededRandomPool rng;
priv.Decrypt(
rng,
(byte const*) InStr,
64,
(byte *) OutStr);
}
thanks for any help.
