summaryrefslogtreecommitdiff
path: root/cipher/tiger.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2002-10-14 18:07:00 +0000
committerWerner Koch <wk@gnupg.org>2002-10-14 18:07:00 +0000
commite74ee5afb805cd46c9ea77a4888664fc904645e2 (patch)
treea4805a34d1703f8f1336e70b53c25f8327920bba /cipher/tiger.c
parent71ec74ab090fcc0e715ff74d5f489572813f8829 (diff)
downloadlibgcrypt-e74ee5afb805cd46c9ea77a4888664fc904645e2.tar.gz
* arcfour.c (do_encrypt_stream): Don't use increment op when
assigning to the same variable.
Diffstat (limited to 'cipher/tiger.c')
-rw-r--r--cipher/tiger.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/cipher/tiger.c b/cipher/tiger.c
index e179c35f..7ee60bd7 100644
--- a/cipher/tiger.c
+++ b/cipher/tiger.c
@@ -847,20 +847,10 @@ tiger_get_info( int algo, size_t *contextsize,
byte *(**r_read)( void *c )
)
{
- /* 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'
- */
- 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;