Hot answers tagged

2

The problem described in the question and its comments is not in the code, but probably in how it is called. At least, on a conformant compiler, it passes the short test program at the end of this answer. We are hinted by the comment "the memory saves each byte in a word block" that there is some problem with the data type used for the 16 octets holding the ...


2

When you get the first part of the decryption wrong, but the rest correct, it almost always means that you got the IV wrong. However, with CBC mode, what usually happens is that you get the first 16 bytes wrong; instead, you got only 6 bytes wrong; that may indicate that you got the first 6 bytes of the IV wrong (and the other 10 bytes correct). In ...



Only top voted, non community-wiki answers of a minimum length are eligible