AES decrypted text mismatch

Werner Koch wk at gnupg.org
Wed Oct 11 11:21:58 CEST 2006


On Wed, 11 Oct 2006 04:56, Stephen A. Cochran Lists said:

>     const int BLOCKSIZE = 16;
>     int TEXTLEN = strlen(argv[1]);
>     unsigned char* plaintext = argv[1];
>
> When I run the program (using libgcrypt 1.2.0, I realize it's out of
> date, trying to get the sysadmin to update it), some input strings
> are decrypted back with extra characters on the end. Note the
> different length after decryption as well:

With only the changes above you won't be able to get that output.
Thus you changed more and introduced a bug.


Shalom-Salam,

   Werner




More information about the Gcrypt-devel mailing list