diff options
author | Chunrong Guo <chunrong.guo@nxp.com> | 2017-07-28 15:44:09 +0800 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2017-08-07 11:42:29 -0300 |
commit | ece24e8f9a042561f188d8f09c60b146dd081c94 (patch) | |
tree | 1f9b832c30fa2740f16363187493814aca21a3c2 /recipes-kernel/cryptodev/sdk_patches/0009-add-support-for-composite-TLS10-SHA1-AES-algorithm-o.patch | |
parent | d586bfdde75ab6cae4f2dcdb63c068e07f4c188e (diff) | |
download | meta-freescale-ece24e8f9a042561f188d8f09c60b146dd081c94.tar.gz |
cryptodev-qoriq: update to v1.9
Signed-off-by: Chunrong Guo <B40290@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-kernel/cryptodev/sdk_patches/0009-add-support-for-composite-TLS10-SHA1-AES-algorithm-o.patch')
-rw-r--r-- | recipes-kernel/cryptodev/sdk_patches/0009-add-support-for-composite-TLS10-SHA1-AES-algorithm-o.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/recipes-kernel/cryptodev/sdk_patches/0009-add-support-for-composite-TLS10-SHA1-AES-algorithm-o.patch b/recipes-kernel/cryptodev/sdk_patches/0009-add-support-for-composite-TLS10-SHA1-AES-algorithm-o.patch new file mode 100644 index 00000000..795abdf0 --- /dev/null +++ b/recipes-kernel/cryptodev/sdk_patches/0009-add-support-for-composite-TLS10-SHA1-AES-algorithm-o.patch | |||
@@ -0,0 +1,50 @@ | |||
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 | ||
5 | offload | ||
6 | |||
7 | This adds support for composite algorithm offload as a primitive | ||
8 | crypto (cipher + hmac) operation. | ||
9 | |||
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. | ||
13 | |||
14 | Signed-off-by: Cristian Stoica <cristian.stoica@nxp.com> | ||
15 | --- | ||
16 | crypto/cryptodev.h | 1 + | ||
17 | ioctl.c | 5 +++++ | ||
18 | 2 files changed, 6 insertions(+) | ||
19 | |||
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 { | ||
25 | CRYPTO_SHA2_384, | ||
26 | CRYPTO_SHA2_512, | ||
27 | CRYPTO_SHA2_224_HMAC, | ||
28 | + CRYPTO_TLS10_AES_CBC_HMAC_SHA1, | ||
29 | CRYPTO_ALGORITHM_ALL, /* Keep updated - see below */ | ||
30 | }; | ||
31 | |||
32 | diff --git a/ioctl.c b/ioctl.c | ||
33 | index 8b0df4e..998f51a 100644 | ||
34 | --- a/ioctl.c | ||
35 | +++ b/ioctl.c | ||
36 | @@ -159,6 +159,11 @@ crypto_create_session(struct fcrypt *fcr, struct session_op *sop) | ||
37 | stream = 1; | ||
38 | aead = 1; | ||
39 | break; | ||
40 | + case CRYPTO_TLS10_AES_CBC_HMAC_SHA1: | ||
41 | + alg_name = "tls10(hmac(sha1),cbc(aes))"; | ||
42 | + stream = 0; | ||
43 | + aead = 1; | ||
44 | + break; | ||
45 | case CRYPTO_NULL: | ||
46 | alg_name = "ecb(cipher_null)"; | ||
47 | stream = 1; | ||
48 | -- | ||
49 | 2.7.4 | ||
50 | |||