Searched refs:TEST_BUF_LEN (Results 1 – 6 of 6) sorted by relevance
| /linux/lib/crypto/tests/ |
| H A D | hash-test-template.h | 13 #define TEST_BUF_LEN 16384 macro 81 size_t alloc_len = round_up(TEST_BUF_LEN, PAGE_SIZE); in hash_suite_init() 87 test_buf = orig_test_buf + alloc_len - TEST_BUF_LEN; in hash_suite_init() 111 KUNIT_ASSERT_LE(test, data_len, TEST_BUF_LEN); in test_hash_test_vectors() 133 static_assert(TEST_BUF_LEN >= 4096); in test_hash_all_lens_up_to_4096() 158 total_len = rand_length(TEST_BUF_LEN); in test_hash_incremental_updates() 159 offset = rand_offset(TEST_BUF_LEN - total_len); in test_hash_incremental_updates() 200 const size_t max_tested_len = TEST_BUF_LEN - sizeof(struct HASH_CTX); in test_hash_buffer_overruns() 201 void *const buf_end = &test_buf[TEST_BUF_LEN]; in test_hash_buffer_overruns() 204 rand_bytes(test_buf, TEST_BUF_LEN); in test_hash_buffer_overruns() [all …]
|
| H A D | sha3_kunit.c | 277 u8 *const out = &test_buf[TEST_BUF_LEN - max_len]; in test_shake_all_lens_up_to_4096() 280 KUNIT_ASSERT_LE(test, 2 * max_len, TEST_BUF_LEN); in test_shake_all_lens_up_to_4096() 314 KUNIT_ASSERT_GE(test, TEST_BUF_LEN, 2 * max_len); in test_shake_multiple_squeezes() 373 KUNIT_ASSERT_GE(test, TEST_BUF_LEN, max_len); in test_shake_with_guarded_bufs() 380 u8 *guarded_buf = &test_buf[TEST_BUF_LEN - len]; in test_shake_with_guarded_bufs()
|
| H A D | blake2b_kunit.c | 75 u8 *guarded_key = &test_buf[TEST_BUF_LEN - key_len]; in test_blake2b_with_guarded_key_buf() 107 u8 *guarded_hash = &test_buf[TEST_BUF_LEN - out_len]; in test_blake2b_with_guarded_out_buf()
|
| H A D | blake2s_kunit.c | 75 u8 *guarded_key = &test_buf[TEST_BUF_LEN - key_len]; in test_blake2s_with_guarded_key_buf() 107 u8 *guarded_hash = &test_buf[TEST_BUF_LEN - out_len]; in test_blake2s_with_guarded_out_buf()
|
| H A D | poly1305_kunit.c | 87 static_assert(TEST_BUF_LEN >= 4096); in test_poly1305_allones_keys_and_message()
|
| /linux/tools/virtio/ |
| H A D | vhost_net_test.c | 25 #define TEST_BUF_LEN 256 macro 132 ret = sendto(sockfd, sendbuf, TEST_BUF_LEN, 0, in vdev_send_packet() 217 dev->buf_size = (HDR_LEN + TEST_BUF_LEN) * 2; in vdev_info_init() 221 dev->res_buf = dev->test_buf + HDR_LEN + TEST_BUF_LEN; in vdev_info_init() 223 memset(dev->test_buf, 0, HDR_LEN + TEST_BUF_LEN); in vdev_info_init() 229 for (i = sizeof(*eh); i < TEST_BUF_LEN; i++) in vdev_info_init() 271 for (i = ETHER_HDR_LEN; i < TEST_BUF_LEN; i++) in verify_res_buf() 291 sg_init_one(&sl, dev->test_buf, HDR_LEN + TEST_BUF_LEN); in run_tx_test() 313 n = recvfrom(dev->sock, dev->res_buf, TEST_BUF_LEN, 0, NULL, NULL); in run_tx_test() 314 assert(n == TEST_BUF_LEN); in run_tx_test() [all …]
|