[svn] gcry - r1197 - trunk/cipher

svn author wk cvs at cvs.gnupg.org
Tue Jan 30 21:12:03 CET 2007


Author: wk
Date: 2007-01-30 21:12:02 +0100 (Tue, 30 Jan 2007)
New Revision: 1197

Modified:
   trunk/cipher/ChangeLog
   trunk/cipher/sha256.c
   trunk/cipher/sha512.c
Log:
Added OIDs from pkcs#1


Modified: trunk/cipher/ChangeLog
===================================================================
--- trunk/cipher/ChangeLog	2007-01-30 20:11:43 UTC (rev 1196)
+++ trunk/cipher/ChangeLog	2007-01-30 20:12:02 UTC (rev 1197)
@@ -1,3 +1,9 @@
+2007-01-30  Werner Koch  <wk at 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 at g10code.com>
 
 	* rndlinux.c (set_cloexec_flag): New.

Modified: trunk/cipher/sha256.c
===================================================================
--- trunk/cipher/sha256.c	2007-01-30 20:11:43 UTC (rev 1196)
+++ trunk/cipher/sha256.c	2007-01-30 20:12:02 UTC (rev 1197)
@@ -334,6 +334,9 @@
   {
     /* 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 },
   };
 

Modified: trunk/cipher/sha512.c
===================================================================
--- trunk/cipher/sha512.c	2007-01-30 20:11:43 UTC (rev 1196)
+++ trunk/cipher/sha512.c	2007-01-30 20:12:02 UTC (rev 1197)
@@ -371,6 +371,10 @@
 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 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 },
   };
 




More information about the Gnupg-commits mailing list