• Eric Biggers's avatar
    crypto: testmgr - fix testing OPTIONAL_KEY hash algorithms · 9b3abc01
    Eric Biggers authored
    Since testmgr uses a single tfm for all tests of each hash algorithm,
    once a key is set the tfm won't be unkeyed anymore.  But with crc32 and
    crc32c, the key is really the "default initial state" and is optional;
    those algorithms should have both keyed and unkeyed test vectors, to
    verify that implementations use the correct default key.
    
    Simply listing the unkeyed test vectors first isn't guaranteed to work
    yet because testmgr makes multiple passes through the test vectors.
    crc32c does have an unkeyed test vector listed first currently, but it
    only works by chance because the last crc32c test vector happens to use
    a key that is the same as the default key.
    
    Therefore, teach testmgr to split hash test vectors into unkeyed and
    keyed sections, and do all the unkeyed ones before the keyed ones.
    Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    9b3abc01
Name
Last commit
Last update
Documentation Loading commit data...
LICENSES Loading commit data...
arch Loading commit data...
block Loading commit data...
certs Loading commit data...
crypto Loading commit data...
drivers Loading commit data...
firmware Loading commit data...
fs Loading commit data...
include Loading commit data...
init Loading commit data...
ipc Loading commit data...
kernel Loading commit data...
lib Loading commit data...
mm Loading commit data...
net Loading commit data...
samples Loading commit data...
scripts Loading commit data...
security Loading commit data...
sound Loading commit data...
tools Loading commit data...
usr Loading commit data...
virt Loading commit data...
.clang-format Loading commit data...
.cocciconfig Loading commit data...
.get_maintainer.ignore Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
Kbuild Loading commit data...
Kconfig Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...