git: opencrypto - Adjust xforms for explicit extra IV
Alex Hornung
alexh at crater.dragonflybsd.org
Sun Aug 22 12:12:40 PDT 2010
commit 400158c16f9e4f8a627fb510bb1c69ae6a5c021b
Author: Alex Hornung <ahornung at 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
More information about the Commits
mailing list