Home GnuPG

tests/basic: check 32-bit and 64-bit overflow for CTR and ChaCha20

Description

tests/basic: check 32-bit and 64-bit overflow for CTR and ChaCha20

* tests/basic.c (check_one_cipher_ctr_reset)
(check_one_cipher_ctr_overflow): New.
(check_one_cipher): Add counter overflow tests for ChaCha20 and CTR
mode.

Patch adds counter overflow tests to check for correct counter handling
in bulk processing implementations.

  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Details

Provenance
jukiviliAuthored on Dec 2 2020, 7:46 PM
Parents
rCed45eac3b721: chacha20-ppc: fix 32-bit counter overflow handling
Branches
Unknown
Tags
Unknown