diff options
author | Saulo Alessandre <saulo.alessandre@tse.jus.br> | 2021-03-16 17:07:35 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-03-26 19:41:58 +1100 |
commit | ba1c2bd22584e3cfcf288e717a7936c6614a75f6 (patch) | |
tree | 26f207c0b93374c8dfcb76b7e5197046588d07f3 /crypto/testmgr.c | |
parent | 2f64c0b78fc58a4dac336a3b1f611fe866b1cd24 (diff) | |
download | linux-crypto-ba1c2bd22584e3cfcf288e717a7936c6614a75f6.tar.gz linux-crypto-ba1c2bd22584e3cfcf288e717a7936c6614a75f6.zip |
crypto: ecdsa - Register NIST P384 and extend test suite
Register NIST P384 as an akcipher and extend the testmgr with
NIST P384-specific test vectors.
Summary of changes:
* crypto/ecdsa.c
- add ecdsa_nist_p384_init_tfm
- register and unregister P384 tfm
* crypto/testmgr.c
- add test vector for P384 on vector of tests
* crypto/testmgr.h
- add test vector params for P384(sha1, sha224, sha256, sha384
and sha512)
Signed-off-by: Saulo Alessandre <saulo.alessandre@tse.jus.br>
Tested-by: Stefan Berger <stefanb@linux.ibm.com>
Acked-by: Jarkko Sakkinen <jarkko@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 67c6c229..367aba99 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -4923,6 +4923,12 @@ static const struct alg_test_desc alg_test_descs[] = { .akcipher = __VECS(ecdsa_nist_p256_tv_template) } }, { + .alg = "ecdsa-nist-p384", + .test = alg_test_akcipher, + .suite = { + .akcipher = __VECS(ecdsa_nist_p384_tv_template) + } + }, { .alg = "ecrdsa", .test = alg_test_akcipher, .suite = { |