Mercurial > dropbear
comparison src/ciphers/twofish/twofish.c @ 281:997e6f7dc01e libtomcrypt-dropbear
Just import the Dropbear 0.47 libtomcrypt changes
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 08 Mar 2006 13:02:58 +0000 |
parents | 59400faa4b44 |
children | 999a5eb4ed10 |
comparison
equal
deleted
inserted
replaced
280:59400faa4b44 | 281:997e6f7dc01e |
---|---|
41 /* the two polynomials */ | 41 /* the two polynomials */ |
42 #define MDS_POLY 0x169 | 42 #define MDS_POLY 0x169 |
43 #define RS_POLY 0x14D | 43 #define RS_POLY 0x14D |
44 | 44 |
45 /* The 4x4 MDS Linear Transform */ | 45 /* The 4x4 MDS Linear Transform */ |
46 #if 0 | |
46 static const unsigned char MDS[4][4] = { | 47 static const unsigned char MDS[4][4] = { |
47 { 0x01, 0xEF, 0x5B, 0x5B }, | 48 { 0x01, 0xEF, 0x5B, 0x5B }, |
48 { 0x5B, 0xEF, 0xEF, 0x01 }, | 49 { 0x5B, 0xEF, 0xEF, 0x01 }, |
49 { 0xEF, 0x5B, 0x01, 0xEF }, | 50 { 0xEF, 0x5B, 0x01, 0xEF }, |
50 { 0xEF, 0x01, 0xEF, 0x5B } | 51 { 0xEF, 0x01, 0xEF, 0x5B } |
51 }; | 52 }; |
53 #endif | |
52 | 54 |
53 /* The 4x8 RS Linear Transform */ | 55 /* The 4x8 RS Linear Transform */ |
54 static const unsigned char RS[4][8] = { | 56 static const unsigned char RS[4][8] = { |
55 { 0x01, 0xA4, 0x55, 0x87, 0x5A, 0x58, 0xDB, 0x9E }, | 57 { 0x01, 0xA4, 0x55, 0x87, 0x5A, 0x58, 0xDB, 0x9E }, |
56 { 0xA4, 0x56, 0x82, 0xF3, 0X1E, 0XC6, 0X68, 0XE5 }, | 58 { 0xA4, 0x56, 0x82, 0xF3, 0X1E, 0XC6, 0X68, 0XE5 }, |