Hello,

I am using the the OpenSSL enc command to encrypt and decrypt a test file.
When using AES-GCM mode, I can encrypt but cannot decrypt the result.
Even though I succeed with all other modes.

Example is as follow :
openssl enc -e -a -aes-128-gcm -nosalt -p -K 28C65581AABBBA0EBFC1DB5D5C614FEA -iv D2D136CA54FEB7C48C9E4358 -in test.dat -out enc.txt openssl enc -d -a -aes-128-gcm -nosalt -p -K 28C65581AABBBA0EBFC1DB5D5C614FEA -iv D2D136CA54FEB7C48C9E4358 -in enc.txt

Get a  : 'bad decrypt' output

Test file contains "bla bla bla bla bla bla bla bla bla'.
Using OpenSSL 1.0.1c downloaded from source code, and compiled under Windows 7.

Also, if text file contains shorter data (< 16 bytes), I cannot encrypt in AES-XTS mode.
(no output)

Did I miss something ?

Thanks in advance.

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to