+11
−1
Loading
Restore the partial block buffer in crypto_ahash_import by copying it. Check whether the partial block buffer exceeds the maximum size and return -EOVERFLOW if it does. Zero the partial block buffer in crypto_ahash_import_core. Reported-by:T Pratham <t-pratham@ti.com> Tested-by:
T Pratham <t-pratham@ti.com> Fixes: 9d7a0ab1 ("crypto: ahash - Handle partial blocks in API") Signed-off-by:
Herbert Xu <herbert@gondor.apana.org.au>