/freebsd/contrib/file/magic/Magdir/ |
H A D | ringdove | 6 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/tests/sys/acl/ |
H A D | aclfuzzer.sh | 43 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/contrib/netbsd-tests/lib/libc/gen/ |
H A D | t_fpsetround.c | 64 } 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/crypto/openssl/crypto/bn/ |
H A D | bn_prime.c | 22 static int probable_prime(BIGNUM *rnd, int bits, int safe, prime_t *mods, 24 static int probable_prime_dh(BIGNUM *rnd, int bits, int safe, prime_t *mods, 478 static int probable_prime(BIGNUM *rnd, int bits, int safe, prime_t *mods, in probable_prime() argument 487 if (!BN_priv_rand_ex(rnd, bits, BN_RAND_TOP_TWO, BN_RAND_BOTTOM_ODD, 0, in probable_prime() 490 if (safe && !BN_set_bit(rnd, 1)) in probable_prime() 494 BN_ULONG mod = BN_mod_word(rnd, (BN_ULONG)primes[i]); in probable_prime() 510 && square(primes[i]) > BN_get_word(rnd) + delta) in probable_prime() 520 if (!BN_add_word(rnd, delta)) in probable_prime() 522 if (BN_num_bits(rnd) != bits) in probable_prime() 524 bn_check_top(rnd); in probable_prime() [all …]
|
H A D | bn_rand.c | 23 static int bnrand(BNRAND_FLAG flag, BIGNUM *rnd, int bits, int top, int bottom, in bnrand() argument 33 BN_zero(rnd); in bnrand() 89 if (!BN_bin2bn(buf, bytes, rnd)) in bnrand() 94 bn_check_top(rnd); in bnrand() 102 int BN_rand_ex(BIGNUM *rnd, int bits, int top, int bottom, in BN_rand_ex() argument 105 return bnrand(NORMAL, rnd, bits, top, bottom, strength, ctx); in BN_rand_ex() 108 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom) in BN_rand() argument 110 return bnrand(NORMAL, rnd, bits, top, bottom, 0, NULL); in BN_rand() 113 int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom) in BN_bntest_rand() argument 115 return bnrand(TESTING, rnd, bit in BN_bntest_rand() 119 BN_priv_rand_ex(BIGNUM * rnd,int bits,int top,int bottom,unsigned int strength,BN_CTX * ctx) BN_priv_rand_ex() argument 126 BN_priv_rand(BIGNUM * rnd,int bits,int top,int bottom) BN_priv_rand() argument 231 BN_pseudo_rand(BIGNUM * rnd,int bits,int top,int bottom) BN_pseudo_rand() argument [all...] |
H A D | bn_depr.c | 27 BIGNUM *rnd = NULL; in BN_generate_prime() local 32 if ((rnd = BN_new()) == NULL) in BN_generate_prime() 35 rnd = ret; in BN_generate_prime() 36 if (!BN_generate_prime_ex(rnd, bits, safe, add, rem, &cb)) in BN_generate_prime() 40 return rnd; in BN_generate_prime() 42 BN_free(rnd); in BN_generate_prime()
|
/freebsd/lib/libc/gen/ |
H A D | arc4random.c | 108 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/sys/net/route/ |
H A D | route_ctl.c | 92 struct route_nhop_data *rnd, struct rib_cmd_info *rc); 352 const struct sockaddr *netmask, struct route_nhop_data *rnd) in lookup_prefix_bysa() argument 360 rnd->rnd_nhop = rt->rt_nhop; in lookup_prefix_bysa() 361 rnd->rnd_weight = rt->rt_weight; in lookup_prefix_bysa() 363 rnd->rnd_nhop = NULL; in lookup_prefix_bysa() 364 rnd->rnd_weight = 0; in lookup_prefix_bysa() 372 struct route_nhop_data *rnd) in lookup_prefix_rt() argument 374 return (lookup_prefix_bysa(rnh, rt_key_const(rt), rt_mask_const(rt), rnd)); in lookup_prefix_rt() 385 struct route_nhop_data *rnd) in lookup_prefix() argument 390 info->rti_info[RTAX_NETMASK], rnd); in lookup_prefix() [all …]
|
/freebsd/contrib/unbound/compat/ |
H A D | arc4random.c | 183 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/usr.bin/enigma/ |
H A D | enigma.c | 38 unsigned rnd; in setup() local 63 rnd = seed % 65521; in setup() 65 ic = (rnd&MASK)%(k+1); in setup() 66 rnd >>= 8; in setup() 71 ic = (rnd&MASK) % k; in setup() 142 unsigned rnd; in shuffle() local 147 rnd = seed % 65521; in shuffle() 149 ic = (rnd&MASK)%(k+1); in shuffle()
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | arc4random.c | 113 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/tests/sys/geom/class/eli/ |
H A D | onetime_test.sh | 14 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`
|
H A D | integrity_test.sh | 16 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
|
H A D | setkey_test.sh | 18 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/crypto/openssl/doc/man3/ |
H A D | BN_rand.pod | 14 int BN_rand_ex(BIGNUM *rnd, int bits, int top, int bottom, 16 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom); 18 int BN_priv_rand_ex(BIGNUM *rnd, int bits, int top, int bottom, 20 int BN_priv_rand(BIGNUM *rnd, int bits, int top, int bottom); 22 int BN_rand_range_ex(BIGNUM *rnd, const BIGNUM *range, unsigned int strength, 24 int BN_rand_range(BIGNUM *rnd, const BIGNUM *range); 26 int BN_priv_rand_range_ex(BIGNUM *rnd, const BIGNUM *range, unsigned int strength, 28 int BN_priv_rand_range(BIGNUM *rnd, const BIGNUM *range); 34 int BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom); 35 int BN_pseudo_rand_range(BIGNUM *rnd, const BIGNUM *range); [all …]
|
/freebsd/contrib/lua/src/ |
H A D | ltablib.c | 250 unsigned int i, rnd = 0; in l_randomizePivot() local 254 rnd += buff[i]; in l_randomizePivot() 255 return rnd; in l_randomizePivot() 334 static IdxT choosePivot (IdxT lo, IdxT up, unsigned int rnd) { in choosePivot() argument 336 IdxT p = rnd % (r4 * 2) + (lo + r4); in choosePivot() 346 unsigned int rnd) { in auxsort() argument 359 if (up - lo < RANLIMIT || rnd == 0) /* small interval or no randomize? */ in auxsort() 362 p = choosePivot(lo, up, rnd); in auxsort() 384 auxsort(L, lo, p - 1, rnd); /* call recursively for lower interval */ in auxsort() 389 auxsort(L, p + 1, up, rnd); /* call recursively for upper interval */ in auxsort() [all …]
|
/freebsd/sys/netlink/route/ |
H A D | rt.c | 221 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/tools/test/stress2/misc/ |
H A D | cluster.sh | 80 rnd(void) { 101 ln = rnd() % BSIZE + 1; function 102 offset = rnd() % (MX - ln); function 139 ln = rnd() % BSIZE + 1; function 140 offset = rnd() % (MX - ln); function 183 offset = rnd() % MX; function 184 offset = rnd(); function
|
/freebsd/crypto/openssl/crypto/camellia/asm/ |
H A D | cmll-x86.pl | 480 my ($i0,$i1,$i2,$i3,$rot,$rnd,@T)=@_; 482 $rnd *= 2; 490 &mov (&DWP(-128+4*$rnd++,$key),shift(@T)) if ($i0 eq @T[0]); 491 &mov (&DWP(-128+4*$rnd++,$key),shift(@T)) if ($i1 eq @T[0]); 492 &mov (&DWP(-128+4*$rnd++,$key),shift(@T)) if ($i2 eq @T[0]); 493 &mov (&DWP(-128+4*$rnd++,$key),shift(@T)) if ($i3 eq @T[0]); 500 my ($i0,$i1,$i2,$i3,$rot,$rnd,@T)=@_; 502 $rnd *= 2; 512 &mov (&DWP(-128+4*$rnd++,$key),shift(@T)) if ($i0 eq @T[0]); 518 &mov (&DWP(-128+4*$rnd++,$key),shift(@T)) if ($i1 eq @T[0]); [all …]
|
/freebsd/contrib/ntp/libntp/lib/isc/ |
H A D | random.c | 102 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/sys/netinet/ |
H A D | in_fib.c | 281 uint32_t flags, struct route_nhop_data *rnd) in fib4_lookup_rt() argument 306 rnd->rnd_nhop = rt->rt_nhop; in fib4_lookup_rt() 307 rnd->rnd_weight = rt->rt_weight; in fib4_lookup_rt() 320 struct route_nhop_data rnd; in fib4_lookup_debugnet() local 322 rt = fib4_lookup_rt(fibnum, dst, scopeid, NHR_UNLOCKED, &rnd); in fib4_lookup_debugnet() 324 struct nhop_object *nh = nhop_select(rnd.rnd_nhop, 0); in fib4_lookup_debugnet()
|
/freebsd/contrib/openbsm/bin/auditdistd/ |
H A D | auditdistd.c | 227 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()
|
H A D | sender.c | 136 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/sys/netinet6/ |
H A D | in6_fib.c | 294 uint32_t scopeid, uint32_t flags, struct route_nhop_data *rnd) in fib6_lookup_rt() argument 321 rnd->rnd_nhop = rt->rt_nhop; in fib6_lookup_rt() 322 rnd->rnd_weight = rt->rt_weight; in fib6_lookup_rt() 335 struct route_nhop_data rnd; in fib6_lookup_debugnet() local 337 rt = fib6_lookup_rt(fibnum, dst6, scopeid, NHR_UNLOCKED, &rnd); in fib6_lookup_debugnet() 339 struct nhop_object *nh = nhop_select(rnd.rnd_nhop, 0); in fib6_lookup_debugnet()
|
/freebsd/contrib/bearssl/src/rsa/ |
H A D | rsa_oaep_pad.c | 45 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()
|