On Wed, Sep 26, 2012, Michel wrote: > 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) >
Well technically those modes need special handling which wont necessarily work with the 'enc' command at present. Steve. -- Dr Stephen N. Henson. OpenSSL project core developer. Commercial tech support now available see: http://www.openssl.org ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [email protected] Automated List Manager [email protected]
