Question about symmetric AES cipher in GnuPG

Brian Minton brian at
Wed Oct 30 22:19:51 CET 2019

On 10/27/19 3:25 PM, Stefan Claas via Gnupg-users wrote:
> gpg --symmetric --cipher-algo AES256 hw.txt gives me a file
> size of 87 Bytes.
> Doing the same with openssl, for example:
> openssl enc -aes-256-cbc -pbkdf2 -in hw.txt -out hw.enc
> results in 32 Bytes.
> Can you please, or somebody else, explain in laymen terms why this is so?

My guess is, the gpg one also is doing MDC, so you'd have to add the
equivalent HMAC code to openssl, but that's just a complete guess.  

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 456 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the Gnupg-users mailing list