From 01759dedabaeb199727f5d1f65deb8b952cd23c8 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 26 Dec 2016 09:51:17 +0100 Subject: cryptodev-linux: add missing patch --- package/cryptodev-linux/patches/patch-cryptlib_c | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 package/cryptodev-linux/patches/patch-cryptlib_c diff --git a/package/cryptodev-linux/patches/patch-cryptlib_c b/package/cryptodev-linux/patches/patch-cryptlib_c new file mode 100644 index 000000000..02e8d9b35 --- /dev/null +++ b/package/cryptodev-linux/patches/patch-cryptlib_c @@ -0,0 +1,25 @@ +--- cryptodev-linux-1.8.orig/cryptlib.c 2015-11-28 02:07:11.000000000 +0100 ++++ cryptodev-linux-1.8/cryptlib.c 2016-12-13 02:21:39.899840926 +0100 +@@ -36,6 +36,7 @@ + #include + #include + #include ++#include + #include "cryptodev_int.h" + + +@@ -131,11 +132,13 @@ int cryptodev_cipher_init(struct cipher_ + uint8_t *keyp, size_t keylen, int stream, int aead) + { + int ret; ++ struct crypto_skcipher *tfm; + + if (aead == 0) { + struct ablkcipher_alg *alg; + +- out->async.s = crypto_alloc_ablkcipher(alg_name, 0, 0); ++ tfm = crypto_alloc_skcipher(alg_name, 0, 0); ++ out->async.s->base = tfm->base; + if (unlikely(IS_ERR(out->async.s))) { + ddebug(1, "Failed to load cipher %s", alg_name); + return -EINVAL; -- cgit v1.2.3