diff options
author | Eric Biggers <ebiggers@google.com> | 2016-10-10 19:15:14 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-10-21 05:03:42 +0200 |
commit | 48ee41bf5ba052364f78781e9082a510fbcd104a (patch) | |
tree | 5291b9991fd74328a05224b067fad95d89d16129 /crypto/blkcipher.c | |
parent | crypto: api - Remove no-op exit_ops code (diff) | |
download | linux-48ee41bf5ba052364f78781e9082a510fbcd104a.tar.xz linux-48ee41bf5ba052364f78781e9082a510fbcd104a.zip |
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>
Diffstat (limited to 'crypto/blkcipher.c')
0 files changed, 0 insertions, 0 deletions