• Christian Lamparter's avatar
    crypto: crypto4xx - extend aead fallback checks · 584201f1
    Christian Lamparter authored
    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: default avatarChristian Lamparter <chunkeey@gmail.com>
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    584201f1
crypto4xx_alg.c 20.4 KB