]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - test_src/main-salsa20-test.c
some fixes, mainly at rsaes-pkcs1v15
[avr-crypto-lib.git] / test_src / main-salsa20-test.c
index 03324571a8a4f4b8efb88bdcadfc92acde844d83..9e8bb2fdc71897b96778fe6769eedeec4f993b1c 100644 (file)
@@ -51,10 +51,10 @@ void nessie_first(void){
        cli_hexdump(key, 16);
        salsa20_init(key, 128, NULL, &ctx);
        cli_putstr_P(PSTR("\r\n internal state: "));
-       cli_hexdump_block(ctx.a, 64, 4, 16);
+       cli_hexdump_block(ctx.a.v8, 64, 4, 16);
        salsa20_gen(&ctx);
        cli_putstr_P(PSTR("\r\n internal state: "));
-       cli_hexdump_block(ctx.a, 64, 4, 16);
+       cli_hexdump_block(ctx.a.v8, 64, 4, 16);
        cli_putstr_P(PSTR("\r\n data: "));
        cli_hexdump_block(ctx.buffer, 64, 4, 16);
 
@@ -63,13 +63,13 @@ void nessie_first(void){
        key[15] = 0x01;
        cli_putstr_P(PSTR("\r\n testing with key: "));
        cli_hexdump(key, 16);
-       cli_hexdump_block(ctx.a, 64, 4, 16);
+       cli_hexdump_block(ctx.a.v8, 64, 4, 16);
        salsa20_init(key, 128, NULL, &ctx);
        cli_putstr_P(PSTR("\r\n internal state: "));
-       cli_hexdump_block(ctx.a, 64, 4, 16);
+       cli_hexdump_block(ctx.a.v8, 64, 4, 16);
        salsa20_gen(&ctx);
        cli_putstr_P(PSTR("\r\n internal state: "));
-       cli_hexdump_block(ctx.a, 64, 4, 16);
+       cli_hexdump_block(ctx.a.v8, 64, 4, 16);
        cli_putstr_P(PSTR("\r\n data: "));
        cli_hexdump_block(ctx.buffer, 64, 4, 16);
 }