}
void testrun_skipjack(void){
- uint8_t key[]={ 0x00, 0x99, 0x88, 0x77, 0x66,
- 0x55, 0x44, 0x33, 0x22, 0x11};
- uint8_t data[]={ 0x33, 0x22, 0x11, 0x00, 0xdd, 0xcc, 0xbb, 0xaa};
- testencrypt(data,key);
- testdecrypt(data,key);
+ uint8_t key[2][10]={
+ { 0x00, 0x99, 0x88, 0x77, 0x66,
+ 0x55, 0x44, 0x33, 0x22, 0x11 },
+ { 0x11, 0x22, 0x33, 0x44, 0x55,
+ 0x66, 0x77, 0x88, 0x99, 0x00 }
+ };
+
+ uint8_t data[2][8]={
+ { 0x33, 0x22, 0x11, 0x00,
+ 0xdd, 0xcc, 0xbb, 0xaa },
+ { 0xaa, 0xbb, 0xcc, 0xdd,
+ 0x00, 0x11, 0x22, 0x33 }
+ };
+ testencrypt(data[0],key[0]);
+ testdecrypt(data[0],key[0]);
+ testencrypt(data[1],key[1]);
+ testdecrypt(data[1],key[1]);
}