summaryrefslogtreecommitdiffstats
path: root/recipes-connectivity/openssl/openssl-qoriq/qoriq/0015-eng_cryptodev-extend-TLS-offload-with-3des_cbc_hmac_.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-connectivity/openssl/openssl-qoriq/qoriq/0015-eng_cryptodev-extend-TLS-offload-with-3des_cbc_hmac_.patch')
-rw-r--r--recipes-connectivity/openssl/openssl-qoriq/qoriq/0015-eng_cryptodev-extend-TLS-offload-with-3des_cbc_hmac_.patch22
1 files changed, 11 insertions, 11 deletions
diff --git a/recipes-connectivity/openssl/openssl-qoriq/qoriq/0015-eng_cryptodev-extend-TLS-offload-with-3des_cbc_hmac_.patch b/recipes-connectivity/openssl/openssl-qoriq/qoriq/0015-eng_cryptodev-extend-TLS-offload-with-3des_cbc_hmac_.patch
index 623c58b9..c1201f26 100644
--- a/recipes-connectivity/openssl/openssl-qoriq/qoriq/0015-eng_cryptodev-extend-TLS-offload-with-3des_cbc_hmac_.patch
+++ b/recipes-connectivity/openssl/openssl-qoriq/qoriq/0015-eng_cryptodev-extend-TLS-offload-with-3des_cbc_hmac_.patch
@@ -1,4 +1,4 @@
1From 7dd6b35c35b027be8ef0ef2e29a949bc4ce96bbd Mon Sep 17 00:00:00 2001 1From 6094ec91a5b8dde4bc3a7928b7cb6c81cac8a169 Mon Sep 17 00:00:00 2001
2From: Tudor Ambarus <tudor.ambarus@freescale.com> 2From: Tudor Ambarus <tudor.ambarus@freescale.com>
3Date: Fri, 9 May 2014 17:54:06 +0300 3Date: Fri, 9 May 2014 17:54:06 +0300
4Subject: [PATCH 15/48] eng_cryptodev: extend TLS offload with 4Subject: [PATCH 15/48] eng_cryptodev: extend TLS offload with
@@ -23,10 +23,10 @@ Signed-off-by: Cristian Stoica <cristian.stoica@freescale.com>
23 6 files changed, 43 insertions(+), 3 deletions(-) 23 6 files changed, 43 insertions(+), 3 deletions(-)
24 24
25diff --git a/crypto/engine/eng_cryptodev.c b/crypto/engine/eng_cryptodev.c 25diff --git a/crypto/engine/eng_cryptodev.c b/crypto/engine/eng_cryptodev.c
26index d2cdca0..8f73a18 100644 26index 1754917..ae644b9 100644
27--- a/crypto/engine/eng_cryptodev.c 27--- a/crypto/engine/eng_cryptodev.c
28+++ b/crypto/engine/eng_cryptodev.c 28+++ b/crypto/engine/eng_cryptodev.c
29@@ -132,6 +132,7 @@ static int cryptodev_dh_compute_key(unsigned char *key, const BIGNUM *pub_key, 29@@ -133,6 +133,7 @@ static int cryptodev_dh_compute_key(unsigned char *key, const BIGNUM *pub_key,
30 static int cryptodev_ctrl(ENGINE *e, int cmd, long i, void *p, 30 static int cryptodev_ctrl(ENGINE *e, int cmd, long i, void *p,
31 void (*f) (void)); 31 void (*f) (void));
32 void ENGINE_load_cryptodev(void); 32 void ENGINE_load_cryptodev(void);
@@ -34,7 +34,7 @@ index d2cdca0..8f73a18 100644
34 const EVP_CIPHER cryptodev_aes_128_cbc_hmac_sha1; 34 const EVP_CIPHER cryptodev_aes_128_cbc_hmac_sha1;
35 const EVP_CIPHER cryptodev_aes_256_cbc_hmac_sha1; 35 const EVP_CIPHER cryptodev_aes_256_cbc_hmac_sha1;
36 36
37@@ -284,6 +285,9 @@ static struct { 37@@ -285,6 +286,9 @@ static struct {
38 CRYPTO_SKIPJACK_CBC, NID_undef, 0, 0, 0 38 CRYPTO_SKIPJACK_CBC, NID_undef, 0, 0, 0
39 }, 39 },
40 { 40 {
@@ -44,7 +44,7 @@ index d2cdca0..8f73a18 100644
44 CRYPTO_TLS10_AES_CBC_HMAC_SHA1, NID_aes_128_cbc_hmac_sha1, 16, 16, 20 44 CRYPTO_TLS10_AES_CBC_HMAC_SHA1, NID_aes_128_cbc_hmac_sha1, 16, 16, 20
45 }, 45 },
46 { 46 {
47@@ -519,6 +523,9 @@ static int cryptodev_usable_ciphers(const int **nids) 47@@ -520,6 +524,9 @@ static int cryptodev_usable_ciphers(const int **nids)
48 case NID_aes_256_cbc_hmac_sha1: 48 case NID_aes_256_cbc_hmac_sha1:
49 EVP_add_cipher(&cryptodev_aes_256_cbc_hmac_sha1); 49 EVP_add_cipher(&cryptodev_aes_256_cbc_hmac_sha1);
50 break; 50 break;
@@ -54,7 +54,7 @@ index d2cdca0..8f73a18 100644
54 } 54 }
55 } 55 }
56 return count; 56 return count;
57@@ -623,6 +630,7 @@ static int cryptodev_aead_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, 57@@ -624,6 +631,7 @@ static int cryptodev_aead_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
58 switch (ctx->cipher->nid) { 58 switch (ctx->cipher->nid) {
59 case NID_aes_128_cbc_hmac_sha1: 59 case NID_aes_128_cbc_hmac_sha1:
60 case NID_aes_256_cbc_hmac_sha1: 60 case NID_aes_256_cbc_hmac_sha1:
@@ -62,7 +62,7 @@ index d2cdca0..8f73a18 100644
62 cryp.flags = COP_FLAG_AEAD_TLS_TYPE; 62 cryp.flags = COP_FLAG_AEAD_TLS_TYPE;
63 } 63 }
64 cryp.ses = sess->ses; 64 cryp.ses = sess->ses;
65@@ -813,6 +821,7 @@ static int cryptodev_cbc_hmac_sha1_ctrl(EVP_CIPHER_CTX *ctx, int type, 65@@ -814,6 +822,7 @@ static int cryptodev_cbc_hmac_sha1_ctrl(EVP_CIPHER_CTX *ctx, int type,
66 switch (ctx->cipher->nid) { 66 switch (ctx->cipher->nid) {
67 case NID_aes_128_cbc_hmac_sha1: 67 case NID_aes_128_cbc_hmac_sha1:
68 case NID_aes_256_cbc_hmac_sha1: 68 case NID_aes_256_cbc_hmac_sha1:
@@ -70,7 +70,7 @@ index d2cdca0..8f73a18 100644
70 maclen = SHA_DIGEST_LENGTH; 70 maclen = SHA_DIGEST_LENGTH;
71 } 71 }
72 72
73@@ -1134,6 +1143,20 @@ const EVP_CIPHER cryptodev_aes_256_cbc = { 73@@ -1135,6 +1144,20 @@ const EVP_CIPHER cryptodev_aes_256_cbc = {
74 NULL 74 NULL
75 }; 75 };
76 76
@@ -91,7 +91,7 @@ index d2cdca0..8f73a18 100644
91 const EVP_CIPHER cryptodev_aes_128_cbc_hmac_sha1 = { 91 const EVP_CIPHER cryptodev_aes_128_cbc_hmac_sha1 = {
92 NID_aes_128_cbc_hmac_sha1, 92 NID_aes_128_cbc_hmac_sha1,
93 16, 16, 16, 93 16, 16, 16,
94@@ -1255,6 +1278,9 @@ cryptodev_engine_ciphers(ENGINE *e, const EVP_CIPHER **cipher, 94@@ -1256,6 +1279,9 @@ cryptodev_engine_ciphers(ENGINE *e, const EVP_CIPHER **cipher,
95 case NID_aes_256_cbc: 95 case NID_aes_256_cbc:
96 *cipher = &cryptodev_aes_256_cbc; 96 *cipher = &cryptodev_aes_256_cbc;
97 break; 97 break;
@@ -180,7 +180,7 @@ index b57aabb..4e1ff18 100644
180 ISO-US 10046 2 1 : dhpublicnumber : X9.42 DH 180 ISO-US 10046 2 1 : dhpublicnumber : X9.42 DH
181 181
182diff --git a/ssl/ssl_ciph.c b/ssl/ssl_ciph.c 182diff --git a/ssl/ssl_ciph.c b/ssl/ssl_ciph.c
183index 302464e..a379273 100644 183index 2ad8f43..fdf6be9 100644
184--- a/ssl/ssl_ciph.c 184--- a/ssl/ssl_ciph.c
185+++ b/ssl/ssl_ciph.c 185+++ b/ssl/ssl_ciph.c
186@@ -668,6 +668,10 @@ int ssl_cipher_get_evp(const SSL_SESSION *s, const EVP_CIPHER **enc, 186@@ -668,6 +668,10 @@ int ssl_cipher_get_evp(const SSL_SESSION *s, const EVP_CIPHER **enc,
@@ -195,5 +195,5 @@ index 302464e..a379273 100644
195 } else 195 } else
196 return (0); 196 return (0);
197-- 197--
1982.7.0 1982.7.3
199 199