diff --git a/crypto/cryptodev.h b/crypto/cryptodev.h index c09cce8..e66606f 100644 --- a/crypto/cryptodev.h +++ b/crypto/cryptodev.h @@ -51,6 +51,8 @@ enum cryptodev_crypto_op_t { CRYPTO_SHA2_384, CRYPTO_SHA2_512, CRYPTO_SHA2_224_HMAC, + CRYPTO_TLS11_AES_CBC_HMAC_SHA1, + CRYPTO_TLS12_AES_CBC_HMAC_SHA256, CRYPTO_ALGORITHM_ALL, /* Keep updated - see below */ }; diff --git a/ioctl.c b/ioctl.c index 3c865bd..3d33238 100644 --- a/ioctl.c +++ b/ioctl.c @@ -159,6 +159,16 @@ crypto_create_session(struct fcrypt *fcr, struct session_op *sop) stream = 1; aead = 1; break; + case CRYPTO_TLS11_AES_CBC_HMAC_SHA1: + alg_name = "tls11(hmac(sha1),cbc(aes))"; + stream = 0; + aead = 1; + break; + case CRYPTO_TLS12_AES_CBC_HMAC_SHA256: + alg_name = "tls12(hmac(sha256),cbc(aes))"; + stream = 0; + aead = 1; + break; case CRYPTO_NULL: alg_name = "ecb(cipher_null)"; stream = 1;