balena / aes-whitebox

WBC AES implementation in C++ using Chow and Muir papers supporting 128, 192, 256, 512, 1024, 2048 and 4096-bit keys
Other
93 stars 26 forks source link

Why not include CBC mode? #5

Open pinpoy opened 3 years ago

pinpoy commented 3 years ago

I have a question.

balena commented 3 years ago

Hey @pinpoy,

Nothing wrong with CBC mode, just that it involves a completely different set of tables. Check here: https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation.

Long story short, CFB, OFB and CTR involve just the "block cipher encryption" while other modes (like CBC) require the "block cipher decryption". Each of these blocks involve different kinds of tables, being the decryption block more complex to implement.