Home
last modified time | relevance | path

Searched refs:rnd (Results 1 – 25 of 116) sorted by relevance

12345

/freebsd-13-stable/contrib/file/magic/Magdir/
HDringdove6 0 regex/128l ha:rnd-menu-v[0-9]+[\ \t\r\n]*[{] librnd menu system (lihata)
7 0 regex/128l ha:rnd-menu-patch-v[0-9]+[\ \t\r\n]*[{] librnd menu patch (lihata)
11 # pcb-rnd
12 0 regex/128l ha:pcb-rnd-board-v[0-9]+[\ \t\r\n]*[{] pcb-rnd board file (lihata)
13 0 regex/128l li:pcb-rnd-subcircuit-v[0-9]+[\ \t\r\n]*[{] pcb-rnd subcircuit/footprint file (lihata)
14 0 regex/128l ha:pcb-rnd-buffer-v[0-9]+[\ \t\r\n]*[{] pcb-rnd paste buffer content (lihata)
15 0 regex/128l li:pcb-rnd-conf-v[0-9]+[\ \t\r\n]*[{] pcb-rnd configuration (lihata)
16 0 regex/128l ha:pcb-rnd-drc-query-v[0-9]+[\ \t\r\n]*[{] pcb-rnd drc query string (lihata)
17 0 regex/128l li:pcb-rnd-font-v[0-9]+[\ \t\r\n]*[{] pcb-rnd vector font (lihata)
18 0 regex/128l ha:pcb-rnd-log-v[0-9]+[\ \t\r\n]*[{] pcb-rnd message log dump (lihata)
[all …]
/freebsd-13-stable/tests/sys/acl/
HDaclfuzzer.sh43 rnd=`jot -r 1`
44 rnd=`expr $rnd % $max`
46 echo $rnd
51 rnd=`rnd_from_0_to 3`
52 case $rnd in
62 rnd=`rnd_from_0_to 4`
63 case $rnd in
73 rnd=`rnd_from_0_to 30`
74 if [ -n "$p" -a $rnd -ge 14 ]; then
78 case $rnd in
[all …]
/freebsd-13-stable/crypto/openssl/crypto/bn/
HDbn_prime.c25 static int probable_prime(BIGNUM *rnd, int bits, int safe, prime_t *mods);
26 static int probable_prime_dh(BIGNUM *rnd, int bits, int safe, prime_t *mods,
272 static int probable_prime(BIGNUM *rnd, int bits, int safe, prime_t *mods) in probable_prime() argument
280 if (!BN_priv_rand(rnd, bits, BN_RAND_TOP_TWO, BN_RAND_BOTTOM_ODD)) in probable_prime()
282 if (safe && !BN_set_bit(rnd, 1)) in probable_prime()
286 BN_ULONG mod = BN_mod_word(rnd, (BN_ULONG)primes[i]); in probable_prime()
302 && square(primes[i]) > BN_get_word(rnd) + delta) in probable_prime()
312 if (!BN_add_word(rnd, delta)) in probable_prime()
314 if (BN_num_bits(rnd) != bits) in probable_prime()
316 bn_check_top(rnd); in probable_prime()
[all …]
HDbn_rand.c21 static int bnrand(BNRAND_FLAG flag, BIGNUM *rnd, int bits, int top, int bottom) in bnrand() argument
29 BN_zero(rnd); in bnrand()
84 if (!BN_bin2bn(buf, bytes, rnd)) in bnrand()
89 bn_check_top(rnd); in bnrand()
97 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom) in BN_rand() argument
99 return bnrand(NORMAL, rnd, bits, top, bottom); in BN_rand()
102 int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom) in BN_bntest_rand() argument
104 return bnrand(TESTING, rnd, bits, top, bottom); in BN_bntest_rand()
107 int BN_priv_rand(BIGNUM *rnd, int bits, int top, int bottom) in BN_priv_rand() argument
109 return bnrand(PRIVATE, rnd, bits, top, bottom); in BN_priv_rand()
[all …]
HDbn_depr.c30 BIGNUM *rnd = NULL;
35 if ((rnd = BN_new()) == NULL)
38 rnd = ret;
39 if (!BN_generate_prime_ex(rnd, bits, safe, add, rem, &cb))
43 return rnd;
45 BN_free(rnd);
/freebsd-13-stable/contrib/netbsd-tests/lib/libc/gen/
HDt_fpsetround.c64 } rnd[] = { variable
93 for (size_t i = 0; i < __arraycount(rnd); i++) in getname()
94 if (rnd[i].rm == r) in getname()
95 return rnd[i].n; in getname()
113 fprintf(stderr, "%4.4s %-5.5s %6d %8d\n", rnd[r].n, in test()
135 for (size_t i = 0; i < __arraycount(rnd); i++) { in ATF_TC_BODY()
137 const int o = rnd[i].rm; in ATF_TC_BODY()
138 const int n = rnd[j].rm; in ATF_TC_BODY()
148 ATF_CHECK_EQ(r = FLT_ROUNDS, rnd[j].rf); in ATF_TC_BODY()
149 if (r != rnd[j].rf) in ATF_TC_BODY()
[all …]
/freebsd-13-stable/lib/libc/gen/
HDarc4random.c108 u_char rnd[KEYSZ + IVSZ]; in _rs_stir() local
137 if (getentropy(rnd, sizeof rnd) == -1) in _rs_stir()
142 _rs_init(rnd, sizeof(rnd)); in _rs_stir()
146 _rs_init(rnd, sizeof(rnd)); in _rs_stir()
149 _rs_rekey(rnd, sizeof(rnd)); in _rs_stir()
150 explicit_bzero(rnd, sizeof(rnd)); /* discard source seed */ in _rs_stir()
/freebsd-13-stable/sys/net/route/
HDroute_ctl.c91 struct route_nhop_data *rnd, struct rib_cmd_info *rc);
350 const struct sockaddr *netmask, struct route_nhop_data *rnd) in lookup_prefix_bysa() argument
358 rnd->rnd_nhop = rt->rt_nhop; in lookup_prefix_bysa()
359 rnd->rnd_weight = rt->rt_weight; in lookup_prefix_bysa()
361 rnd->rnd_nhop = NULL; in lookup_prefix_bysa()
362 rnd->rnd_weight = 0; in lookup_prefix_bysa()
370 struct route_nhop_data *rnd) in lookup_prefix_rt() argument
372 return (lookup_prefix_bysa(rnh, rt_key_const(rt), rt_mask_const(rt), rnd)); in lookup_prefix_rt()
383 struct route_nhop_data *rnd) in lookup_prefix() argument
388 info->rti_info[RTAX_NETMASK], rnd); in lookup_prefix()
[all …]
/freebsd-13-stable/crypto/openssh/
HDkexmlkem768x25519.c56 u_char rnd[LIBCRUX_ML_KEM_KEY_PAIR_PRNG_LEN], *cp = NULL; in kex_kem_mlkem768x25519_keypair() local
66 arc4random_buf(rnd, sizeof(rnd)); in kex_kem_mlkem768x25519_keypair()
67 keypair = libcrux_ml_kem_mlkem768_portable_generate_key_pair(rnd); in kex_kem_mlkem768x25519_keypair()
86 explicit_bzero(rnd, sizeof(rnd)); in kex_kem_mlkem768x25519_keypair()
99 u_char rnd[LIBCRUX_ML_KEM_ENC_PRNG_LEN]; in kex_kem_mlkem768x25519_enc() local
144 arc4random_buf(rnd, sizeof(rnd)); in kex_kem_mlkem768x25519_enc()
145 enc = libcrux_ml_kem_mlkem768_portable_encapsulate(&mlkem_pub, rnd); in kex_kem_mlkem768x25519_enc()
183 explicit_bzero(rnd, sizeof(rnd)); in kex_kem_mlkem768x25519_enc()
/freebsd-13-stable/contrib/unbound/compat/
HDarc4random.c183 u_char rnd[KEYSZ + IVSZ]; in _rs_stir() local
186 if (getentropy(rnd, sizeof rnd) == -1) { in _rs_stir()
188 fallback_getentropy_urandom(rnd, sizeof rnd) == -1) { in _rs_stir()
198 _rs_init(rnd, sizeof(rnd)); in _rs_stir()
200 _rs_rekey(rnd, sizeof(rnd)); in _rs_stir()
201 explicit_bzero(rnd, sizeof(rnd)); /* discard source seed */ in _rs_stir()
/freebsd-13-stable/usr.bin/enigma/
HDenigma.c39 unsigned rnd; in setup() local
64 rnd = seed % 65521; in setup()
66 ic = (rnd&MASK)%(k+1); in setup()
67 rnd >>= 8; in setup()
72 ic = (rnd&MASK) % k; in setup()
143 unsigned rnd; in shuffle() local
148 rnd = seed % 65521; in shuffle()
150 ic = (rnd&MASK)%(k+1); in shuffle()
/freebsd-13-stable/crypto/openssh/openbsd-compat/
HDarc4random.c113 u_char rnd[KEYSZ + IVSZ]; in _rs_stir() local
116 if (getentropy(rnd, sizeof rnd) == -1) in _rs_stir()
120 _rs_init(rnd, sizeof(rnd)); in _rs_stir()
122 _rs_rekey(rnd, sizeof(rnd)); in _rs_stir()
123 explicit_bzero(rnd, sizeof(rnd)); /* discard source seed */ in _rs_stir()
/freebsd-13-stable/tests/sys/geom/class/eli/
HDonetime_test.sh14 atf_check dd if=rnd of=/dev/${md}.eli bs=${secsize} count=${sectors} status=none
16 md_rnd=`dd if=rnd bs=${secsize} count=${sectors} status=none | md5`
43 dd if=/dev/random of=rnd bs=${MAX_SECSIZE} count=${sectors} status=none
62 atf_check dd if=rnd of=/dev/${md}.eli bs=${secsize} count=${sectors} status=none
64 md_rnd=`dd if=rnd bs=${secsize} count=${sectors} status=none | md5`
86 atf_check dd if=/dev/random of=rnd bs=$MAX_SECSIZE count=$sectors \
144 dd if=/dev/random of=rnd bs=${MAX_SECSIZE} count=${sectors} status=none
155 atf_check dd if=rnd of=/dev/${md}.eli bs=${secsize} count=${sectors} status=none
157 md_rnd=`dd if=rnd bs=${secsize} count=${sectors} status=none | md5`
HDintegrity_test.sh16 atf_check dd if=rnd of=/dev/${md}.eli bs=${secsize} count=1 status=none
29 atf_check dd if=rnd of=/dev/${md}.eli bs=${secsize} count=2 status=none
60 dd if=/dev/random of=rnd bs=${MAX_SECSIZE} count=${sectors} status=none
83 atf_check dd if=rnd of=sector bs=1 count=8 seek=64 conv=notrunc status=none
106 dd if=/dev/random of=rnd bs=${MAX_SECSIZE} count=${sectors} status=none
127 atf_check dd if=rnd of=sector bs=1 count=16 conv=notrunc status=none
150 dd if=/dev/random of=rnd bs=${MAX_SECSIZE} count=${sectors} status=none
HDsetkey_test.sh18 atf_check dd if=/dev/random of=rnd bs=512 count=${sectors} status=none
19 hash1=`dd if=rnd bs=512 count=${sectors} status=none | md5`
31 dd if=rnd of=/dev/${md}.eli bs=512 count=${sectors} status=none
108 atf_check dd if=/dev/random of=rnd bs=512 count=${sectors} status=none
109 hash1=`dd if=rnd bs=512 count=${sectors} status=none | md5`
119 dd if=rnd of=/dev/${md}.eli bs=512 count=${sectors} status=none
/freebsd-13-stable/crypto/openssl/doc/man3/
HDBN_rand.pod13 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom);
15 int BN_priv_rand(BIGNUM *rnd, int bits, int top, int bottom);
17 int BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom);
19 int BN_rand_range(BIGNUM *rnd, BIGNUM *range);
21 int BN_priv_rand_range(BIGNUM *rnd, BIGNUM *range);
23 int BN_pseudo_rand_range(BIGNUM *rnd, BIGNUM *range);
28 B<bits> in length and stores it in B<rnd>.
44 number B<rnd> in the range 0 E<lt>= B<rnd> E<lt> B<range>.
/freebsd-13-stable/sys/netlink/route/
HDrt.c221 dump_rc_nhop(struct nl_writer *nw, const struct route_nhop_data *rnd, struct rtmsg *rtm) in dump_rc_nhop() argument
224 if (NH_IS_NHGRP(rnd->rnd_nhop)) { in dump_rc_nhop()
225 dump_rc_nhg(nw, rnd->rnd_nhgrp, rtm); in dump_rc_nhop()
229 const struct nhop_object *nh = rnd->rnd_nhop; in dump_rc_nhop()
258 if (rnd->rnd_weight != RT_DEFAULT_WEIGHT) in dump_rc_nhop()
259 nlattr_add_u32(nw, NL_RTA_WEIGHT, rnd->rnd_weight); in dump_rc_nhop()
268 const struct rtentry *rt, struct route_nhop_data *rnd, in dump_px() argument
289 rtm->rtm_protocol = nl_get_rtm_protocol(rnd->rnd_nhop); in dump_px()
290 rtm->rtm_type = get_rtm_type(rnd->rnd_nhop); in dump_px()
326 dump_rc_nhop(nw, rnd, rtm); in dump_px()
[all …]
/freebsd-13-stable/contrib/lua/src/
HDltablib.c248 unsigned int i, rnd = 0; in l_randomizePivot() local
252 rnd += buff[i]; in l_randomizePivot()
253 return rnd; in l_randomizePivot()
332 static IdxT choosePivot (IdxT lo, IdxT up, unsigned int rnd) { in choosePivot() argument
334 IdxT p = rnd % (r4 * 2) + (lo + r4); in choosePivot()
344 unsigned int rnd) { in auxsort() argument
357 if (up - lo < RANLIMIT || rnd == 0) /* small interval or no randomize? */ in auxsort()
360 p = choosePivot(lo, up, rnd); in auxsort()
382 auxsort(L, lo, p - 1, rnd); /* call recursively for lower interval */ in auxsort()
387 auxsort(L, p + 1, up, rnd); /* call recursively for upper interval */ in auxsort()
[all …]
/freebsd-13-stable/crypto/openssl/crypto/camellia/asm/
HDcmll-x86.pl481 my ($i0,$i1,$i2,$i3,$rot,$rnd,@T)=@_;
483 $rnd *= 2;
491 &mov (&DWP(-128+4*$rnd++,$key),shift(@T)) if ($i0 eq @T[0]);
492 &mov (&DWP(-128+4*$rnd++,$key),shift(@T)) if ($i1 eq @T[0]);
493 &mov (&DWP(-128+4*$rnd++,$key),shift(@T)) if ($i2 eq @T[0]);
494 &mov (&DWP(-128+4*$rnd++,$key),shift(@T)) if ($i3 eq @T[0]);
501 my ($i0,$i1,$i2,$i3,$rot,$rnd,@T)=@_;
503 $rnd *= 2;
513 &mov (&DWP(-128+4*$rnd++,$key),shift(@T)) if ($i0 eq @T[0]);
519 &mov (&DWP(-128+4*$rnd++,$key),shift(@T)) if ($i1 eq @T[0]);
[all …]
/freebsd-13-stable/contrib/ntp/libntp/lib/isc/
HDrandom.c102 isc_uint32_t rnd; in isc_random_jitter() local
109 isc_random_get(&rnd); in isc_random_jitter()
110 return (max - rnd % jitter); in isc_random_jitter()
/freebsd-13-stable/sys/netinet/
HDin_fib.c280 uint32_t flags, struct route_nhop_data *rnd) in fib4_lookup_rt() argument
305 rnd->rnd_nhop = rt->rt_nhop; in fib4_lookup_rt()
306 rnd->rnd_weight = rt->rt_weight; in fib4_lookup_rt()
319 struct route_nhop_data rnd; in fib4_lookup_debugnet() local
321 rt = fib4_lookup_rt(fibnum, dst, scopeid, NHR_UNLOCKED, &rnd); in fib4_lookup_debugnet()
323 struct nhop_object *nh = nhop_select(rnd.rnd_nhop, 0); in fib4_lookup_debugnet()
/freebsd-13-stable/contrib/openbsm/bin/auditdistd/
HDauditdistd.c227 unsigned char rnd[32], hash[32], resp[32]; in listen_accept() local
324 if (adist_random(rnd, sizeof(rnd)) == -1) { in listen_accept()
330 if (proto_send(conn, rnd, sizeof(rnd)) == -1) { in listen_accept()
345 (int)strlen(adhost->adh_password), rnd, (int)sizeof(rnd), hash, in listen_accept()
359 if (proto_recv(conn, rnd, sizeof(rnd)) == -1) { in listen_accept()
367 (int)strlen(adhost->adh_password), rnd, (int)sizeof(rnd), hash, in listen_accept()
HDsender.c136 unsigned char rnd[32], hash[32], resp[32]; in sender_connect() local
222 if (proto_recv(conn, rnd, sizeof(rnd)) == -1) { in sender_connect()
231 (int)strlen(adhost->adh_password), rnd, (int)sizeof(rnd), hash, in sender_connect()
247 if (adist_random(rnd, sizeof(rnd)) == -1) { in sender_connect()
254 if (proto_send(conn, rnd, sizeof(rnd)) == -1) { in sender_connect()
271 (int)strlen(adhost->adh_password), rnd, (int)sizeof(rnd), hash, in sender_connect()
/freebsd-13-stable/sys/netinet6/
HDin6_fib.c293 uint32_t scopeid, uint32_t flags, struct route_nhop_data *rnd) in fib6_lookup_rt() argument
320 rnd->rnd_nhop = rt->rt_nhop; in fib6_lookup_rt()
321 rnd->rnd_weight = rt->rt_weight; in fib6_lookup_rt()
334 struct route_nhop_data rnd; in fib6_lookup_debugnet() local
336 rt = fib6_lookup_rt(fibnum, dst6, scopeid, NHR_UNLOCKED, &rnd); in fib6_lookup_debugnet()
338 struct nhop_object *nh = nhop_select(rnd.rnd_nhop, 0); in fib6_lookup_debugnet()
/freebsd-13-stable/contrib/bearssl/src/rsa/
HDrsa_oaep_pad.c45 br_rsa_oaep_pad(const br_prng_class **rnd, const br_hash_class *dig, in br_rsa_oaep_pad() argument
95 (*rnd)->generate(rnd, buf + 1, hlen); in br_rsa_oaep_pad()

12345