Merged changes to nearly double speed.

Dec. 11, 2010, 11:59 a.m.


Thanks to serprex on github for optimizing the aes_cipher.py. I incorporated the first few commits he made into aes_cipher.py and aes_tables.py. He made many further optimizations in his code including meta programming and all sorts of tricks to get cycles back from Python.

His end result is very fast, but he sort of pulled out all the stops for speed. However, by pulling his aes_cipher.py and aes_tables.py into my code you can see a substantial speed increase at the expense of ofb_mode working properly.

For pure speed you are still better off using a compiled module that takes advantage of processor acceleration, but where that is not an option, this code works.


tags( #code #python #aespython )

Code

Various Coding and Scripting Endeavors

Life

Whats going on generally.

Neat Stuff

Things I have found useful or interesting on the internet, for what it is worth.

Follow caller9com on Twitter