Overview
Artifact ID: | 8e53ef09296e0c86866fd169817b7d8b9f3a601f |
---|---|
Ticket: | 358a88716e32b452115b8556208fd2ee42be8496
slight performance improvement in CBC mode |
User & Date: | aku 2014-09-22 23:41:11 |
Changes
- comment changed to:
This patch modifies aes' state to keep IV as list of integers instead of their binary representation. This spares one [binary scan] per block (see ::aes::EncryptBlock and ::aes::DecryptBlock). The cost is an additional [binary scan] in ::aes::Init and ::aes::Reset, but since these functions are called much more rarely than [En|De]cryptBlock, it's worth doing: my tests have shown a gain of ~ 3% in speed. Also, the last chunk fixes the comment block for ::aes::Decrypt. [moved the inlined patch into a proper attachment]
- login: "aku"
- mimetype: "text/plain"