summaryrefslogtreecommitdiffstats
path: root/include/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-07-09 01:17:17 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2015-07-14 08:56:45 +0200
commitba75e15fa0c4db489ed0d0a9745f904a7d5e19cc (patch)
treeab170889cc4cf0ba9befb40b1a9d5fe8101792e7 /include/crypto
parentcrypto: api - Add instance free function to crypto_type (diff)
downloadlinux-ba75e15fa0c4db489ed0d0a9745f904a7d5e19cc.tar.xz
linux-ba75e15fa0c4db489ed0d0a9745f904a7d5e19cc.zip
crypto: aead - Add type-safe function for freeing instances
This patch adds a type-safe function for freeing AEAD instances to struct aead_instance. This replaces the existing free function in struct crypto_template which does not know the type of the instance that it's freeing. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/internal/aead.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/crypto/internal/aead.h b/include/crypto/internal/aead.h
index c3942f4d6e9f..a292e960fb33 100644
--- a/include/crypto/internal/aead.h
+++ b/include/crypto/internal/aead.h
@@ -21,6 +21,7 @@
struct rtattr;
struct aead_instance {
+ void (*free)(struct aead_instance *inst);
union {
struct {
char head[offsetof(struct aead_alg, base)];