id-ilych / as3crypto

Automatically exported from code.google.com/p/as3crypto
0 stars 0 forks source link

Word Based AES encryption/decryption #78

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi folks,
I re-implemented AES encryption/decryption using a word-based algorithm 
(instead of byte-based)
I am using this new algorithm in my HLS player 
https://github.com/mangui/HLSprovider (that needs to support AES-128 decryption)
now I can AES-128 CBC decrypt at 48 Mb/s on my Core-i5 2410M @2.30 GHz
(with byte-based algo, I was around 2 Mb/s)

algorithm is derived from from 
https://code.google.com/p/crypto-js/source/browse/tags/3.1.2/src/aes.js
code footprint is also smaller as the all the static arrays are built in static 
initializer (not hardcoded)

Feel free to merge, I am ok to stick with same license.
Cheers,
Mangui

code change is available here:
https://github.com/timkurvers/as3-crypto/pull/19

Original issue reported on code.google.com by g.du.pon...@gmail.com on 26 Feb 2014 at 7:39