Added OIDs from pkcs#1
authorWerner Koch <wk@gnupg.org>
Tue, 30 Jan 2007 20:12:02 +0000 (20:12 +0000)
committerWerner Koch <wk@gnupg.org>
Tue, 30 Jan 2007 20:12:02 +0000 (20:12 +0000)
cipher/ChangeLog
cipher/sha256.c
cipher/sha512.c

index d534fdc..cbd78ce 100644 (file)
@@ -1,3 +1,9 @@
+2007-01-30  Werner Koch  <wk@g10code.com>
+
+       * sha256.c (oid_spec_sha256): Add alias from pkcs#1.
+       * sha512.c (oid_spec_sha512): Ditto.
+       (oid_spec_sha384): Ditto.
+
 2006-12-18  Werner Koch  <wk@g10code.com>
 
        * rndlinux.c (set_cloexec_flag): New.
index 754f459..7a526a8 100644 (file)
@@ -334,6 +334,9 @@ static gcry_md_oid_spec_t oid_spec_sha256[] =
   {
     /* According to the OpenPGG draft rfc2440-bis06 */
     { "2.16.840.1.101.3.4.2.1" }, 
+    /* PKCS#1 sha256WithRSAEncryption */
+    { "1.2.840.113549.1.1.11" },
+
     { NULL },
   };
 
index e67db2b..57fd180 100644 (file)
@@ -371,6 +371,10 @@ static byte sha512_asn[] = /* Object ID is 2.16.840.1.101.3.4.2.3 */
 static gcry_md_oid_spec_t oid_spec_sha512[] =
   {
     { "2.16.840.1.101.3.4.2.3" },
+
+    /* PKCS#1 sha512WithRSAEncryption */
+    { "1.2.840.113549.1.1.13" },
+
     { NULL }
   };
 
@@ -390,6 +394,10 @@ static byte sha384_asn[] = /* Object ID is 2.16.840.1.101.3.4.2.2 */
 static gcry_md_oid_spec_t oid_spec_sha384[] =
   {
     { "2.16.840.1.101.3.4.2.2" }, 
+
+    /* PKCS#1 sha384WithRSAEncryption */
+    { "1.2.840.113549.1.1.12" },
+
     { NULL },
   };