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 | f613457a7af085728297bef71233c37faf3c01b1 (patch) | |
tree | 34dcc5bee87a1da254efafd9ceda434c2e4e3349 /crypto/testmgr.c | |
parent | 0ed42a6f431e930b2e8fae21955406e09fe75d70 (diff) | |
download | linux-f613457a7af085728297bef71233c37faf3c01b1.tar.bz2 |
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 535772851c2a..82513b6b0abd 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, |