Home GnuPG

Extend test of chained modes for 128bit ciphers
55b96be08531Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Extend test of chained modes for 128bit ciphers

* tests/basic.c (check_one_cipher_core, check_one_cipher): Increase
input and output buffer sizes from 16 bytes to 1024+16=1040 bytes.
(check_one_cipher_core): Add asserts to verify sizes of temporary
buffers.

Currently check_one_cipher() has buffer size of 16 bytes, which is one block
with 128bit cipher. As result chained modes for 128bit ciphers are not well
tested. Increase buffer size to 1040 bytes, so that iterations of chained
modes and parallellized code paths (AES-NI CTR, etc) are also tested.
Extra 16 bytes after 1024 bytes to ensure that loop transision from
parallelized code paths to serialized code paths get tested too.

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

Details

Provenance
jukiviliAuthored on Nov 23 2012, 6:21 PM
wernerCommitted on Nov 26 2012, 9:08 AM
Parents
rCdfb4673da8ee: Fix for strict aliasing rules.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rC55b96be08531: Extend test of chained modes for 128bit ciphers (authored by Jussi Kivilinna <jussi.kivilinna@mbnet.fi>).Nov 26 2012, 9:08 AM