tehcpu / tiny-AES

Simple AES128/192/256 in Java
The Unlicense
14 stars 15 forks source link

AES 256-CBC not "NIST" compliant #5

Open MrMaxweII opened 1 year ago

MrMaxweII commented 1 year ago

https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38a.pdf

NIST Test-Vektoren    CBC-AES256.Encrypt
Key: 603deb1015ca71be2b73aef0857d77811f352c073b6108d72d9810a30914dff4 
IV:  000102030405060708090a0b0c0d0e0f 
Block #1 
Plaintext       6bc1bee22e409f96e93d7e117393172a 
Input Block     6bc0bce12a459991e134741a7f9e1925 
Output Block    f58c4c04d6e5f1ba779eabfb5f7bfbd6 
Ciphertext  f58c4c04d6e5f1ba779eabfb5f7bfbd6 

yout Cipher : 900f361bf51e7ece007e87294ba5062f

Why is your AES calculation not the same?

BigPanda97 commented 2 months ago

Good question, I noticed that too. @tehcpu ?