Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Sat, 7 Apr 2012 12:07:40 +0530
From: Dhiru Kholia <>
Subject: OpenSSL AES strange problem (first block is decrypted wrongly)


I am trying to decrypt two blocks of encrypted data using OpenSSL AES
(in CBC mode). Second block is decrypted correctly but first block is
strangely wrong. Any ideas what is going on?. Can someone give it a

The expected output is
The attached program decrypts the second block correctly but fails for
the first block.


View attachment "aes-problem.c" of type "text/x-csrc" (1076 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.