Tcl Library Source Code

Ticket Change Details
Login
Overview

Artifact ID: ed444b5877e92fdfb912f201be2f0fb2e38bca9a
Ticket: 358a88716e32b452115b8556208fd2ee42be8496
slight performance improvement in CBC mode
User & Date: aku 2014-09-23 00:19:51
Changes

  1. closedate changed to: "2456923.51378765"
  2. closer changed to: "aku"
  3. 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]
    
  4. icomment:
    Patch applied, revision [4b3d8bca51].
    Committed.
    Pushed.
    
    Version 1.2, requiring Tcl 8.5.
    
  5. login: "aku"
  6. mimetype: "text/plain"
  7. resolution changed to: "Accepted"
  8. status changed to: "Closed"