ph4r05 / Whitebox-crypto-AES

Whitebox AES implementation in C++. Chow, Karroumi.
https://is.muni.cz/th/325219/fi_m/
337 stars 112 forks source link

Fix usage of external input #1

Closed doegox closed 9 years ago

doegox commented 9 years ago

Hi Computation of number of input blocks was wrong as well as used buffer and offset

Now code can be validated with input file:

echo 3243f6a8885a308d313198a2e0370734 6bc1bee22e409f96e93d7e117393172a|xxd -r -p > foo ./main --input-files foo --out-file foo.enc cat foo.enc |xxd -p => 3925841d02dc09fbdc118597196a0b32 3ad77bb40d7a3660a89ecaf32466ef97