DragonFly BSD
DragonFly commits List (threaded) for 2010-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: opencrypto - Adjust xforms for explicit extra IV


From: Alex Hornung <alexh@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 22 Aug 2010 12:11:15 -0700 (PDT)

commit 400158c16f9e4f8a627fb510bb1c69ae6a5c021b
Author: Alex Hornung <ahornung@gmail.com>
Date:   Sun Aug 22 20:06:22 2010 +0100

    opencrypto - Adjust xforms for explicit extra IV
    
    * Some transforms such as XTS and CTR have some private 'IV'. Since our
      cryptosoft is now concurrent, we need to keep that private IV per-op
      and not per-session as OpenBSD does. We do this by passing in the
      local IV to encrypt() and decrypt() functions, as well as reinit(),
      which was already getting it.
    
    * We can now also use AES-XTS and AES-CTR in a concurrent environment
      without having to have multiple sessions or an explicit key.
    
    * While here, also radically simplify the reinit() for XTS.
    
    * With these changes we can now use aes-xts for dm_target_crypt
      successfully.

Summary of changes:
 sys/opencrypto/cryptosoft.c |   40 +++++++-------
 sys/opencrypto/xform.c      |  122 +++++++++++++++++++++++--------------------
 sys/opencrypto/xform.h      |    4 +-
 3 files changed, 87 insertions(+), 79 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/400158c16f9e4f8a627fb510bb1c69ae6a5c021b


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]