summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2022-03-14 08:36:14 +0100
committerWerner Koch <wk@gnupg.org>2022-03-28 08:37:00 +0200
commit52fd2305ba8a0c53214016c11fdf03d47761ee8e (patch)
treee1c45f36582a39c9e5706692095709b0cbd24b22
parenteeddd578120c6c28cf600016aae124223ef99e8b (diff)
downloadlibgcrypt-52fd2305ba8a0c53214016c11fdf03d47761ee8e.tar.gz
hash: Add more OIDs.
* cipher/sha256.c: Add X9.62 OID. * cipher/sha512.c: Ditto.
-rw-r--r--cipher/sha256.c4
-rw-r--r--cipher/sha512.c5
2 files changed, 9 insertions, 0 deletions
diff --git a/cipher/sha256.c b/cipher/sha256.c
index 642711af..24cab566 100644
--- a/cipher/sha256.c
+++ b/cipher/sha256.c
@@ -798,6 +798,8 @@ static const gcry_md_oid_spec_t oid_spec_sha224[] =
{
/* From RFC3874, Section 4 */
{ "2.16.840.1.101.3.4.2.4" },
+ /* ANSI X9.62 ecdsaWithSHA224 */
+ { "1.2.840.10045.4.3.1" },
{ NULL },
};
@@ -812,6 +814,8 @@ static const gcry_md_oid_spec_t oid_spec_sha256[] =
{ "2.16.840.1.101.3.4.2.1" },
/* PKCS#1 sha256WithRSAEncryption */
{ "1.2.840.113549.1.1.11" },
+ /* ANSI X9.62 ecdsaWithSHA256 */
+ { "1.2.840.10045.4.3.2" },
{ NULL },
};
diff --git a/cipher/sha512.c b/cipher/sha512.c
index 9cab33d6..57a74664 100644
--- a/cipher/sha512.c
+++ b/cipher/sha512.c
@@ -1191,6 +1191,8 @@ static const gcry_md_oid_spec_t oid_spec_sha512[] =
/* PKCS#1 sha512WithRSAEncryption */
{ "1.2.840.113549.1.1.13" },
+ /* ANSI X9.62 ecdsaWithSHA512 */
+ { "1.2.840.10045.4.3.4" },
{ NULL }
};
@@ -1222,6 +1224,9 @@ static const gcry_md_oid_spec_t oid_spec_sha384[] =
/* SHA384WithECDSA: RFC 7427 (A.3.3.) */
{ "1.2.840.10045.4.3.3" },
+ /* ANSI X9.62 ecdsaWithSHA384 */
+ { "1.2.840.10045.4.3.3" },
+
{ NULL },
};