android_kernel_motorola_sm6375/include
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Herbert Xu 3f683d6175 crypto: api - Fix crypto_alloc_tfm/create_create_tfm return convention
This is based on a report and patch by Geert Uytterhoeven.

The functions crypto_alloc_tfm and create_create_tfm return a
pointer that needs to be adjusted by the caller when successful
and otherwise an error value.  This means that the caller has
to check for the error and only perform the adjustment if the
pointer returned is valid.

Since all callers want to make the adjustment and we know how
to adjust it ourselves, it's much easier to just return adjusted
pointer directly.

The only caveat is that we have to return a void * instead of
struct crypto_tfm *.  However, this isn't that bad because both
of these functions are for internal use only (by types code like
shash.c, not even algorithms code).

This patch also moves crypto_alloc_tfm into crypto/internal.h
(crypto_create_tfm is already there) to reflect this.

Signed-off-by: Herbert Xu <[email protected]>
2009-02-18 16:56:59 +08:00
..
acpi
asm-arm
asm-frv
asm-generic
asm-h8300
asm-m32r
asm-mn10300
crypto crypto: shash - Add crypto_shash_blocksize 2009-02-18 16:48:06 +08:00
drm drm/i915: add fence register management to execbuf 2009-02-08 21:38:02 +10:00
keys
linux crypto: api - Fix crypto_alloc_tfm/create_create_tfm return convention 2009-02-18 16:56:59 +08:00
math-emu
media
mtd
net net: don't use in_atomic() in gfp_any() 2009-02-12 16:43:17 -08:00
pcmcia
rdma
rxrpc
scsi
sound
trace
video
xen
Kbuild