Lines Matching refs:out
182 unsigned char out[sizeof(shake256_output)]; in shake_kat_test() local
188 || !TEST_true(EVP_DigestFinalXOF(ctx, out, sizeof(out))) in shake_kat_test()
189 || !TEST_mem_eq(out, sizeof(out), in shake_kat_test()
192 || !TEST_false(EVP_DigestFinalXOF(ctx, out, sizeof(out))) in shake_kat_test()
194 || !TEST_false(EVP_DigestSqueeze(ctx, out, sizeof(out)))) in shake_kat_test()
207 unsigned char out[sizeof(shake256_output)]; in shake_kat_digestfinal_test() local
216 if (!TEST_false(EVP_DigestFinal(ctx, out, &digest_length))) { in shake_kat_digestfinal_test()
229 if (!TEST_true(EVP_DigestFinalXOF(ctx, out, sizeof(out))) in shake_kat_digestfinal_test()
230 || !TEST_mem_eq(out, sizeof(out), in shake_kat_digestfinal_test()
232 || !TEST_false(EVP_DigestFinalXOF(ctx, out, sizeof(out)))) in shake_kat_digestfinal_test()
250 unsigned char out[sizeof(shake256_output)]; in shake_kat_digestfinal_xoflen_test() local
258 memset(out, 0, sizeof(out)); in shake_kat_digestfinal_xoflen_test()
269 || !TEST_true(EVP_DigestFinal(ctx, out, &digest_length)) in shake_kat_digestfinal_xoflen_test()
271 || !TEST_mem_eq(out, digest_length, in shake_kat_digestfinal_xoflen_test()
273 || !TEST_uchar_eq(out[digest_length], 0)) in shake_kat_digestfinal_xoflen_test()
289 unsigned char out[sizeof(shake256_largemsg_output)]; in shake_absorb_test() local
306 if (!TEST_true(EVP_DigestFinalXOF(ctx, out, sizeof(out))) in shake_absorb_test()
307 || !TEST_mem_eq(out, sizeof(out), in shake_absorb_test()
376 unsigned char *out = NULL; in do_shake_squeeze_test() local
381 if (!TEST_ptr(out = OPENSSL_malloc(expected_outlen))) in do_shake_squeeze_test()
389 if (!TEST_true(EVP_DigestSqueeze(ctx, out + i, sz))) in do_shake_squeeze_test()
394 if (!TEST_mem_eq(out, expected_outlen, expected_out, expected_outlen)) in do_shake_squeeze_test()
398 OPENSSL_free(out); in do_shake_squeeze_test()
420 unsigned char out[2000]; in shake_squeeze_large_test() local
425 || !TEST_true(EVP_DigestFinalXOF(ctx, out, sizeof(out)))) in shake_squeeze_large_test()
428 ret = do_shake_squeeze_test(tst, msg, sizeof(msg), out, sizeof(out)); in shake_squeeze_large_test()
446 unsigned char *out = NULL; in do_shake_squeeze_dup_test() local
453 if (!TEST_ptr(out = OPENSSL_malloc(expected_outlen))) in do_shake_squeeze_dup_test()
461 if (!TEST_true(EVP_DigestSqueeze(cur, out + i, sz))) in do_shake_squeeze_dup_test()
471 if (!TEST_mem_eq(out, expected_outlen, expected_out, expected_outlen)) in do_shake_squeeze_dup_test()
475 OPENSSL_free(out); in do_shake_squeeze_dup_test()
487 unsigned char out[1000]; in shake_squeeze_dup_test() local
493 || !TEST_true(EVP_DigestFinalXOF(ctx, out, sizeof(out)))) in shake_squeeze_dup_test()
497 out, sizeof(out)); in shake_squeeze_dup_test()
508 unsigned char out[1000]; in shake_squeeze_no_absorb_test() local
513 || !TEST_true(EVP_DigestFinalXOF(ctx, out, sizeof(out)))) in shake_squeeze_no_absorb_test()
522 if (!TEST_mem_eq(out2, sizeof(out2), out, sizeof(out))) in shake_squeeze_no_absorb_test()