]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: cmac - return -EINVAL if block size is unsupported
authorEric Biggers <ebiggers@google.com>
Mon, 10 Oct 2016 17:15:14 +0000 (10:15 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Oct 2016 03:03:42 +0000 (11:03 +0800)
commit625d7a72a642dd7d710957c7509fa9ade984e0d0
tree5291b9991fd74328a05224b067fad95d89d16129
parent1c6284fc4ed96ec4a9d18ce41bd102fb7237a500
crypto: cmac - return -EINVAL if block size is unsupported

cmac_create() previously returned 0 if a cipher with a block size other
than 8 or 16 bytes was specified.  It should return -EINVAL instead.
Granted, this doesn't actually change any behavior because cryptomgr
currently ignores any return value other than -EAGAIN from template
->create() functions.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/cmac.c