1 From c653e3a70499c6bb66b57c1788d2d38ca9b8a07e Mon Sep 17 00:00:00 2001
2 From: Cristian Stoica <cristian.stoica@freescale.com>
3 Date: Thu, 29 Aug 2013 16:52:30 +0300
4 Subject: [PATCH 01/15] 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 Change-Id: Ia1c605da3860e91e681295dfc8df7c09eb4006cf
15 Signed-off-by: Cristian Stoica <cristian.stoica@freescale.com>
16 Reviewed-on: http://git.am.freescale.net:8181/17218
18 crypto/cryptodev.h | 1 +
20 2 files changed, 6 insertions(+)
22 diff --git a/crypto/cryptodev.h b/crypto/cryptodev.h
23 index 7fb9c7d..c0e8cd4 100644
24 --- a/crypto/cryptodev.h
25 +++ b/crypto/cryptodev.h
26 @@ -50,6 +50,7 @@ enum cryptodev_crypto_op_t {
30 + CRYPTO_TLS10_AES_CBC_HMAC_SHA1,
31 CRYPTO_ALGORITHM_ALL, /* Keep updated - see below */
34 diff --git a/ioctl.c b/ioctl.c
35 index b23f5fd..a3f8379 100644
38 @@ -159,6 +159,11 @@ crypto_create_session(struct fcrypt *fcr, struct session_op *sop)
42 + case CRYPTO_TLS10_AES_CBC_HMAC_SHA1:
43 + alg_name = "tls10(hmac(sha1),cbc(aes))";
48 alg_name = "ecb(cipher_null)";