summaryrefslogtreecommitdiffstats
path: root/sys/opencrypto/cryptodev.c
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2010-09-23 11:52:32 +0000
committerpjd <pjd@FreeBSD.org>2010-09-23 11:52:32 +0000
commitaebc765efad05587abd0cf7f3ebd3e9012b23f72 (patch)
treed3d9022b198d92bfe920c75f7f1cdfcae31ca835 /sys/opencrypto/cryptodev.c
parented0ad07f3dd1bc5f1fad46c75e5d57ecbbca3cf8 (diff)
downloadFreeBSD-src-aebc765efad05587abd0cf7f3ebd3e9012b23f72.zip
FreeBSD-src-aebc765efad05587abd0cf7f3ebd3e9012b23f72.tar.gz
Add support for AES-XTS.
Obtained from: OpenBSD MFC after: 1 week
Diffstat (limited to 'sys/opencrypto/cryptodev.c')
-rw-r--r--sys/opencrypto/cryptodev.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/opencrypto/cryptodev.c b/sys/opencrypto/cryptodev.c
index 8edbc8e..6a10f9a 100644
--- a/sys/opencrypto/cryptodev.c
+++ b/sys/opencrypto/cryptodev.c
@@ -419,6 +419,9 @@ cryptof_ioctl(
case CRYPTO_AES_CBC:
txform = &enc_xform_rijndael128;
break;
+ case CRYPTO_AES_XTS:
+ txform = &enc_xform_aes_xts;
+ break;
case CRYPTO_NULL_CBC:
txform = &enc_xform_null;
break;
OpenPOWER on IntegriCloud