diff options
author | Stefan Berger <stefanb@linux.ibm.com> | 2021-03-16 17:07:32 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-03-26 19:41:58 +1100 |
commit | ef4af956b9d00ac14d554ace5d9d2f517af2d42b (patch) | |
tree | c9c97c12dcf5c8166b1f10a87a317b5c2f360ba9 /crypto/ecdsasignature.asn1 | |
parent | 6bb62f2b2b65481f232042e2be2de4452e2a7bb1 (diff) | |
download | linux-crypto-ef4af956b9d00ac14d554ace5d9d2f517af2d42b.tar.gz linux-crypto-ef4af956b9d00ac14d554ace5d9d2f517af2d42b.zip |
crypto: ecdsa - Add support for ECDSA signature verification
Add support for parsing the parameters of a NIST P256 or NIST P192 key.
Enable signature verification using these keys. The new module is
enabled with CONFIG_ECDSA:
Elliptic Curve Digital Signature Algorithm (NIST P192, P256 etc.)
is A NIST cryptographic standard algorithm. Only signature verification
is implemented.
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: linux-crypto@vger.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/ecdsasignature.asn1')
-rw-r--r-- | crypto/ecdsasignature.asn1 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/ecdsasignature.asn1 b/crypto/ecdsasignature.asn1 new file mode 100644 index 00000000..621ab754 --- /dev/null +++ b/crypto/ecdsasignature.asn1 @@ -0,0 +1,4 @@ +ECDSASignature ::= SEQUENCE { + r INTEGER ({ ecdsa_get_signature_r }), + s INTEGER ({ ecdsa_get_signature_s }) +} |