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

git: cryptosoft - (partially) fix AES_XTS for contiguous buffers


From: Alex Hornung <alexh@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 21 Aug 2010 17:22:55 -0700 (PDT)

commit bc1ea2f20d9d2df8d518ec02158ff00f1144a36b
Author: Alex Hornung <ahornung@gmail.com>
Date:   Sat Aug 21 23:50:56 2010 +0100

    cryptosoft - (partially) fix AES_XTS for contiguous buffers
    
    * The reinit magic skipping the iv mess for CBC was not being done for
      contiguous buffers, only for iovs and mbufs.
    
    * This resulted in all test vectors for aes xts passing from userland
      (which uses iovs) but everything failing in kernel.
    
    * Right now cryptsetup with -c aes-xts-plain still won't work, but at
      least some simple encryption and decryption tests work in kernel, too.

Summary of changes:
 sys/opencrypto/cryptosoft.c |   25 +++++++++++++++++--------
 1 files changed, 17 insertions(+), 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bc1ea2f20d9d2df8d518ec02158ff00f1144a36b


-- 
DragonFly BSD source repository



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