[svn] gcry - r1271 - trunk/cipher
svn author wk
cvs at cvs.gnupg.org
Wed Nov 28 11:37:21 CET 2007
Author: wk
Date: 2007-11-28 11:37:20 +0100 (Wed, 28 Nov 2007)
New Revision: 1271
Modified:
trunk/cipher/ChangeLog
trunk/cipher/sha256.c
Log:
Fixed SHA-224 DER template.
Modified: trunk/cipher/ChangeLog
===================================================================
--- trunk/cipher/ChangeLog 2007-11-13 08:53:21 UTC (rev 1270)
+++ trunk/cipher/ChangeLog 2007-11-28 10:37:20 UTC (rev 1271)
@@ -1,3 +1,9 @@
+2007-11-28 Werner Koch <wk at g10code.com>
+
+ * sha256.c (asn224): Fixed wrong template. It happened due to a
+ bug in RFC4880. SHA-224 is not in the stable version of libgcrypt
+ so the consequences are limited to users of this devel version.
+
2007-10-31 Werner Koch <wk at g10code.com>
* ac.c (gcry_ac_data_new): Remove due to the visibility wrapper.
Modified: trunk/cipher/sha256.c
===================================================================
--- trunk/cipher/sha256.c 2007-11-13 08:53:21 UTC (rev 1270)
+++ trunk/cipher/sha256.c 2007-11-28 10:37:20 UTC (rev 1271)
@@ -314,9 +314,9 @@
}
static byte asn224[19] = /* Object ID is 2.16.840.1.101.3.4.2.4 */
- { 0x30, 0x31, 0x30, 0x0d, 0x06, 0x09, 0x60, 0x86, 0x48,
+ { 0x30, 0x2D, 0x30, 0x0d, 0x06, 0x09, 0x60, 0x86, 0x48,
0x01, 0x65, 0x03, 0x04, 0x02, 0x04, 0x05, 0x00, 0x04,
- 0x20
+ 0x1C
};
static gcry_md_oid_spec_t oid_spec_sha224[] =
More information about the Gnupg-commits
mailing list