diff options
author | pjd <pjd@FreeBSD.org> | 2010-09-23 11:52:32 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2010-09-23 11:52:32 +0000 |
commit | aebc765efad05587abd0cf7f3ebd3e9012b23f72 (patch) | |
tree | d3d9022b198d92bfe920c75f7f1cdfcae31ca835 /sys/opencrypto/cryptodev.c | |
parent | ed0ad07f3dd1bc5f1fad46c75e5d57ecbbca3cf8 (diff) | |
download | FreeBSD-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.c | 3 |
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; |