qistoph / ArduinoAES256

Ilya's byte-oriented AES-256 implementation implemented for Arduino
62 stars 22 forks source link

"FFFFFF"s in encrypted data ? #5

Open kutlay opened 8 years ago

kutlay commented 8 years ago

Hi, when i try the example code it gives me this. The encrypted data is not normal, and more than 32byte because of the FFFFFF's. What are they ? I couldn't understand the problem. When i tried to write bytes one by one ( by doing a for loop ) i didn't get them.

Initializing AES256... 
Key: 
000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F
Unencrypted data: 
61736466617364666173646661736466
Encrypted data: 
024117FFFFFFFD2E737145582CFFFFFF976F47FFFFFFBEFFFFFFDA20
Back decrypted data: 
61736466617364666173646661736466
qistoph commented 5 years ago

It looks like there might be something going on with signed vs unsigned types...