Lines Matching refs:scratch
497 uint8_t scratch[2048 + 4], scratch2[2048]; in test_bio_dgram_pair() local
548 if (!TEST_int_le(mtu1, sizeof(scratch) - 4)) in test_bio_dgram_pair()
552 if (!TEST_int_eq(random_data(key, scratch, sizeof(scratch), i), 1)) in test_bio_dgram_pair()
555 blen = ((*(uint32_t*)scratch) % mtu1) + 1; in test_bio_dgram_pair()
556 r = BIO_write(bio1, scratch + 4, blen); in test_bio_dgram_pair()
585 if (!TEST_int_eq(random_data(key, scratch, sizeof(scratch), i), 1)) in test_bio_dgram_pair()
588 blen = ((*(uint32_t*)scratch) % mtu1) + 1; in test_bio_dgram_pair()
593 if (!TEST_mem_eq(scratch + 4, blen, scratch2, blen)) in test_bio_dgram_pair()
602 if (!TEST_int_eq(random_data(key, scratch, sizeof(scratch), 0), 1)) in test_bio_dgram_pair()
605 msgs[0].data = scratch; in test_bio_dgram_pair()
607 msgs[1].data = scratch + 19; in test_bio_dgram_pair()
624 if (!TEST_mem_eq(rmsgs[0].data, rmsgs[0].data_len, scratch, 19)) in test_bio_dgram_pair()
627 if (!TEST_mem_eq(rmsgs[1].data, rmsgs[1].data_len, scratch + 19, 46)) in test_bio_dgram_pair()
742 r = BIO_write(bio1, scratch, 64); in test_bio_dgram_pair()
762 if (!TEST_mem_eq(scratch, 32, scratch2, 32)) in test_bio_dgram_pair()