summaryrefslogtreecommitdiff
path: root/drivers/crypto/amcc/crypto4xx_core.h
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@gmail.com>2018-04-19 19:41:56 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2018-04-28 11:09:44 +0300
commit584201f1895d915c1aa523bc86afdc126e94beca (patch)
treefbe7066e9b1c0f1cb3bc9d39669c9772a9df3686 /drivers/crypto/amcc/crypto4xx_core.h
parentfc340115ffb8235c1bbd200c28855e6373d0dd1a (diff)
downloadlinux-584201f1895d915c1aa523bc86afdc126e94beca.tar.xz
crypto: crypto4xx - extend aead fallback checks
1020 bytes is the limit for associated data. Any more and it will no longer fit into hash_crypto_offset anymore. The hardware will not process aead requests with plaintext that have less than AES_BLOCK_SIZE bytes. When decrypting aead requests the authsize has to be taken in account as well, as it is part of the cryptlen. Otherwise the hardware will think it has been misconfigured and will return: aead return err status = 0x98 For rtc4543(gcm(aes)), the hardware has a dedicated GMAC mode as part of the hash function set. Signed-off-by: Christian Lamparter <chunkeey@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/amcc/crypto4xx_core.h')
0 files changed, 0 insertions, 0 deletions