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>
Showing
- crypto/ccm.c 3 additions, 2 deletionscrypto/ccm.c
- crypto/cmac.c 3 additions, 2 deletionscrypto/cmac.c
- crypto/hmac.c 3 additions, 2 deletionscrypto/hmac.c
- crypto/shash.c 4 additions, 4 deletionscrypto/shash.c
- crypto/vmac.c 3 additions, 2 deletionscrypto/vmac.c
- crypto/xcbc.c 3 additions, 2 deletionscrypto/xcbc.c
- include/crypto/internal/hash.h 1 addition, 1 deletioninclude/crypto/internal/hash.h
Please register or sign in to comment