]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - main-serpent-test.c
sha256 and xtea got each a own testsuit
[avr-crypto-lib.git] / main-serpent-test.c
index ed8cf7080e58080cce5b4d4fc5ce9167671bfa53..2f0f22250313ee121d3d2106a586f42f801a4ed7 100644 (file)
@@ -23,7 +23,7 @@ void serpent_genctx_dummy(uint8_t* key, uint16_t keysize, void* ctx){
        serpent_genctx(key, keysize&0xff, ctx);
 }
 
-void testrun_serpent(void){
+void testrun_nessie_serpent(void){
        nessie_ctx.blocksize_B =  16;
        nessie_ctx.keysize     = 128;
        nessie_ctx.name        = cipher_name;
@@ -60,14 +60,13 @@ int main (void){
 restart:
        while(1){ 
                if (!getnextwordn(str,20))  {DEBUG_S("DBG: W1\r\n"); goto error;}
-               if (strcmp(str, "test")) {DEBUG_S("DBG: 1b\r\n"); goto error;}
-                       testrun_serpent();
+               if (strcmp(str, "nessie")) {DEBUG_S("DBG: 1b\r\n"); goto error;}
+                       testrun_nessie_serpent();
                goto restart;           
                continue;
        error:
                uart_putstr("ERROR\r\n");
        }
        
-       
 }