diff options
Diffstat (limited to 'recipes-connectivity/openssl/openssl-qoriq/qoriq/0002-eng_cryptodev-add-support-for-TLS-algorithms-offload.patch')
-rw-r--r-- | recipes-connectivity/openssl/openssl-qoriq/qoriq/0002-eng_cryptodev-add-support-for-TLS-algorithms-offload.patch | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/recipes-connectivity/openssl/openssl-qoriq/qoriq/0002-eng_cryptodev-add-support-for-TLS-algorithms-offload.patch b/recipes-connectivity/openssl/openssl-qoriq/qoriq/0002-eng_cryptodev-add-support-for-TLS-algorithms-offload.patch index d5907892..a5c0f6db 100644 --- a/recipes-connectivity/openssl/openssl-qoriq/qoriq/0002-eng_cryptodev-add-support-for-TLS-algorithms-offload.patch +++ b/recipes-connectivity/openssl/openssl-qoriq/qoriq/0002-eng_cryptodev-add-support-for-TLS-algorithms-offload.patch @@ -1,4 +1,4 @@ -From e7c630f8417b6f4e1bf2466e545ffe04af2eff00 Mon Sep 17 00:00:00 2001 +From 305ab3fd8a8620fd11f7aef7e42170ba205040a9 Mon Sep 17 00:00:00 2001 From: Cristian Stoica <cristian.stoica@freescale.com> Date: Thu, 29 Aug 2013 16:51:18 +0300 Subject: [PATCH 02/48] eng_cryptodev: add support for TLS algorithms offload @@ -15,10 +15,10 @@ Signed-off-by: Cristian Stoica <cristian.stoica@freescale.com> 1 file changed, 215 insertions(+), 11 deletions(-) diff --git a/crypto/engine/eng_cryptodev.c b/crypto/engine/eng_cryptodev.c -index 8fb9c33..4d783d4 100644 +index 2a2b95c..d4da7fb 100644 --- a/crypto/engine/eng_cryptodev.c +++ b/crypto/engine/eng_cryptodev.c -@@ -71,6 +71,9 @@ void ENGINE_load_cryptodev(void) +@@ -72,6 +72,9 @@ void ENGINE_load_cryptodev(void) struct dev_crypto_state { struct session_op d_sess; int d_fd; @@ -28,7 +28,7 @@ index 8fb9c33..4d783d4 100644 # ifdef USE_CRYPTODEV_DIGESTS char dummy_mac_key[HASH_MAX_LEN]; unsigned char digest_res[HASH_MAX_LEN]; -@@ -141,24 +144,25 @@ static struct { +@@ -142,24 +145,25 @@ static struct { int nid; int ivmax; int keylen; @@ -60,7 +60,7 @@ index 8fb9c33..4d783d4 100644 }, # ifdef CRYPTO_AES_CTR { -@@ -172,16 +176,22 @@ static struct { +@@ -173,16 +177,22 @@ static struct { }, # endif { @@ -87,7 +87,7 @@ index 8fb9c33..4d783d4 100644 }, }; -@@ -295,13 +305,15 @@ static int get_cryptodev_ciphers(const int **cnids) +@@ -296,13 +306,15 @@ static int get_cryptodev_ciphers(const int **cnids) } memset(&sess, 0, sizeof(sess)); sess.key = (caddr_t) "123456789abcdefghijklmno"; @@ -104,7 +104,7 @@ index 8fb9c33..4d783d4 100644 if (ioctl(fd, CIOCGSESSION, &sess) != -1 && ioctl(fd, CIOCFSESSION, &sess.ses) != -1) nids[count++] = ciphers[i].nid; -@@ -457,6 +469,66 @@ cryptodev_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, +@@ -458,6 +470,66 @@ cryptodev_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, return (1); } @@ -171,7 +171,7 @@ index 8fb9c33..4d783d4 100644 static int cryptodev_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, const unsigned char *iv, int enc) -@@ -496,6 +568,45 @@ cryptodev_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, +@@ -497,6 +569,45 @@ cryptodev_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, } /* @@ -217,7 +217,7 @@ index 8fb9c33..4d783d4 100644 * free anything we allocated earlier when initting a * session, and close the session. */ -@@ -529,6 +640,63 @@ static int cryptodev_cleanup(EVP_CIPHER_CTX *ctx) +@@ -530,6 +641,63 @@ static int cryptodev_cleanup(EVP_CIPHER_CTX *ctx) return (ret); } @@ -281,7 +281,7 @@ index 8fb9c33..4d783d4 100644 /* * libcrypto EVP stuff - this is how we get wired to EVP so the engine * gets called when libcrypto requests a cipher NID. -@@ -641,6 +809,34 @@ const EVP_CIPHER cryptodev_aes_256_cbc = { +@@ -642,6 +810,34 @@ const EVP_CIPHER cryptodev_aes_256_cbc = { NULL }; @@ -316,7 +316,7 @@ index 8fb9c33..4d783d4 100644 # ifdef CRYPTO_AES_CTR const EVP_CIPHER cryptodev_aes_ctr = { NID_aes_128_ctr, -@@ -729,6 +925,12 @@ cryptodev_engine_ciphers(ENGINE *e, const EVP_CIPHER **cipher, +@@ -730,6 +926,12 @@ cryptodev_engine_ciphers(ENGINE *e, const EVP_CIPHER **cipher, *cipher = &cryptodev_aes_ctr_256; break; # endif @@ -329,7 +329,7 @@ index 8fb9c33..4d783d4 100644 default: *cipher = NULL; break; -@@ -1472,6 +1674,8 @@ void ENGINE_load_cryptodev(void) +@@ -1485,6 +1687,8 @@ void ENGINE_load_cryptodev(void) } put_dev_crypto(fd); @@ -339,5 +339,5 @@ index 8fb9c33..4d783d4 100644 !ENGINE_set_name(engine, "BSD cryptodev engine") || !ENGINE_set_ciphers(engine, cryptodev_engine_ciphers) || -- -2.7.0 +2.7.3 |