summaryrefslogtreecommitdiff
path: root/crypto/ecdsasignature.asn1
diff options
context:
space:
mode:
authorStefan Berger <stefanb@linux.ibm.com>2021-03-17 00:07:32 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2021-03-26 11:41:58 +0300
commit4e6602916bc692ee31ac5b8bd8195fb078556844 (patch)
tree94f5e1d9f2819521eac2590b3dc95490e13e3437 /crypto/ecdsasignature.asn1
parent7547738d28dd572d40e0e1c1f854c80e3cb41bec (diff)
downloadlinux-4e6602916bc692ee31ac5b8bd8195fb078556844.tar.xz
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.asn14
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/ecdsasignature.asn1 b/crypto/ecdsasignature.asn1
new file mode 100644
index 000000000000..621ab754fb9f
--- /dev/null
+++ b/crypto/ecdsasignature.asn1
@@ -0,0 +1,4 @@
+ECDSASignature ::= SEQUENCE {
+ r INTEGER ({ ecdsa_get_signature_r }),
+ s INTEGER ({ ecdsa_get_signature_s })
+}