linux/drivers/crypto/amcc
Christian Lamparter 584201f189 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>
2018-04-28 16:09:44 +08:00
..
crypto4xx_alg.c crypto: crypto4xx - extend aead fallback checks 2018-04-28 16:09:44 +08:00
crypto4xx_core.c crypto: crypto4xx - properly set IV after de- and encrypt 2018-04-28 16:09:43 +08:00
crypto4xx_core.h crypto: crypto4xx - add aes-ctr support 2018-04-28 16:09:43 +08:00
crypto4xx_reg_def.h crypto: crypto4xx - support Revision B parts 2018-01-05 18:43:03 +11:00
crypto4xx_sa.h crypto: crypto4xx - prepare for AEAD support 2017-10-12 22:55:19 +08:00
crypto4xx_trng.c crypto: crypto4xx - kill MODULE_NAME 2018-01-05 18:43:04 +11:00
crypto4xx_trng.h crypto4xx: integrate ppc4xx-rng into crypto4xx 2016-04-20 17:50:02 +08:00
Makefile crypto: crypto4xx - move and refactor dynamic_contents helpers 2017-09-22 17:43:18 +08:00