]> git.cryptolib.org Git - arm-crypto-lib.git/blobdiff - test_src/main-salsa20-test.c
now with rsassa-pkcs1v15 (old rsa signatures) + many new things
[arm-crypto-lib.git] / test_src / main-salsa20-test.c
index 1588af276467510a74b9cf17db2e732e4c4ff9ce..a0c734682dbada72af99d9d0c3bd06d5dd216bc7 100644 (file)
@@ -42,10 +42,10 @@ void nessie_first(void){
        cli_hexdump(key, 16);
        salsa20_init(key, 128, NULL, &ctx);
        cli_putstr("\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("\r\n internal state: ");
-       cli_hexdump_block(ctx.a, 64, 4, 16);
+       cli_hexdump_block(ctx.a.v8, 64, 4, 16);
        cli_putstr("\r\n data: ");
        cli_hexdump_block(ctx.buffer, 64, 4, 16);
 
@@ -54,13 +54,13 @@ void nessie_first(void){
        key[15] = 0x01;
        cli_putstr("\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("\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("\r\n internal state: ");
-       cli_hexdump_block(ctx.a, 64, 4, 16);
+       cli_hexdump_block(ctx.a.v8, 64, 4, 16);
        cli_putstr("\r\n data: ");
        cli_hexdump_block(ctx.buffer, 64, 4, 16);
 }