Home GnuPG

chacha20-poly1305: fix wrong en/decryption on large input buffers

Description

chacha20-poly1305: fix wrong en/decryption on large input buffers

* cipher/chacha20.c (_gcry_chacha20_poly1305_encrypt)
(_gcry_chacha20_poly1305_decrypt): Correctly use 'currlen' for chacha20
on the non-stitched code path.

This patch fixes bug which was introduced by commit:

"Add stitched ChaCha20-Poly1305 SSSE3 and AVX2 implementations"
d6330dfb4b0e9fb3f8eef65ea13146060b804a97
  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Details

Provenance
jukiviliAuthored on Mar 26 2019, 6:27 PM
Parents
rCbb03edcbba95: doc: add mention about aligning data to cachelines for best performance
Branches
Unknown
Tags
Unknown