diff options
author | Cristian Stoica <cristian.stoica@nxp.com> | 2016-01-25 11:19:43 +0200 |
---|---|---|
committer | Zhenhua Luo <zhenhua.luo@nxp.com> | 2016-06-23 10:58:51 +0800 |
commit | 41d1478e1294d06f0cce58fe847c0b0f1706b808 (patch) | |
tree | 8c6c5e2887cc30435ee40e764bb2ede58278d0ac /recipes-kernel/cryptodev/sdk_patches/0001-add-support-for-composite-TLS10-SHA1-AES-algorithm-o.patch | |
parent | e3956ffbc217e468e26c9ce2e8932d3720fabca4 (diff) | |
download | meta-fsl-ppc-41d1478e1294d06f0cce58fe847c0b0f1706b808.tar.gz |
cryptodev-qoriq: upgrade to 1.8 plus fsl patches
upstream commit: 87b56e04b24c6d4be145483477eff7d3153290e9
Also:
- move all fsl patches on top of cryptodev-1.8
- add CIOCHASH ioctl
- fix incorrect tests initializations
- modify yocto patches to match updated Makefiles
Signed-off-by: Cristian Stoica <cristian.stoica@nxp.com>
Diffstat (limited to 'recipes-kernel/cryptodev/sdk_patches/0001-add-support-for-composite-TLS10-SHA1-AES-algorithm-o.patch')
-rw-r--r-- | recipes-kernel/cryptodev/sdk_patches/0001-add-support-for-composite-TLS10-SHA1-AES-algorithm-o.patch | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/recipes-kernel/cryptodev/sdk_patches/0001-add-support-for-composite-TLS10-SHA1-AES-algorithm-o.patch b/recipes-kernel/cryptodev/sdk_patches/0001-add-support-for-composite-TLS10-SHA1-AES-algorithm-o.patch new file mode 100644 index 0000000..b8d2a00 --- /dev/null +++ b/recipes-kernel/cryptodev/sdk_patches/0001-add-support-for-composite-TLS10-SHA1-AES-algorithm-o.patch | |||
@@ -0,0 +1,52 @@ | |||
1 | From 25a68839e3aab5acebcbe51f7fbe9d2d26216bc0 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/38] 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 | Change-Id: Ia1c605da3860e91e681295dfc8df7c09eb4006cf | ||
15 | Signed-off-by: Cristian Stoica <cristian.stoica@freescale.com> | ||
16 | Reviewed-on: http://git.am.freescale.net:8181/17218 | ||
17 | --- | ||
18 | crypto/cryptodev.h | 1 + | ||
19 | ioctl.c | 5 +++++ | ||
20 | 2 files changed, 6 insertions(+) | ||
21 | |||
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 { | ||
27 | CRYPTO_SHA2_384, | ||
28 | CRYPTO_SHA2_512, | ||
29 | CRYPTO_SHA2_224_HMAC, | ||
30 | + CRYPTO_TLS10_AES_CBC_HMAC_SHA1, | ||
31 | CRYPTO_ALGORITHM_ALL, /* Keep updated - see below */ | ||
32 | }; | ||
33 | |||
34 | diff --git a/ioctl.c b/ioctl.c | ||
35 | index b23f5fd..a3f8379 100644 | ||
36 | --- a/ioctl.c | ||
37 | +++ b/ioctl.c | ||
38 | @@ -159,6 +159,11 @@ crypto_create_session(struct fcrypt *fcr, struct session_op *sop) | ||
39 | stream = 1; | ||
40 | aead = 1; | ||
41 | break; | ||
42 | + case CRYPTO_TLS10_AES_CBC_HMAC_SHA1: | ||
43 | + alg_name = "tls10(hmac(sha1),cbc(aes))"; | ||
44 | + stream = 0; | ||
45 | + aead = 1; | ||
46 | + break; | ||
47 | case CRYPTO_NULL: | ||
48 | alg_name = "ecb(cipher_null)"; | ||
49 | stream = 1; | ||
50 | -- | ||
51 | 2.7.0 | ||
52 | |||