Thanks very much. I tested this funtion. But I really don't know how to get
key raw data. ex: 64Bytes key data in buffer. This function output to file
and file content which encrypt ....
I only want 64ytes key data. Have any suggestion ?
00245 void GenerateRSAKey(unsigned int keyLength, const char *privFilename,
const char
*pubFilename, const char *seed)
00246 {
00247 RandomPool randPool;
00248 randPool.Put((byte *)seed, strlen(seed));
00249
00250 RSAES_OAEP_SHA_Decryptor priv(randPool, keyLength);
00251 HexEncoder privFile(new FileSink(privFilename));
00252 priv.DEREncode(privFile);
00253 privFile.MessageEnd();
00254
00255 RSAES_OAEP_SHA_Encryptor pub(priv);
00256 HexEncoder pubFile(new FileSink(pubFilename));
00257 pub.DEREncode(pubFile);
00258 pubFile.MessageEnd();
00259 }
--
View this message in context:
http://www.nabble.com/Make-RSA-Key...Please-help%21-tf1854922.html#a5077467
Sent from the Crypto++ forum at Nabble.com.