/freebsd-11-stable/tests/sys/acl/ |
H A D | aclfuzzer.sh | 45 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-11-stable/contrib/ntp/conf/ |
H A D | baldwin.conf | 4 # Note that the .rnd random seed file must pe in the root 9 crypto randfile /.rnd # enable public key
|
/freebsd-11-stable/sys/mips/atheros/ |
H A D | ar71xx_macaddr.c | 98 uint32_t rnd; local 100 rnd = arc4random(); 105 dst[3] = (rnd >> 24) & 0xff; 106 dst[4] = (rnd >> 16) & 0xff; 107 dst[5] = (rnd >> 8) & 0xff;
|
/freebsd-11-stable/crypto/openssl/crypto/bn/ |
H A D | bn_depr.c | 75 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 D | bn_rand.c | 118 static int bnrand(int pseudorand, BIGNUM *rnd, int bits, int top, int bottom) argument 127 BN_zero(rnd); 187 if (!BN_bin2bn(buf, bytes, rnd)) 195 bn_check_top(rnd); 203 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom) argument 205 return bnrand(0, rnd, bits, top, bottom); 208 int BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom) argument 210 return bnrand(1, rnd, bits, top, bottom); 214 int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom) argument 216 return bnrand(2, rnd, bit [all...] |
H A D | bn_prime.c | 134 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, 367 static int probable_prime(BIGNUM *rnd, int bits) argument 374 if (!BN_rand(rnd, bits, 1, 1)) 378 mods[i] = (prime_t) BN_mod_word(rnd, (BN_ULONG)primes[i]); 383 * check that rnd is not a prime and also that gcd(rnd-1,primes) == 1 393 if (!BN_add_word(rnd, delta)) 395 bn_check_top(rnd); 399 probable_prime_dh(BIGNUM *rnd, int bits, const BIGNUM *add, const BIGNUM *rem, BN_CTX *ctx) argument [all...] |
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/gen/ |
H A D | t_fpsetround.c | 64 } rnd[] = { variable in typeref:struct:__anon4701 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-11-stable/crypto/openssl/crypto/engine/ |
H A D | eng_rdrand.c | 66 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-11-stable/usr.bin/enigma/ |
H A D | enigma.c | 42 unsigned rnd; local 67 rnd = seed % 65521; 69 ic = (rnd&MASK)%(k+1); 70 rnd >>= 8; 75 ic = (rnd&MASK) % k; 146 unsigned rnd; local 151 rnd = seed % 65521; 153 ic = (rnd&MASK)%(k+1);
|
/freebsd-11-stable/contrib/ntp/lib/isc/ |
H A D | random.c | 104 isc_uint32_t rnd; local 111 isc_random_get(&rnd); 112 return (max - rnd % jitter);
|
/freebsd-11-stable/crypto/openssh/openbsd-compat/ |
H A D | arc4random.c | 109 u_char rnd[KEYSZ + IVSZ]; local 112 if (RAND_bytes(rnd, sizeof(rnd)) <= 0) 116 getrnd(rnd, sizeof(rnd)); 121 _rs_init(rnd, sizeof(rnd)); 123 _rs_rekey(rnd, sizeof(rnd)); 124 explicit_bzero(rnd, sizeo [all...] |
/freebsd-11-stable/contrib/unbound/compat/ |
H A D | arc4random.c | 181 u_char rnd[KEYSZ + IVSZ]; local 183 if (getentropy(rnd, sizeof rnd) == -1) { 185 fallback_getentropy_urandom(rnd, sizeof rnd) == -1) { 195 _rs_init(rnd, sizeof(rnd)); 197 _rs_rekey(rnd, sizeof(rnd)); 198 explicit_bzero(rnd, sizeo [all...] |
/freebsd-11-stable/tests/sys/geom/class/eli/ |
H A D | onetime_test.sh | 15 atf_check dd if=rnd of=/dev/${md}.eli bs=${secsize} count=${sectors} status=none 17 md_rnd=`dd if=rnd bs=${secsize} count=${sectors} status=none | md5` 44 dd if=/dev/random of=rnd bs=${MAX_SECSIZE} count=${sectors} status=none 63 atf_check dd if=rnd of=/dev/${md}.eli bs=${secsize} count=${sectors} status=none 65 md_rnd=`dd if=rnd bs=${secsize} count=${sectors} status=none | md5` 87 atf_check dd if=/dev/random of=rnd bs=$MAX_SECSIZE count=$sectors \
|
H A D | integrity_test.sh | 17 atf_check dd if=rnd of=/dev/${md}.eli bs=${secsize} count=1 status=none 30 atf_check dd if=rnd of=/dev/${md}.eli bs=${secsize} count=2 status=none 61 dd if=/dev/random of=rnd bs=${MAX_SECSIZE} count=${sectors} status=none 84 atf_check dd if=rnd of=sector bs=1 count=8 seek=64 conv=notrunc status=none 107 dd if=/dev/random of=rnd bs=${MAX_SECSIZE} count=${sectors} status=none 128 atf_check dd if=rnd of=sector bs=1 count=16 conv=notrunc status=none 151 dd if=/dev/random of=rnd bs=${MAX_SECSIZE} count=${sectors} status=none
|
H A D | setkey_test.sh | 19 atf_check dd if=/dev/random of=rnd bs=512 count=${sectors} status=none 20 hash1=`dd if=rnd bs=512 count=${sectors} status=none | md5` 32 dd if=rnd of=/dev/${md}.eli bs=512 count=${sectors} status=none
|
/freebsd-11-stable/contrib/lua/src/ |
H A D | ltablib.c | 262 unsigned int i, rnd = 0; local 266 rnd += buff[i]; 267 return rnd; 344 ** "randomized" by 'rnd' 346 static IdxT choosePivot (IdxT lo, IdxT up, unsigned int rnd) { argument 348 IdxT p = rnd % (r4 * 2) + (lo + r4); 358 unsigned int rnd) { 371 if (up - lo < RANLIMIT || rnd == 0) /* small interval or no randomize? */ 374 p = choosePivot(lo, up, rnd); 396 auxsort(L, lo, p - 1, rnd); /* cal 357 auxsort(lua_State *L, IdxT lo, IdxT up, unsigned int rnd) argument [all...] |
/freebsd-11-stable/crypto/openssh/ |
H A D | ssh-keysign.c | 182 u_int32_t rnd[256]; local 233 arc4random_buf(rnd, sizeof(rnd)); 234 RAND_seed(rnd, sizeof(rnd));
|
/freebsd-11-stable/crypto/openssl/crypto/camellia/asm/ |
H A D | cmll-x86.pl | 471 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-11-stable/contrib/openbsm/bin/auditdistd/ |
H A D | auditdistd.c | 227 unsigned char rnd[32], hash[32], resp[32]; local 324 if (adist_random(rnd, sizeof(rnd)) == -1) { 330 if (proto_send(conn, rnd, sizeof(rnd)) == -1) { 345 (int)strlen(adhost->adh_password), rnd, (int)sizeof(rnd), hash, 359 if (proto_recv(conn, rnd, sizeof(rnd)) == -1) { 367 (int)strlen(adhost->adh_password), rnd, (in [all...] |
H A D | sender.c | 136 unsigned char rnd[32], hash[32], resp[32]; local 222 if (proto_recv(conn, rnd, sizeof(rnd)) == -1) { 231 (int)strlen(adhost->adh_password), rnd, (int)sizeof(rnd), hash, 247 if (adist_random(rnd, sizeof(rnd)) == -1) { 254 if (proto_send(conn, rnd, sizeof(rnd)) == -1) { 271 (int)strlen(adhost->adh_password), rnd, (in [all...] |
/freebsd-11-stable/crypto/openssl/crypto/rand/ |
H A D | rand_unix.c | 228 u_int32_t rnd = 0, i; local 233 rnd = arc4random(); 234 buf[i] = rnd; 235 rnd >>= 8;
|
/freebsd-11-stable/lib/msun/arm/ |
H A D | fenv.c | 63 #define __set_env(env, flags, mask, rnd) env = ((flags) \ 65 | (rnd) << 24)
|
/freebsd-11-stable/sys/mips/cavium/ |
H A D | octeon_rnd.c | 69 "rnd", 74 DRIVER_MODULE(rnd, nexus, octeon_rnd_driver, octeon_rnd_devclass, 0, 0); 79 BUS_ADD_CHILD(parent, 0, "rnd", 0);
|
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/builtins/hexagon/ |
H A D | fastmath2_dlib_asm.S | 346 int ic, rnd, mantb; 352 mantb = (manta + rnd)>>7; 353 rnd = 0x40 355 if((manta & 0xff) == rnd) rnd = 0x00; 376 #define rnd R5 define 387 rnd = #0x40 define 398 if(p1.new) rnd = #0 405 mantb = add(mant, rnd)
|
/freebsd-11-stable/lib/libc/resolv/ |
H A D | res_init.c | 763 u_char *rnd = statp->_rnd == NULL ? srnd : statp->_rnd; local 767 memcpy(rnd, &u32, 4); 769 memcpy(rnd + 4, &u32, 4); 771 memcpy(rnd + 8, &u32, 4); 773 memcpy(rnd + 12, &u16, 2); 781 u_char *rnd = statp->_rnd == NULL ? srnd : statp->_rnd; local 785 memcpy(rnd + 14, &u16, 2); 788 MD5_Update(&ctx, rnd, 16); 789 MD5_Final(rnd, &ctx); 792 MD5Update(&ctx, rnd, 1 [all...] |