diff options
author | Eric Biggers <ebiggers@google.com> | 2016-10-10 10:15:14 -0700 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-10-21 11:03:42 +0800 |
commit | 8fd95025508cb816a0df00fab83b46b6f070a482 (patch) | |
tree | 53b136f1bebf0206c9d43752d9306c858cffd5fb /crypto/md5.c | |
parent | 68b0f50b3534bdb9be58a943b51957d1570ba9dc (diff) | |
download | linux-crypto-8fd95025508cb816a0df00fab83b46b6f070a482.tar.gz linux-crypto-8fd95025508cb816a0df00fab83b46b6f070a482.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/md5.c')
0 files changed, 0 insertions, 0 deletions