Searched refs:rand_bytes (Results 1 – 6 of 6) sorted by relevance
| /linux/scripts/crypto/ |
| H A D | gen-hash-testvecs.py | 19 def rand_bytes(length): function 86 return Poly1305(rand_bytes(POLY1305_KEY_SIZE)) 88 return Polyval(rand_bytes(POLYVAL_BLOCK_SIZE)) 130 data = rand_bytes(data_len) 137 data = rand_bytes(4096) 147 in_data = rand_bytes(max_len) 158 ctx = hmac.new(rand_bytes(32), digestmod=alg) 159 data = rand_bytes(4096) 163 key = rand_bytes(key_len) 180 h = hashlib.new(alg, digest_size=out_len, key=rand_bytes(key_len)) [all …]
|
| /linux/lib/crypto/tests/ |
| H A D | hash-test-template.h | 33 static void rand_bytes(u8 *out, size_t len) in rand_bytes() function 42 rand_bytes(out, len); in rand_bytes_seeded_from_len() 160 rand_bytes(&test_buf[offset], total_len); in test_hash_incremental_updates() 204 rand_bytes(test_buf, TEST_BUF_LEN); in test_hash_buffer_overruns() 240 rand_bytes(test_buf, TEST_BUF_LEN); in test_hash_overlaps() 270 rand_bytes(&test_buf[offset], len); in test_hash_overlaps() 295 rand_bytes(&test_buf[data_offs1], len); in test_hash_alignment_consistency() 312 rand_bytes(test_buf, 128); in test_hash_ctx_zeroization() 352 rand_bytes(test_buf, IRQ_TEST_NUM_BUFFERS * IRQ_TEST_DATA_LEN); in test_hash_interrupt_context_1() 435 rand_bytes(test_buf, TEST_BUF_LEN); in test_hash_interrupt_context_2()
|
| H A D | polyval_kunit.c | 102 rand_bytes(data, MAX_LEN_FOR_KEY_CHECK); in check_key_consistency() 124 rand_bytes(raw_key, sizeof(raw_key)); in test_polyval_with_guarded_key() 156 rand_bytes(raw_key, sizeof(raw_key)); in test_polyval_with_minimally_aligned_key() 184 rand_bytes(state.raw_key, sizeof(state.raw_key)); in test_polyval_preparekey_in_irqs()
|
| H A D | blake2b_kunit.c | 72 rand_bytes(test_buf, data_len); in test_blake2b_with_guarded_key_buf() 80 rand_bytes(key, key_len); in test_blake2b_with_guarded_key_buf() 104 rand_bytes(test_buf, data_len); in test_blake2b_with_guarded_out_buf()
|
| H A D | blake2s_kunit.c | 72 rand_bytes(test_buf, data_len); in test_blake2s_with_guarded_key_buf() 80 rand_bytes(key, key_len); in test_blake2s_with_guarded_key_buf() 104 rand_bytes(test_buf, data_len); in test_blake2s_with_guarded_out_buf()
|
| H A D | sha3_kunit.c | 330 rand_bytes(in, in_len); in test_shake_multiple_squeezes() 331 rand_bytes(out, out_len); in test_shake_multiple_squeezes() 382 rand_bytes(reg_buf, len); in test_shake_with_guarded_bufs()
|