somesocks / lua-lockbox

A collection of cryptographic primitives written in pure Lua
MIT License
360 stars 75 forks source link

Implement IGE mode for AES #10

Closed ldb closed 8 years ago

ldb commented 8 years ago

I want to build a framework for MtProto, the communucation protocol used by Telegram, and this library is the most promising in regards to including all the encryption mechanism I need. However AES IGE is missing. Any chance you will implement this as well?

somesocks commented 8 years ago

Lucky for you, I had some free time today. IGE is added with a few test cases. Check the linked article in the commit message for details about X0, Y0, and the IV order. Let me know if it works.

ldb commented 8 years ago

Thank you very much, I will check it out as soon as I have time.