diff options
author | Stefan Berger <stefanb@linux.ibm.com> | 2024-04-04 10:18:54 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2024-04-12 15:07:52 +0800 |
commit | 62cba55fd3c30be1bcfd4aa45cb95fb60761c653 (patch) | |
tree | 0f50fbf6c08efd27870a7e0555c56f603344bac7 /crypto/testmgr.c | |
parent | 0f419a55fe9f5a7245d4043c9b5f89d43c7a4491 (diff) | |
download | linux-crypto-62cba55fd3c30be1bcfd4aa45cb95fb60761c653.tar.gz linux-crypto-62cba55fd3c30be1bcfd4aa45cb95fb60761c653.zip |
crypto: ecdsa - Register NIST P521 and extend test suite
Register NIST P521 as an akcipher and extend the testmgr with
NIST P521-specific test vectors.
Add a module alias so the module gets automatically loaded by the crypto
subsystem when the curve is needed.
Tested-by: Lukas Wunner <lukas@wunner.de>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.c')
-rw-r--r-- | crypto/testmgr.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c index 3dddd288..00f5a6cf 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -5098,6 +5098,13 @@ static const struct alg_test_desc alg_test_descs[] = { .akcipher = __VECS(ecdsa_nist_p384_tv_template) } }, { + .alg = "ecdsa-nist-p521", + .test = alg_test_akcipher, + .fips_allowed = 1, + .suite = { + .akcipher = __VECS(ecdsa_nist_p521_tv_template) + } + }, { .alg = "ecrdsa", .test = alg_test_akcipher, .suite = { |