Home
last modified time | relevance | path

Searched refs:rand_offset (Results 1 – 2 of 2) sorted by relevance

/linux/lib/crypto/tests/
H A Dhash-test-template.h69 static size_t rand_offset(size_t max_offset) in rand_offset() function
159 offset = rand_offset(TEST_BUF_LEN - total_len); in test_hash_incremental_updates()
244 size_t offset = HASH_SIZE + rand_offset(max_tested_len - len); in test_hash_overlaps()
290 size_t data_offs1 = rand_offset(TEST_BUF_LEN - len); in test_hash_alignment_consistency()
291 size_t data_offs2 = rand_offset(TEST_BUF_LEN - len); in test_hash_alignment_consistency()
292 size_t hash_offs1 = rand_offset(128); in test_hash_alignment_consistency()
293 size_t hash_offs2 = rand_offset(128); in test_hash_alignment_consistency()
H A Dsha3_kunit.c323 const size_t in_offs = rand_offset(max_len - in_len); in test_shake_multiple_squeezes()
324 const size_t out_offs = rand_offset(max_len - out_len); in test_shake_multiple_squeezes()