crypto: kdf - Add key derivation self-test support code
authorStephan Müller <smueller@chronox.de>
Fri, 19 Nov 2021 06:55:33 +0000 (07:55 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 26 Nov 2021 05:25:17 +0000 (16:25 +1100)
commitb808f32023dd8127b0fa27f60fa69a959fd70388
treeb1669fdfdf052ed6212bd8a574f9e52571fe90d6
parent83f50f2948baef5fb5f2f547a573f113f03f2b15
crypto: kdf - Add key derivation self-test support code

As a preparation to add the key derivation implementations, the
self-test data structure definition and the common test code is made
available.

The test framework follows the testing applied by the NIST CAVP test
approach.

The structure of the test code follows the implementations found in
crypto/testmgr.c|h. In case the KDF implementations will be made
available via a kernel crypto API templates, the test code is intended
to be merged into testmgr.c|h.

Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/crypto/internal/kdf_selftest.h [new file with mode: 0644]