summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2016-06-29 12:04:13 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2016-07-01 17:45:11 +0200
commit32f27c745c26ff4b6351bce265cba049a2c74de5 (patch)
tree71d517cfb123a327cdd92934612982cb46e3a180 /include
parentcrypto: s390/aes - Use skcipher for fallback (diff)
downloadlinux-32f27c745c26ff4b6351bce265cba049a2c74de5.tar.xz
linux-32f27c745c26ff4b6351bce265cba049a2c74de5.zip
crypto: api - Add crypto_inst_setname
This patch adds the helper crypto_inst_setname because the current helper crypto_alloc_instance2 is no longer useful given that we now look up the algorithm after we allocate the instance object. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include')
-rw-r--r--include/crypto/algapi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/crypto/algapi.h b/include/crypto/algapi.h
index eeafd21afb44..0483f652ac27 100644
--- a/include/crypto/algapi.h
+++ b/include/crypto/algapi.h
@@ -244,6 +244,8 @@ static inline struct crypto_alg *crypto_attr_alg(struct rtattr *rta,
}
int crypto_attr_u32(struct rtattr *rta, u32 *num);
+int crypto_inst_setname(struct crypto_instance *inst, const char *name,
+ struct crypto_alg *alg);
void *crypto_alloc_instance2(const char *name, struct crypto_alg *alg,
unsigned int head);
struct crypto_instance *crypto_alloc_instance(const char *name,