Searched refs:randombytes_uniform (Results 1 - 19 of 19) sorted by relevance

/netbsd-current/sys/external/isc/libsodium/dist/test/default/
H A Drandombytes.c66 ++freq[randombytes_uniform(256)];
70 printf("randombytes_uniform() test failed\n");
73 assert(randombytes_uniform(1U) == 0U);
84 ++freq[randombytes_uniform(256)];
88 printf("randombytes_uniform() test failed\n");
104 assert(randombytes_uniform(1U) == 0U);
142 assert(randombytes_uniform(1) == 1);
143 assert(randombytes_uniform(v) == v);
144 assert(randombytes_uniform(v) == v);
145 assert(randombytes_uniform(
[all...]
H A Dmetamorphic.c22 mlen = randombytes_uniform(MAXLEN);
24 klen = randombytes_uniform(crypto_generichash_KEYBYTES_MAX -
28 hlen = randombytes_uniform(crypto_generichash_BYTES_MAX -
38 l1 = randombytes_uniform((uint32_t) mlen);
39 l2 = randombytes_uniform((uint32_t) (mlen - l1));
68 mlen = randombytes_uniform(MAXLEN);
78 l1 = randombytes_uniform((uint32_t) mlen);
79 l2 = randombytes_uniform((uint32_t) (mlen - l1));
108 mlen = randombytes_uniform(MAXLEN);
118 l1 = randombytes_uniform((uint32_
[all...]
H A Dsodium_utils2.c61 size = 1U + randombytes_uniform(100000U);
79 size = 1U + randombytes_uniform(100000U);
H A Dsodium_utils.c55 bin_len = (size_t) randombytes_uniform(sizeof buf1);
85 bin_len = randombytes_uniform(sizeof buf1);
89 j = randombytes_uniform(10000);
98 bin_len = randombytes_uniform(sizeof buf1);
146 bin_len = randombytes_uniform(200U);
147 blocksize = 1U + randombytes_uniform(100U);
H A Dbox_seal.c17 m_len = (size_t) randombytes_uniform(1000);
H A Dsodium_utils3.c49 size = 1U + randombytes_uniform(100000U);
H A Dsecretbox_easy2.c17 mlen = (size_t) randombytes_uniform((uint32_t) 10000) + 1U;
H A Dsecretstream.c29 ad_len = randombytes_uniform(100);
30 m1_len = randombytes_uniform(1000);
31 m2_len = randombytes_uniform(1000);
32 m3_len = randombytes_uniform(1000);
134 randombytes_uniform(crypto_secretstream_xchacha20poly1305_ABYTES),
H A Daead_aes256gcm.c3173 randombytes_uniform((uint32_t) ciphertext_len),
3183 randombytes_uniform(crypto_aead_aes256gcm_ABYTES),
H A Dbox_easy2.c32 m2_size = m_size = 7U + randombytes_uniform(1000);
47 mlen = (size_t) randombytes_uniform((uint32_t) m_size) + 1U;
H A Dbox_easy.c66 c[randombytes_uniform(crypto_box_MACBYTES)]++;
H A Daead_chacha20poly1305.c119 randombytes_uniform(crypto_aead_chacha20poly1305_ABYTES),
300 randombytes_uniform(crypto_aead_chacha20poly1305_ietf_ABYTES),
H A Daead_xchacha20poly1305.c122 randombytes_uniform(crypto_aead_xchacha20poly1305_ietf_ABYTES),
H A Dcore_ed25519.c62 j = 1 + (int) randombytes_uniform(100);
H A Dsecretbox_easy.c96 c[randombytes_uniform(crypto_secretbox_MACBYTES)]++;
H A Dxchacha20.c247 n = randombytes_uniform(crypto_secretbox_xchacha20poly1305_MACBYTES + (uint32_t) m_len);
321 m_len = (i == 0) ? 0 : randombytes_uniform(150);
H A Dcodecs.c207 bin_len = (size_t) randombytes_uniform(100);
/netbsd-current/sys/external/isc/libsodium/dist/src/libsodium/include/sodium/
H A Drandombytes.h45 uint32_t randombytes_uniform(const uint32_t upper_bound);
/netbsd-current/sys/external/isc/libsodium/dist/src/libsodium/randombytes/
H A Drandombytes.c125 randombytes_uniform(const uint32_t upper_bound) function

Completed in 200 milliseconds