Commit 18808824 authored by Saulo Alessandre's avatar Saulo Alessandre Committed by Zheng Zengkai
Browse files

crypto: ecdsa - Register NIST P384 and extend test suite

mainline inclusion
from mainline-v5.13-rc1
commit c12d448b
category: feature
bugzilla: 173981
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c12d448ba939cafc5fe04ae93bc3f4c27b5d213c



----------------------------------------------------------------------

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: default avatarSaulo Alessandre <saulo.alessandre@tse.jus.br>
Tested-by: default avatarStefan Berger <stefanb@linux.ibm.com>
Acked-by: default avatarJarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarMingqiang Ling <lingmingqiang@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 178d7871
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment