Home GnuPG

Convert bulk CTR and CBC selftest functions in Camellia to generic selftest…
eed4042fa028Unpublished

Unpublished Commit · Learn More

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

Description

Convert bulk CTR and CBC selftest functions in Camellia to generic selftest helper functions

* cipher/Makefile.am (libcipher_la_SOURCES): Add cipher-selftest files.
* cipher/camellia-glue.c (selftest_ctr_128, selftest_cbc_128): Change
to use the new selftest helper functions.
* cipher/cipher-selftest.c: New.
* cipher/cipher-selftest.h: New.

Convert selftest functions into generic helper functions for code sharing.

[v2]: use syslog for more detailed selftest error messages

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

Details

Provenance
jukiviliAuthored on May 22 2013, 1:10 PM
wernerCommitted on May 22 2013, 5:42 PM
Parents
rCf2986f03d1ae: camellia: add bulk CBC decryption selftest
Branches
Unknown
Tags
Unknown

Event Timeline