Overview
Artifact ID: | ed444b5877e92fdfb912f201be2f0fb2e38bca9a |
---|---|
Ticket: | 358a88716e32b452115b8556208fd2ee42be8496
slight performance improvement in CBC mode |
User & Date: | aku 2014-09-23 00:19:51 |
Changes
- closedate changed to: "2456923.51378765"
- closer changed to: "aku"
- comment changed to:
This patch modifies aes' state to keep the IV as a 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]
- icomment:
Patch applied, revision [4b3d8bca51]. Committed. Pushed. Version 1.2, requiring Tcl 8.5.
- login: "aku"
- mimetype: "text/plain"
- resolution changed to: "Accepted"
- status changed to: "Closed"