summaryrefslogtreecommitdiff
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorHui Tang <tanghui20@huawei.com>2021-05-22 10:44:31 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2021-05-28 15:11:47 +0800
commit8afbda8b8264baac327e297aa4b94b4107531fd2 (patch)
tree45c21a3a4ead48491b486c0875a10d78127b8a99 /crypto/testmgr.c
parente4ba9dcac7bbbbcc200fcd447ff3f28c42ceef91 (diff)
downloadlinux-crypto-8afbda8b8264baac327e297aa4b94b4107531fd2.tar.gz
linux-crypto-8afbda8b8264baac327e297aa4b94b4107531fd2.zip
crypto: ecdh - add test suite for NIST P384
Add test vector params for NIST P384, add test vector for NIST P384 on vector of tests. Vector param from: https://datatracker.ietf.org/doc/html/rfc5903#section-3.1 Signed-off-by: Hui Tang <tanghui20@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.c')
-rw-r--r--crypto/testmgr.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index 26e40dba..1f7f63e8 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -4912,6 +4912,13 @@ static const struct alg_test_desc alg_test_descs[] = {
.kpp = __VECS(ecdh_p256_tv_template)
}
}, {
+ .alg = "ecdh-nist-p384",
+ .test = alg_test_kpp,
+ .fips_allowed = 1,
+ .suite = {
+ .kpp = __VECS(ecdh_p384_tv_template)
+ }
+ }, {
.alg = "ecdsa-nist-p192",
.test = alg_test_akcipher,
.suite = {