hmm, the bug is in your example. AES_ctr128_encrypt() is its own
inverse so applying AES_ctr128_encrypt() twice (we the _same_ key)
should give you the original input => instead of AES_set_decrypt_key()
for the second call use AES_set_encrypt_key() for both function calls.

Cheers,
Nils
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to