Mercurial > dropbear
comparison twofish.c @ 151:8fc624ea2521 libtomcrypt
Cleaning up various unused bits (des_*, rijndael, MDS for twofish)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 20 Dec 2004 14:25:33 +0000 |
parents | d7da3b1e1540 |
children |
comparison
equal
deleted
inserted
replaced
147:c2b93763dac9 | 151:8fc624ea2521 |
---|---|
36 /* the two polynomials */ | 36 /* the two polynomials */ |
37 #define MDS_POLY 0x169 | 37 #define MDS_POLY 0x169 |
38 #define RS_POLY 0x14D | 38 #define RS_POLY 0x14D |
39 | 39 |
40 /* The 4x4 MDS Linear Transform */ | 40 /* The 4x4 MDS Linear Transform */ |
41 #if 0 | |
41 static const unsigned char MDS[4][4] = { | 42 static const unsigned char MDS[4][4] = { |
42 { 0x01, 0xEF, 0x5B, 0x5B }, | 43 { 0x01, 0xEF, 0x5B, 0x5B }, |
43 { 0x5B, 0xEF, 0xEF, 0x01 }, | 44 { 0x5B, 0xEF, 0xEF, 0x01 }, |
44 { 0xEF, 0x5B, 0x01, 0xEF }, | 45 { 0xEF, 0x5B, 0x01, 0xEF }, |
45 { 0xEF, 0x01, 0xEF, 0x5B } | 46 { 0xEF, 0x01, 0xEF, 0x5B } |
46 }; | 47 }; |
48 #endif | |
47 | 49 |
48 /* The 4x8 RS Linear Transform */ | 50 /* The 4x8 RS Linear Transform */ |
49 static const unsigned char RS[4][8] = { | 51 static const unsigned char RS[4][8] = { |
50 { 0x01, 0xA4, 0x55, 0x87, 0x5A, 0x58, 0xDB, 0x9E }, | 52 { 0x01, 0xA4, 0x55, 0x87, 0x5A, 0x58, 0xDB, 0x9E }, |
51 { 0xA4, 0x56, 0x82, 0xF3, 0X1E, 0XC6, 0X68, 0XE5 }, | 53 { 0xA4, 0x56, 0x82, 0xF3, 0X1E, 0XC6, 0X68, 0XE5 }, |