Hello folks, I try to use RSA algorithm to crypt a binary file with 5.10 version
of crypto++ library with this code (below) but it returns an error. I understan
th reason, but my request is what 's the best way to implement this
Thank's for answers or ideas
Any help will be appreciated
Fred

bool RSAEncryptFile (char *pubFilename,char *seed,const char *in, const char
*out)
{
FileSource pubFile(pubFilename, true, new HexDecoder);
RSAES_OAEP_SHA_Encryptor pub(pubFile);

RandomPool randPool;
randPool.Put((byte *)seed, strlen(seed));
FileSource f(in, true, new PK_EncryptorFilter      (randPool, pub, new
HexEncoder(new FileSink(out))));

return true;
}


  • ... Ashraf AbuSharekh
    • ... Дмитрий Адов
    • ... glokomov
    • ... ffvc
    • ... ffvc

Reply via email to