aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2022-03-14 08:36:14 +0100
committerWerner Koch <[email protected]>2022-03-28 08:29:43 +0200
commit26ac5e30018f2bf0a973b3a45410e6a0c8067f0e (patch)
tree302a65143a62a997ef0c8bb2f5949cc2edcc6fd1
parentec656616bbbb5db87d3cdf4f4ea695217935d843 (diff)
downloadlibgcrypt-26ac5e30018f2bf0a973b3a45410e6a0c8067f0e.tar.gz
libgcrypt-26ac5e30018f2bf0a973b3a45410e6a0c8067f0e.tar.bz2
libgcrypt-26ac5e30018f2bf0a973b3a45410e6a0c8067f0e.zip
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 05c8943e..42eaf1fe 100644
--- a/cipher/sha512.c
+++ b/cipher/sha512.c
@@ -1229,6 +1229,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 }
};
@@ -1260,6 +1262,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 },
};