git: opencrypto - Adjust xforms for explicit extra IV

看板DFBSD_commit作者時間15年前 (2010/08/23 03:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1CSNiu_Q (DFBSD_commit)