diff options
author | Eric Biggers <ebiggers@google.com> | 2020-01-02 20:04:36 -0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-01-09 11:30:57 +0800 |
commit | 0f8f6d86d415f9d88dc0f7847f11d0c52dba1965 (patch) | |
tree | e79feacf27694487fa630a32b7939b2d0af9860c /include/crypto | |
parent | 48fb3e5785be7ef69a43c04f617a1c05000ee2d0 (diff) | |
download | linux-stable-0f8f6d86d415f9d88dc0f7847f11d0c52dba1965.tar.gz linux-stable-0f8f6d86d415f9d88dc0f7847f11d0c52dba1965.tar.bz2 linux-stable-0f8f6d86d415f9d88dc0f7847f11d0c52dba1965.zip |
crypto: geniv - convert to new way of freeing instances
Convert the "seqiv" template to the new way of freeing instances where a
->free() method is installed to the instance struct itself. Also remove
the unused implementation of the old way of freeing instances from the
"echainiv" template, since it's already using the new way too.
In doing this, also simplify the code by making the helper function
aead_geniv_alloc() install the ->free() method, instead of making seqiv
and echainiv do this themselves. This is analogous to how
skcipher_alloc_instance_simple() works.
This will allow removing support for the old way of freeing instances.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto')
-rw-r--r-- | include/crypto/internal/geniv.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/crypto/internal/geniv.h b/include/crypto/internal/geniv.h index 0108c0c7b2ed..229d37681a9d 100644 --- a/include/crypto/internal/geniv.h +++ b/include/crypto/internal/geniv.h @@ -21,7 +21,6 @@ struct aead_geniv_ctx { struct aead_instance *aead_geniv_alloc(struct crypto_template *tmpl, struct rtattr **tb, u32 type, u32 mask); -void aead_geniv_free(struct aead_instance *inst); int aead_init_geniv(struct crypto_aead *tfm); void aead_exit_geniv(struct crypto_aead *tfm); |