diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2019-11-08 13:22:33 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-11-17 09:02:43 +0800 |
commit | e86a2eeed689c9432906fcfae6bea663e36f8c46 (patch) | |
tree | af5f4f3c0732d3377179cda53718d539d8111ca1 /crypto/testmgr.c | |
parent | 4feae5ec579dc667a73fb1199a24af688c1d72a9 (diff) | |
download | linux-crypto-e86a2eeed689c9432906fcfae6bea663e36f8c46.tar.gz linux-crypto-e86a2eeed689c9432906fcfae6bea663e36f8c46.zip |
crypto: curve25519 - add kpp selftest
In preparation of introducing KPP implementations of Curve25519, import
the set of test cases proposed by the Zinc patch set, but converted to
the KPP format.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.c')
-rw-r--r-- | crypto/testmgr.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c index 53577285..82513b6b 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -4318,6 +4318,12 @@ static const struct alg_test_desc alg_test_descs[] = { .test = alg_test_null, .fips_allowed = 1, }, { + .alg = "curve25519", + .test = alg_test_kpp, + .suite = { + .kpp = __VECS(curve25519_tv_template) + } + }, { .alg = "deflate", .test = alg_test_comp, .fips_allowed = 1, |