1 From f365c69d7852d6579952825c9f90a27129f92d22 Mon Sep 17 00:00:00 2001
2 From: Cristian Stoica <cristian.stoica@nxp.com>
3 Date: Tue, 13 Jun 2017 11:13:33 +0300
4 Subject: [PATCH 9/9] add support for composite TLS10(SHA1,AES) algorithm
7 This adds support for composite algorithm offload as a primitive
8 crypto (cipher + hmac) operation.
10 It requires kernel support for tls10(hmac(sha1),cbc(aes)) algorithm
11 provided either in software or accelerated by hardware such as
12 Freescale B*, P* and T* platforms.
14 Signed-off-by: Cristian Stoica <cristian.stoica@nxp.com>
16 crypto/cryptodev.h | 1 +
18 2 files changed, 6 insertions(+)
20 diff --git a/crypto/cryptodev.h b/crypto/cryptodev.h
21 index 7fb9c7d..c0e8cd4 100644
22 --- a/crypto/cryptodev.h
23 +++ b/crypto/cryptodev.h
24 @@ -50,6 +50,7 @@ enum cryptodev_crypto_op_t {
28 + CRYPTO_TLS10_AES_CBC_HMAC_SHA1,
29 CRYPTO_ALGORITHM_ALL, /* Keep updated - see below */
32 diff --git a/ioctl.c b/ioctl.c
33 index 8b0df4e..998f51a 100644
36 @@ -159,6 +159,11 @@ crypto_create_session(struct fcrypt *fcr, struct session_op *sop)
40 + case CRYPTO_TLS10_AES_CBC_HMAC_SHA1:
41 + alg_name = "tls10(hmac(sha1),cbc(aes))";
46 alg_name = "ecb(cipher_null)";