summaryrefslogtreecommitdiff
path: root/cipher/sha256.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2007-11-28 10:37:20 +0000
committerWerner Koch <wk@gnupg.org>2007-11-28 10:37:20 +0000
commitceb9f97eff920b1d986e28468b73919b2abfffc7 (patch)
tree2891ec50e63522ed6505b6e1e3b1e61a79414092 /cipher/sha256.c
parent0732decfa4e3819b7e7677ae3bbede268a2f8799 (diff)
downloadlibgcrypt-ceb9f97eff920b1d986e28468b73919b2abfffc7.tar.gz
Fixed SHA-224 DER template.
Diffstat (limited to 'cipher/sha256.c')
-rw-r--r--cipher/sha256.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cipher/sha256.c b/cipher/sha256.c
index ce53b916..9d47b837 100644
--- a/cipher/sha256.c
+++ b/cipher/sha256.c
@@ -314,9 +314,9 @@ sha256_read (void *context)
}
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[] =