diff options
author | Werner Koch <wk@gnupg.org> | 2002-09-26 11:35:19 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2002-09-26 11:35:19 +0200 |
commit | 2536273e67235ce19a2e468adc9ecda699895fba (patch) | |
tree | 621c2427a097d9e3f8afcc023b6ef1dadb98b8f7 | |
parent | * gpg-agent.c (handle_signal): Flush cache on SIGHUP. (diff) | |
download | gnupg2-2536273e67235ce19a2e468adc9ecda699895fba.tar.xz gnupg2-2536273e67235ce19a2e468adc9ecda699895fba.zip |
* tiger.c (tiger_get_info): Use a regular OID. Note that this
breaks all TIGER generated signatures; if we want to do something
about it we have to do it in ../g10/sig-check.c .
-rw-r--r-- | cipher/ChangeLog | 6 | ||||
-rw-r--r-- | cipher/tiger.c | 19 |
2 files changed, 10 insertions, 15 deletions
diff --git a/cipher/ChangeLog b/cipher/ChangeLog index 3058881b6..b16e8325c 100644 --- a/cipher/ChangeLog +++ b/cipher/ChangeLog @@ -1,3 +1,9 @@ +2002-09-26 Werner Koch <wk@gnupg.org> + + * tiger.c (tiger_get_info): Use a regular OID. Note that this + breaks all TIGER generated signatures; if we want to do something + about it we have to do it in ../g10/sig-check.c . + 2002-09-17 Werner Koch <wk@gnupg.org> * rndw32.c (SIZEOF_DISK_PERFORMANCE_STRUCT): Increased to 256. diff --git a/cipher/tiger.c b/cipher/tiger.c index b5e8a8aad..95c8dbad7 100644 --- a/cipher/tiger.c +++ b/cipher/tiger.c @@ -897,21 +897,10 @@ tiger_get_info( int algo, size_t *contextsize, ) { #ifdef HAVE_U64_TYPEDEF - /* 40: SEQUENCE { - * 12: SEQUENCE { - * 8: OCTET STRING :54 49 47 45 52 31 39 32 - * 0: NULL - * : } - * 24: OCTET STRING - * : } - * - * By replacing the 5th byte (0x04) with 0x16 we would have; - * 8: IA5String 'TIGER192' - * Fixme: We should use a registered OID. - */ - static byte asn[18] = - { 0x30, 0x28, 0x30, 0x0c, 0x04, 0x08, 0x54, 0x49, 0x47, - 0x45, 0x52, 0x31, 0x39, 0x32, 0x05, 0x00, 0x04, 0x18 }; + static byte asn[19] = /* Object ID is 1.3.6.1.4.1.11591.12.2 */ + { 0x30, 0x29, 0x30, 0x0d, 0x06, 0x09, 0x2b, 0x06, + 0x01, 0x04, 0x01, 0xda, 0x47, 0x0c, 0x02, + 0x05, 0x00, 0x04, 0x18 }; if( algo != 6 ) return NULL; |