Lines Matching refs:alg
250 static void shake(int alg, const u8 *in, size_t in_len, u8 *out, size_t out_len) in shake() argument
252 if (alg == 0) in shake()
258 static void shake_init(struct shake_ctx *ctx, int alg) in shake_init() argument
260 if (alg == 0) in shake_init()
283 for (int alg = 0; alg < 2; alg++) { in test_shake_all_lens_up_to_4096() local
288 shake(alg, in, in_len, out, out_len); in test_shake_all_lens_up_to_4096()
292 if (alg == 0) in test_shake_all_lens_up_to_4096()
320 const int alg = rand32() % 2; in test_shake_multiple_squeezes() local
334 shake(alg, in, in_len, ref_out, out_len); in test_shake_multiple_squeezes()
337 shake_init(&ctx, alg); in test_shake_multiple_squeezes()
359 in_len, in_offs, out_len, out_offs, num_parts, alg); in test_shake_multiple_squeezes()
378 for (int alg = 0; alg < 2; alg++) { in test_shake_with_guarded_bufs() local
385 shake(alg, reg_buf, len, reg_buf, len); in test_shake_with_guarded_bufs()
386 shake(alg, guarded_buf, len, guarded_buf, len); in test_shake_with_guarded_bufs()
391 len, alg); in test_shake_with_guarded_bufs()