-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

roxaz wrote:
| Hey, EVP_DecryptFinal returns 0 for me, but no data is returned to
| supplied output buffer, and returned data length is set to 0. What could
| be the issue? bdec  receives some correct data tho.
|
|         u32 szbdec = 0;
|         u8* bdec = new u8[resp.rSize + halfKey];    // half rSize = half
[...]
|         if(!EVP_DecryptFinal(&ctx, bdec, (int*)&szbdec))

szbdec is an IO parameter.
You have to initialize it to resp.rSize + halfKey
before passing it to EVP_DecryptFinal()

Goetz

- --
DMCA: The greed of the few outweighs the freedom of the many
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFKoC7f2iGqZUF3qPYRAj01AJ91PotqfpUhOM5jty85RV+ApCgBOwCfd2ps
o2P5fEx5AojN19q435ZJCdo=
=k67m
-----END PGP SIGNATURE-----
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to