@@ -486,60 +486,60 @@ int turbo_shake_test(void)
486486 counter = 0 ;
487487
488488 /* TurboSHAKE128 on an empty buffer */
489- sha3_shake_init (& c , 128 );
489+ turbo_shake_init (& c , 128 );
490490 turbo_shake_done (& c , hash , 64 );
491491 COMPARE_TESTVECTOR (hash , 64 , turbo_shake_128_empty , sizeof (turbo_shake_128_empty ), "TurboSHAKE128" , counter ++ );
492492
493493 /* TurboSHAKE128 on an empty buffer, digest length 10032 bytes, test last 32 bytes */
494- sha3_shake_init (& c , 128 );
494+ turbo_shake_init (& c , 128 );
495495 for (i = 0 ; i != 10000 / 10 ; ++ i ){ turbo_shake_done (& c , hash , 10 ); }
496496 turbo_shake_done (& c , hash , 32 );
497497 COMPARE_TESTVECTOR (hash , 32 , turbo_shake_128_empty_10032 , sizeof (turbo_shake_128_empty_10032 ), "TurboSHAKE128" , counter ++ );
498498
499499 /* TurboSHAKE128 on single zero byte */
500- sha3_shake_init (& c , 128 );
500+ turbo_shake_init (& c , 128 );
501501 turbo_shake_process (& c , turbo_shake_input_single_zero , sizeof (turbo_shake_input_single_zero ));
502502 turbo_shake_done (& c , hash , 32 );
503503 COMPARE_TESTVECTOR (hash , 32 , turbo_shake_128_single_zero_byte , sizeof (turbo_shake_128_single_zero_byte ), "TurboSHAKE128" , counter ++ );
504504
505505 /* TurboSHAKE128 on ptn(17**1) */
506- sha3_shake_init (& c , 128 );
506+ turbo_shake_init (& c , 128 );
507507 turbo_shake_process (& c , turbo_shake_input_ptn_17_pow_1 , sizeof (turbo_shake_input_ptn_17_pow_1 ));
508508 turbo_shake_done (& c , hash , 32 );
509509 COMPARE_TESTVECTOR (hash , 32 , turbo_shake_128_ptn_pow_1 , sizeof (turbo_shake_128_ptn_pow_1 ), "TurboSHAKE128" , counter ++ );
510510
511511 /* TurboSHAKE128 on ptn(17**2) */
512- sha3_shake_init (& c , 128 );
512+ turbo_shake_init (& c , 128 );
513513 turbo_shake_process (& c , turbo_shake_input_ptn_17_pow_2 , sizeof (turbo_shake_input_ptn_17_pow_2 ));
514514 turbo_shake_done (& c , hash , 32 );
515515 COMPARE_TESTVECTOR (hash , 32 , turbo_shake_128_ptn_pow_2 , sizeof (turbo_shake_128_ptn_pow_2 ), "TurboSHAKE128" , counter ++ );
516516
517517
518518 /* TurboSHAKE256 on an empty buffer */
519- sha3_shake_init (& c , 256 );
519+ turbo_shake_init (& c , 256 );
520520 turbo_shake_done (& c , hash , 64 );
521521 COMPARE_TESTVECTOR (hash , 64 , turbo_shake_256_empty , sizeof (turbo_shake_256_empty ), "TurboSHAKE256" , counter ++ );
522522
523523 /* TurboSHAKE256 on an empty buffer, digest length 10032 bytes, test last 32 bytes */
524- sha3_shake_init (& c , 256 );
524+ turbo_shake_init (& c , 256 );
525525 for (i = 0 ; i != 10000 / 10 ; ++ i ){ turbo_shake_done (& c , hash , 10 ); }
526526 turbo_shake_done (& c , hash , 32 );
527527 COMPARE_TESTVECTOR (hash , 32 , turbo_shake_256_empty_10032 , sizeof (turbo_shake_256_empty_10032 ), "TurboSHAKE256" , counter ++ );
528528
529529 /* TurboSHAKE256 on single zero byte */
530- sha3_shake_init (& c , 256 );
530+ turbo_shake_init (& c , 256 );
531531 turbo_shake_process (& c , turbo_shake_input_single_zero , sizeof (turbo_shake_input_single_zero ));
532532 turbo_shake_done (& c , hash , 64 );
533533 COMPARE_TESTVECTOR (hash , 64 , turbo_shake_256_single_zero_byte , sizeof (turbo_shake_256_single_zero_byte ), "TurboSHAKE256" , counter ++ );
534534
535535 /* TurboSHAKE256 on ptn(17**1) */
536- sha3_shake_init (& c , 256 );
536+ turbo_shake_init (& c , 256 );
537537 turbo_shake_process (& c , turbo_shake_input_ptn_17_pow_1 , sizeof (turbo_shake_input_ptn_17_pow_1 ));
538538 turbo_shake_done (& c , hash , 64 );
539539 COMPARE_TESTVECTOR (hash , 64 , turbo_shake_256_ptn_pow_1 , sizeof (turbo_shake_256_ptn_pow_1 ), "TurboSHAKE256" , counter ++ );
540540
541541 /* TurboSHAKE256 on ptn(17**2) */
542- sha3_shake_init (& c , 256 );
542+ turbo_shake_init (& c , 256 );
543543 turbo_shake_process (& c , turbo_shake_input_ptn_17_pow_2 , sizeof (turbo_shake_input_ptn_17_pow_2 ));
544544 turbo_shake_done (& c , hash , 64 );
545545 COMPARE_TESTVECTOR (hash , 64 , turbo_shake_256_ptn_pow_2 , sizeof (turbo_shake_256_ptn_pow_2 ), "TurboSHAKE256" , counter ++ );
0 commit comments