diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2016-04-28 23:22:28 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2016-04-30 18:36:46 +0200 |
commit | 32751c9017284908885ba1981c102ace8930cb4d (patch) | |
tree | d02bdfda249f0752ab8b4ebd28e1cb01d7a404c7 /patches | |
parent | 6c6223265677a22b812eab6f6936bbbc987f48b5 (diff) |
backport: add crypto skcipher interface
This adds the crypto skcipher interface which was added in Linux commit
7a7ffe65c8c5f "crypto: skcipher - Add top-level skcipher interface" to
backports.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'patches')
-rw-r--r-- | patches/backport-adjustments/crypto-skcipher.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/patches/backport-adjustments/crypto-skcipher.patch b/patches/backport-adjustments/crypto-skcipher.patch new file mode 100644 index 00000000..c7584c63 --- /dev/null +++ b/patches/backport-adjustments/crypto-skcipher.patch @@ -0,0 +1,32 @@ +--- a/compat/crypto-skcipher.c ++++ b/compat/crypto-skcipher.c +@@ -18,7 +18,28 @@ + #include <linux/bug.h> + #include <linux/module.h> + +-#include "internal.h" ++struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type, ++ u32 mask); ++ ++void *crypto_alloc_tfm(const char *alg_name, ++ const struct crypto_type *frontend, u32 type, u32 mask); ++ ++struct crypto_alg *crypto_mod_get(struct crypto_alg *alg); ++ ++static inline void *crypto_skcipher_ctx(struct crypto_skcipher *tfm) ++{ ++ return crypto_tfm_ctx(&tfm->base); ++} ++ ++static inline void *skcipher_request_ctx(struct skcipher_request *req) ++{ ++ return req->__ctx; ++} ++ ++static inline u32 skcipher_request_flags(struct skcipher_request *req) ++{ ++ return req->base.flags; ++} + + static unsigned int crypto_skcipher_extsize(struct crypto_alg *alg) + { |