idiomic / Lua_AES

40 stars 12 forks source link

Nice and fast #3

Open a-lurker opened 4 years ago

a-lurker commented 4 years ago

Thanks for posting this. I've spent sometime to see if this could be made to execute any much faster than it it already does. The xor8 and the Galois field look up stuff launches it into hyper drive. Great.

idiomic commented 4 years ago

Thanks! I should mention that those Galois field lookup tables are taken directly from the OpenSSL source code. I spent a decent amount of time optimizing. Without offloading to C / C++ I don't think the Lua could get much faster.