kernel-ark/crypto
Jesper Juhl a61cc44812 [CRYPTO] Add null short circuit to crypto_free_tfm
As far as I'm aware there's a general concensus that functions that are
responsible for freeing resources should be able to cope with being passed
a NULL pointer. This makes sense as it removes the need for all callers to
check for NULL, thus elliminating the bugs that happen when some forget
(safer to just check centrally in the freeing function) and it also makes
for smaller code all over due to the lack of all those NULL checks.
This patch makes it safe to pass the crypto_free_tfm() function a NULL
pointer. Once this patch is applied we can start removing the NULL checks
from the callers.

Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
2005-07-06 13:54:31 -07:00
..
aes.c
anubis.c
api.c [CRYPTO] Add null short circuit to crypto_free_tfm 2005-07-06 13:54:31 -07:00
arc4.c
blowfish.c
cast5.c
cast6.c
cipher.c [CRYPTO] Handle unaligned iv from encrypt_iv/decrypt_iv 2005-07-06 13:53:47 -07:00
compress.c
crc32c.c
crypto_null.c
deflate.c
des.c
digest.c
hmac.c
internal.h [CRYPTO] Ensure cit_iv is aligned correctly 2005-07-06 13:53:29 -07:00
Kconfig
khazad.c
Makefile
md4.c
md5.c
michael_mic.c
proc.c
scatterwalk.c
scatterwalk.h [CRYPTO] Add alignmask for low-level cipher implementations 2005-07-06 13:52:09 -07:00
serpent.c
sha1.c
sha256.c
sha512.c
tcrypt.c
tcrypt.h
tea.c
tgr192.c
twofish.c
wp512.c