cryptosoft - (partially) fix AES_XTS for contiguous buffers
authorAlex Hornung <ahornung@gmail.com>
Sat, 21 Aug 2010 22:50:56 +0000 (23:50 +0100)
committerAlex Hornung <ahornung@gmail.com>
Sun, 22 Aug 2010 00:22:42 +0000 (01:22 +0100)
commitbc1ea2f20d9d2df8d518ec02158ff00f1144a36b
tree490d12a6871b9b5268b09ed9c3ea25ea33510f54
parent96f9dac19ca33eab88e62ea5758a611718174a27
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.
sys/opencrypto/cryptosoft.c