Searched refs:rand_bytes (Results 1 – 5 of 5) sorted by relevance
| /linux/scripts/crypto/ |
| H A D | gen-hash-testvecs.py | 23 def rand_bytes(length): 151 return AesCmac(rand_bytes(AES_256_KEY_SIZE)) 153 return Ghash(rand_bytes(GHASH_BLOCK_SIZE)) 155 return Poly1305(rand_bytes(POLY1305_KEY_SIZE)) 157 return Polyval(rand_bytes(POLYVAL_BLOCK_SIZE)) 201 data = rand_bytes(data_len) 208 data = rand_bytes(4096) 218 in_data = rand_bytes(max_len) 229 ctx = hmac.new(rand_bytes(32), digestmod=alg) 230 data = rand_bytes(409 19 def rand_bytes(length): global() function [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 | 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()
|