]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: shash - convert shash_free_instance() to new style
authorEric Biggers <ebiggers@google.com>
Fri, 3 Jan 2020 04:04:38 +0000 (20:04 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 9 Jan 2020 03:30:57 +0000 (11:30 +0800)
commitd0434ed024ca9b9ebd567294c9480b9a3b9b0213
tree5032d5672d0e339c92cd992f8e70d7638fce140f
parente23b9f91b610e8bdbc13644ae0f24f42a1f49595
crypto: shash - convert shash_free_instance() to new style

Convert shash_free_instance() and its users to the new way of freeing
instances, where a ->free() method is installed to the instance struct
itself.  This replaces the weakly-typed method crypto_template::free().

This will allow removing support for the old way of freeing instances.

Also give shash_free_instance() a more descriptive name to reflect that
it's only for instances with a single spawn, not for any instance.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/ccm.c
crypto/cmac.c
crypto/hmac.c
crypto/shash.c
crypto/vmac.c
crypto/xcbc.c
include/crypto/internal/hash.h