HomeFreeBSD

cryptocheck: Add aliases for algs with multiple key sizes.

Description

cryptocheck: Add aliases for algs with multiple key sizes.

Previously algorithms such as AES-CBC would provide an algorithm
without a key size for the smallest key size and additional algorithms
with an explicit key size, e.g. "aes-cbc" (128 bits), "aes-cbc192",
and "aes-cbc256".

Instead, always make the key size name explicit and reuse the
"generic" name to request running tests against all of the key sizes.
For example, for AES-CBC this means "aes-cbc128" is now the name of
the variant with a 128-bit key and "aes-cbc" runs tests of AES-CBC
with all three key sizes.

This makes it easier to run tests on all combinations of ciphers like
AES-GCM or AES-CCM with -z in a single invocation.

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D33759

(cherry picked from commit 78beb051a2661b873342162b1ec0ad55b4e27261)

Details

Provenance
jhbAuthored on Jan 6 2022, 10:46 PM
Reviewer
markj
Differential Revision
D33759: cryptocheck: Add aliases for algs with multiple key sizes.
Parents
rGfdc72c53304d: Bump Dd for crypto_clonereq.
Branches
Unknown
Tags
Unknown