kokke/tiny-AES-c

AES256 mode

elephantenlein opened this issue · 1 comments

defining aes256 symbol fails internal tests.

AES bit mode is set on compile time, if you are using static lib, it will fail. Unless you share the same macro on compile time by yourself.

Testing AES256

CBC encrypt: SUCCESS!
CBC decrypt: SUCCESS!
CTR encrypt: SUCCESS!
CTR decrypt: SUCCESS!
ECB decrypt: SUCCESS!
ECB encrypt: SUCCESS!
ECB encrypt verbose:

plain text:
6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e51
ae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52ef
30c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710
f69f2445df4f9b17ad2b417be66c3710cccccccccccccccccccccccccccccccc

key:
2b7e151628aed2a6abf7158809cf4f3ccccccccccccccccccccccccccccccccc

ciphertext:
5ad5d826200a16586ceb4adeccee1f3fae2d8a571e03ac9c9eb76fac45af8e51
0cd994fc47882683a95b871c51540aa630c81c46a35ce411e5fbc1191a0a52ef
5a22dc1148f0345795327be8c7ed9228f69f2445df4f9b17ad2b417be66c3710
49bd5a0471a8282656e525a2581e4dc4cccccccccccccccccccccccccccccccc