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

Fixed table generation for main executable - encoding must be generated #15

Closed nemirst closed 7 years ago

nemirst commented 7 years ago

Compiled main executable fails when called like this: ./main --decrypt=0 --use-key 000102030405060708090A0B0C0D0E0F --input-files my_plaintext_file --out-file my_encrypted_file NTL complains about "matrix mul: dimension mismatch" during table generation: https://github.com/ph4r05/Whitebox-crypto-AES/blob/master/WBAESGenerator.cpp#L341 Here two matrices are multiplied but first one is not initialized (0 rows, 0 cols) because WBAESGenerator::generateExtEncoding is not called on it before.

ph4r05 commented 7 years ago

Thanks!