For further details see: http://csrc.nist.gov/encryption/aes/ . This implementation is based on optimizations from Dr.