diff options
Diffstat (limited to 'meta-fsl-ppc/recipes-kernel/cryptodev/files/0001-add-support-for-composite-TLS10-SHA1-AES-algorithm-o.patch')
| -rw-r--r-- | meta-fsl-ppc/recipes-kernel/cryptodev/files/0001-add-support-for-composite-TLS10-SHA1-AES-algorithm-o.patch | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/meta-fsl-ppc/recipes-kernel/cryptodev/files/0001-add-support-for-composite-TLS10-SHA1-AES-algorithm-o.patch b/meta-fsl-ppc/recipes-kernel/cryptodev/files/0001-add-support-for-composite-TLS10-SHA1-AES-algorithm-o.patch new file mode 100644 index 000000000..7d957ec19 --- /dev/null +++ b/meta-fsl-ppc/recipes-kernel/cryptodev/files/0001-add-support-for-composite-TLS10-SHA1-AES-algorithm-o.patch | |||
| @@ -0,0 +1,52 @@ | |||
| 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 | ||
| 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.3.5 | ||
| 52 | |||
