]> git.cryptolib.org Git - avr-crypto-lib.git/commitdiff
fixing a bug in the DES testing code
authorbg <bg@b1d182e4-1ff8-0310-901f-bddb46175740>
Sat, 19 Jul 2008 01:53:17 +0000 (01:53 +0000)
committerbg <bg@b1d182e4-1ff8-0310-901f-bddb46175740>
Sat, 19 Jul 2008 01:53:17 +0000 (01:53 +0000)
main-des-test.c

index 4822c549c1bfe45ad5c017e53fea1a6d35a8400e..6a0e428f40d16051e15795c6ef83335786c4576f 100644 (file)
@@ -57,7 +57,7 @@ void testrun_nessie_des(void){
        nessie_bc_ctx.blocksize_B =   8;
        nessie_bc_ctx.keysize_b   =  64;
        nessie_bc_ctx.name        = cipher_name;
-       nessie_bc_ctx.ctx_size_B  = sizeof(8);
+       nessie_bc_ctx.ctx_size_B  = 8;
        nessie_bc_ctx.cipher_enc  = (nessie_bc_enc_fpt)des_enc_dummy;
        nessie_bc_ctx.cipher_dec  = (nessie_bc_dec_fpt)des_dec_dummy;
        nessie_bc_ctx.cipher_genctx  = (nessie_bc_gen_fpt)des_init_dummy;