]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: aead - Add type-safe function for freeing instances
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 8 Jul 2015 23:17:17 +0000 (07:17 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 14 Jul 2015 06:56:45 +0000 (14:56 +0800)
commit4ef15896de9b2d6ed68753274e9b60d490a15a29
treeab170889cc4cf0ba9befb40b1a9d5fe8101792e7
parent5d2b23bcf8bbfac1f0d53c327f3cd7af5333ec7b
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>
crypto/aead.c
include/crypto/internal/aead.h