Hi all,

I would like to retrieve the max buffer authorized for a public key when I read
the corresponding file (ie 214bytes buffer max for 2048 key len) and .... How I
can do it ?

In 4.2 version the function CipherTextLength() provides this value and I uses it
to pass to RSA the buffer but in 5.x ??

  ...
  FileSource pubkeyFile(pubkeyFilename, true, new HexDecoder);
  RSAES_OAEP_SHA_Encryptor pubkey(pubkeyFile);
  char *outstr = new char[pubkey.CipherTextLength()];
  ...

Thank's for any help

Fr�d�ric

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

Reply via email to