]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - test_src/main-skipjack-test.c
sha3 api for twister
[avr-crypto-lib.git] / test_src / main-skipjack-test.c
index a7f1165c697fa97bd0ccac0e9cea178b657ed47a..68baa3a697e9a9a734de2cbe919144ff0344b078 100644 (file)
@@ -112,11 +112,23 @@ void testdecrypt(uint8_t* block, uint8_t* key){
 }
 
 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]);    
 }