Searched refs:rnd (Results 1 - 25 of 64) sorted by relevance

123

/freebsd-10.2-release/tools/regression/acltools/
H A Daclfuzzer.sh45 rnd=`jot -r 1`
46 rnd=`expr $rnd % $max`
48 echo $rnd
53 rnd=`rnd_from_0_to 3`
54 case $rnd in
64 rnd=`rnd_from_0_to 4`
65 case $rnd in
75 rnd=`rnd_from_0_to 30`
76 if [ -n "$p" -a $rnd
[all...]
/freebsd-10.2-release/contrib/ntp/conf/
H A Dbaldwin.conf4 # Note that the .rnd random seed file must pe in the root
9 crypto randfile /.rnd # enable public key
/freebsd-10.2-release/lib/libc/ia64/gen/
H A Dfpsetround.c33 fpsetround(fp_rnd_t rnd) argument
40 fpsr = (fpsr & ~0xC00ULL) | ((unsigned int)rnd << 10);
/freebsd-10.2-release/crypto/openssl/crypto/bn/
H A Dbn_depr.c75 BIGNUM *rnd = NULL; local
81 if ((rnd = BN_new()) == NULL)
84 rnd = ret;
85 if (!BN_generate_prime_ex(rnd, bits, safe, add, rem, &cb))
91 if (!found && (ret == NULL) && (rnd != NULL))
92 BN_free(rnd);
93 return (found ? rnd : NULL);
H A Dbn_rand.c118 static int bnrand(int pseudorand, BIGNUM *rnd, int bits, int top, int bottom) argument
130 BN_zero(rnd);
192 if (!BN_bin2bn(buf, bytes, rnd))
200 bn_check_top(rnd);
204 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom) argument
206 return bnrand(0, rnd, bits, top, bottom);
209 int BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom) argument
211 return bnrand(1, rnd, bits, top, bottom);
215 int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom) argument
217 return bnrand(2, rnd, bit
[all...]
H A Dbn_prime.c134 static int probable_prime(BIGNUM *rnd, int bits);
135 static int probable_prime_dh(BIGNUM *rnd, int bits,
138 static int probable_prime_dh_safe(BIGNUM *rnd, int bits, const BIGNUM *add,
378 static int probable_prime(BIGNUM *rnd, int bits) argument
385 if (!BN_rand(rnd, bits, 1, 1))
389 mods[i] = (prime_t) BN_mod_word(rnd, (BN_ULONG)primes[i]);
394 * check that rnd is not a prime and also that gcd(rnd-1,primes) == 1
404 if (!BN_add_word(rnd, delta))
406 bn_check_top(rnd);
410 probable_prime_dh(BIGNUM *rnd, int bits, const BIGNUM *add, const BIGNUM *rem, BN_CTX *ctx) argument
[all...]
/freebsd-10.2-release/contrib/netbsd-tests/lib/libc/gen/
H A Dt_fpsetround.c64 } rnd[] = { variable in typeref:struct:__anon3962
93 for (size_t i = 0; i < __arraycount(rnd); i++)
94 if (rnd[i].rm == r)
95 return rnd[i].n;
113 fprintf(stderr, "%4.4s %-5.5s %6d %8d\n", rnd[r].n,
135 for (size_t i = 0; i < __arraycount(rnd); i++) {
137 const int o = rnd[i].rm;
138 const int n = rnd[j].rm;
148 ATF_CHECK_EQ(r = FLT_ROUNDS, rnd[j].rf);
149 if (r != rnd[
[all...]
/freebsd-10.2-release/crypto/openssl/crypto/engine/
H A Deng_rdrand.c66 size_t rnd; local
69 if ((rnd = OPENSSL_ia32_rdrand()) == 0)
72 *((size_t *)buf) = rnd;
77 if ((rnd = OPENSSL_ia32_rdrand()) == 0)
80 memcpy(buf, &rnd, num);
/freebsd-10.2-release/contrib/unbound/compat/
H A Darc4random.c109 u_char rnd[KEYSZ + IVSZ]; local
111 if (getentropy(rnd, sizeof rnd) == -1) {
120 _rs_init(rnd, sizeof(rnd));
122 _rs_rekey(rnd, sizeof(rnd));
123 explicit_bzero(rnd, sizeof(rnd)); /* discard source seed */
/freebsd-10.2-release/crypto/openssh/openbsd-compat/
H A Darc4random.c79 u_char rnd[KEYSZ + IVSZ]; local
81 if (RAND_bytes(rnd, sizeof(rnd)) <= 0)
87 _rs_init(rnd, sizeof(rnd));
89 _rs_rekey(rnd, sizeof(rnd));
90 memset(rnd, 0, sizeof(rnd));
/freebsd-10.2-release/usr.bin/enigma/
H A Denigma.c42 unsigned rnd; local
62 rnd = seed % 65521;
64 ic = (rnd&MASK)%(k+1);
65 rnd >>= 8;
70 ic = (rnd&MASK) % k;
141 unsigned rnd; local
146 rnd = seed % 65521;
148 ic = (rnd&MASK)%(k+1);
/freebsd-10.2-release/contrib/ntp/lib/isc/
H A Drandom.c104 isc_uint32_t rnd; local
111 isc_random_get(&rnd);
112 return (max - rnd % jitter);
/freebsd-10.2-release/tools/regression/geom_eli/
H A Dinit-a.t29 rnd=`mktemp /tmp/$base.XXXXXX` || exit 1
39 dd if=/dev/random of=${rnd} bs=${secsize} count=${secs} >/dev/null 2>&1
40 dd if=${rnd} of=/dev/md${no}.eli bs=${secsize} count=${secs} 2>/dev/null
42 md_rnd=`dd if=${rnd} bs=${secsize} count=${secs} 2>/dev/null | md5`
53 rm -f $rnd
H A Dinit.t28 rnd=`mktemp /tmp/$base.XXXXXX` || exit 1
38 dd if=/dev/random of=${rnd} bs=${secsize} count=${secs} >/dev/null 2>&1
39 dd if=${rnd} of=/dev/md${no}.eli bs=${secsize} count=${secs} 2>/dev/null
41 md_rnd=`dd if=${rnd} bs=${secsize} count=${secs} 2>/dev/null | md5`
59 rm -f $rnd
H A Donetime-a.t28 rnd=`mktemp /tmp/$base.XXXXXX` || exit 1
35 dd if=/dev/random of=${rnd} bs=${secsize} count=${secs} >/dev/null 2>&1
36 dd if=${rnd} of=/dev/md${no}.eli bs=${secsize} count=${secs} 2>/dev/null
38 md_rnd=`dd if=${rnd} bs=${secsize} count=${secs} 2>/dev/null | md5`
49 rm -f $rnd
H A Donetime.t27 rnd=`mktemp /tmp/$base.XXXXXX` || exit 1
34 dd if=/dev/random of=${rnd} bs=${secsize} count=${secs} >/dev/null 2>&1
35 dd if=${rnd} of=/dev/md${no}.eli bs=${secsize} count=${secs} 2>/dev/null
37 md_rnd=`dd if=${rnd} bs=${secsize} count=${secs} 2>/dev/null | md5`
55 rm -f $rnd
H A Dsetkey.t7 rnd=`mktemp /tmp/$base.XXXXXX` || exit 1
17 dd if=/dev/random of=${rnd} bs=512 count=${sectors} >/dev/null 2>&1
18 hash1=`dd if=${rnd} bs=512 count=${sectors} 2>/dev/null | md5`
28 dd if=${rnd} of=/dev/md${no}.eli bs=512 count=${sectors} 2>/dev/null
29 rm -f $rnd
/freebsd-10.2-release/contrib/wpa/src/eap_common/
H A Deap_fast_common.c100 u8 *rnd = NULL, *out; local
120 rnd = os_malloc(keys.client_random_len + keys.server_random_len);
121 if (rnd == NULL)
124 os_memcpy(rnd, keys.server_random, keys.server_random_len);
125 os_memcpy(rnd + keys.server_random_len, keys.client_random,
131 label, rnd, keys.client_random_len +
134 os_free(rnd);
139 os_free(rnd);
/freebsd-10.2-release/crypto/openssh/
H A Droaming_client.c145 u_int32_t rnd = 0; local
157 rnd = arc4random();
158 packet_put_char(rnd & 0xff);
159 rnd >>= 8;
/freebsd-10.2-release/contrib/wpa/src/eap_server/
H A Deap_server_tls_common.c79 u8 *rnd = NULL, *out; local
96 rnd = os_malloc(keys.client_random_len + keys.server_random_len);
97 if (rnd == NULL)
99 os_memcpy(rnd, keys.client_random, keys.client_random_len);
100 os_memcpy(rnd + keys.client_random_len, keys.server_random,
104 label, rnd, keys.client_random_len +
108 os_free(rnd);
113 os_free(rnd);
/freebsd-10.2-release/crypto/openssl/crypto/camellia/asm/
H A Dcmll-x86.pl471 my ($i0,$i1,$i2,$i3,$rot,$rnd,@T)=@_;
473 $rnd *= 2;
481 &mov (&DWP(-128+4*$rnd++,$key),shift(@T)) if ($i0 eq @T[0]);
482 &mov (&DWP(-128+4*$rnd++,$key),shift(@T)) if ($i1 eq @T[0]);
483 &mov (&DWP(-128+4*$rnd++,$key),shift(@T)) if ($i2 eq @T[0]);
484 &mov (&DWP(-128+4*$rnd++,$key),shift(@T)) if ($i3 eq @T[0]);
491 my ($i0,$i1,$i2,$i3,$rot,$rnd,@T)=@_;
493 $rnd *= 2;
503 &mov (&DWP(-128+4*$rnd++,$key),shift(@T)) if ($i0 eq @T[0]);
509 &mov (&DWP(-128+4*$rnd
[all...]
/freebsd-10.2-release/contrib/openbsm/bin/auditdistd/
H A Dauditdistd.c229 unsigned char rnd[32], hash[32], resp[32]; local
326 if (adist_random(rnd, sizeof(rnd)) == -1) {
332 if (proto_send(conn, rnd, sizeof(rnd)) == -1) {
347 (int)strlen(adhost->adh_password), rnd, (int)sizeof(rnd), hash,
361 if (proto_recv(conn, rnd, sizeof(rnd)) == -1) {
369 (int)strlen(adhost->adh_password), rnd, (in
[all...]
H A Dsender.c138 unsigned char rnd[32], hash[32], resp[32]; local
224 if (proto_recv(conn, rnd, sizeof(rnd)) == -1) {
233 (int)strlen(adhost->adh_password), rnd, (int)sizeof(rnd), hash,
249 if (adist_random(rnd, sizeof(rnd)) == -1) {
256 if (proto_send(conn, rnd, sizeof(rnd)) == -1) {
273 (int)strlen(adhost->adh_password), rnd, (in
[all...]
/freebsd-10.2-release/crypto/openssl/crypto/rand/
H A Drand_unix.c228 u_int32_t rnd = 0, i; local
233 rnd = arc4random();
234 buf[i] = rnd;
235 rnd >>= 8;
/freebsd-10.2-release/contrib/netbsd-tests/kernel/
H A Dt_rnd.c35 #include <sys/rnd.h>

Completed in 301 milliseconds

123