/macosx-10.10/Security-57031.1.35/SecurityTests/regressions/ut/ |
H A D | ut-01-devrandom.cpp | 9 DevRandomGenerator rnd; local 11 no_throw(rnd.random(buf, sizeof(buf)), "read data from rnd."); 13 todo("writing to read only rnd succeeeds unexpectedly."); 15 does_throw(rnd.addEntropy(buf, sizeof(buf)), 16 "writing to rnd throws");
|
/macosx-10.10/OpenSSL098-52/src/crypto/bn/ |
H A D | bn_depr.c | 73 BIGNUM *rnd=NULL; local 80 if ((rnd=BN_new()) == NULL) goto err; 83 rnd=ret; 84 if(!BN_generate_prime_ex(rnd, bits, safe, add, rem, &cb)) 90 if (!found && (ret == NULL) && (rnd != NULL)) BN_free(rnd); 91 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 126 BN_zero(rnd); 199 if (!BN_bin2bn(buf,bytes,rnd)) goto err; 207 bn_check_top(rnd); 211 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom) argument 213 return bnrand(0, rnd, bits, top, bottom); 216 int BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom) argument 218 return bnrand(1, rnd, bits, top, bottom); 222 int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom) argument 224 return bnrand(2, rnd, bit [all...] |
H A D | bn_prime.c | 131 static int probable_prime(BIGNUM *rnd, int bits); 132 static int probable_prime_dh(BIGNUM *rnd, int bits, 134 static int probable_prime_dh_safe(BIGNUM *rnd, int bits, 377 static int probable_prime(BIGNUM *rnd, int bits) argument 384 if (!BN_rand(rnd,bits,1,1)) return(0); 387 mods[i]=(prime_t)BN_mod_word(rnd,(BN_ULONG)primes[i]); 392 /* check that rnd is not a prime and also 393 * that gcd(rnd-1,primes) == 1 (except for 2) */ 401 if (!BN_add_word(rnd,delta)) return(0); 402 bn_check_top(rnd); 406 probable_prime_dh(BIGNUM *rnd, int bits, const BIGNUM *add, const BIGNUM *rem, BN_CTX *ctx) argument [all...] |
/macosx-10.10/Security-57031.1.35/Security/include/security_keychain/ |
H A D | SecRandom.c | 42 int SecRandomCopyBytes(SecRandomRef rnd, size_t count, uint8_t *bytes) { argument 43 if (rnd != kSecRandomDefault) 50 SecRandomCopyData(SecRandomRef rnd, size_t count) argument 55 if (rnd != kSecRandomDefault) return NULL;
|
H A D | SecRandom.h | 58 int SecRandomCopyBytes(SecRandomRef rnd, size_t count, uint8_t *bytes)
|
H A D | SecRandomP.h | 51 SecRandomCopyData(SecRandomRef rnd, size_t count)
|
/macosx-10.10/Security-57031.1.35/Security/libsecurity_keychain/Security/ |
H A D | SecRandom.c | 42 int SecRandomCopyBytes(SecRandomRef rnd, size_t count, uint8_t *bytes) { argument 43 if (rnd != kSecRandomDefault) 50 SecRandomCopyData(SecRandomRef rnd, size_t count) argument 55 if (rnd != kSecRandomDefault) return NULL;
|
H A D | SecRandom.h | 58 int SecRandomCopyBytes(SecRandomRef rnd, size_t count, uint8_t *bytes)
|
H A D | SecRandomP.h | 51 SecRandomCopyData(SecRandomRef rnd, size_t count)
|
/macosx-10.10/Security-57031.1.35/Security/libsecurity_keychain/lib/ |
H A D | SecRandom.c | 42 int SecRandomCopyBytes(SecRandomRef rnd, size_t count, uint8_t *bytes) { argument 43 if (rnd != kSecRandomDefault) 50 SecRandomCopyData(SecRandomRef rnd, size_t count) argument 55 if (rnd != kSecRandomDefault) return NULL;
|
H A D | SecRandom.h | 58 int SecRandomCopyBytes(SecRandomRef rnd, size_t count, uint8_t *bytes)
|
H A D | SecRandomP.h | 51 SecRandomCopyData(SecRandomRef rnd, size_t count)
|
/macosx-10.10/Security-57031.1.35/Security/sec/securityd/Regressions/ |
H A D | sd-10-policytree.c | 19 uint32_t rnd = arc4random(); local 21 count = rnd % 7; 25 if (rnd < 0x40000000) { 27 } else if (rnd < 0x80000000) { 29 } else if (rnd < 0xc0000000) { 31 } else if (rnd < 0xf0000000) {
|
/macosx-10.10/Security-57031.1.35/Security/libsecurity_apple_csp/open_ssl/bn/ |
H A D | bn_prime.c | 144 static int probable_prime(BIGNUM *rnd, int bits); 145 static int probable_prime_dh(BIGNUM *rnd, int bits, 147 static int probable_prime_dh_safe(BIGNUM *rnd, int bits, 153 BIGNUM *rnd=NULL; local 164 if ((rnd=BN_new()) == NULL) goto err; 167 rnd=ret; 173 if (!probable_prime(rnd,bits)) goto err; 179 if (!probable_prime_dh_safe(rnd,bits,add,rem,ctx)) 184 if (!probable_prime_dh(rnd,bits,add,rem,ctx)) 188 /* if (BN_mod_word(rnd,(BN_ULON 366 probable_prime(BIGNUM *rnd, int bits) argument 397 probable_prime_dh(BIGNUM *rnd, int bits, BIGNUM *add, BIGNUM *rem, BN_CTX *ctx) argument [all...] |
H A D | bn_rand.c | 65 static int bnrand(int pseudorand, BIGNUM *rnd, int bits, int top, int bottom) argument 73 BN_zero(rnd); 146 if (!BN_bin2bn(buf,bytes,rnd)) goto err; 157 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom) argument 159 return bnrand(0, rnd, bits, top, bottom); 162 int BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom) argument 164 return bnrand(1, rnd, bits, top, bottom); 168 int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom) 170 return bnrand(2, rnd, bits, top, bottom);
|
/macosx-10.10/Security-57031.1.35/Security/sec/Security/ |
H A D | SecRandom.h | 56 int SecRandomCopyBytes(SecRandomRef rnd, size_t count, uint8_t *bytes)
|
/macosx-10.10/OpenSSL098-52/src/crypto/rc4/asm/ |
H A D | rc4-ia64.S | 89 .rotr dat[4],key_x[4],tx[2],rnd[2],key_y[2],ty[1]; 128 (p18) dep rnd[1]=rnd[1],r0,OFF,8 } // ((tx+ty)&255)<<OFF 134 { .mmi; (p18) add rnd[1]=ksch,rnd[1] // &key[(tx+ty)&255] 136 { .mmi; (p18) LDKEY rnd[1]=[rnd[1]] // rnd=key[(tx+ty)&255] 145 { .mmb; (p17) add rnd[0]=tx[1],ty[0] // tx+=ty 146 (p18) xor dat[2]=dat[2],rnd[ [all...] |
/macosx-10.10/OpenSSL098-52/src/test/ |
H A D | CAssdh.cnf | 7 RANDFILE = ./.rnd
|
H A D | CAssdsa.cnf | 7 RANDFILE = ./.rnd
|
H A D | CAssrsa.cnf | 7 RANDFILE = ./.rnd
|
H A D | Sssdsa.cnf | 7 RANDFILE = ./.rnd
|
H A D | Sssrsa.cnf | 7 RANDFILE = ./.rnd
|
/macosx-10.10/bind9-45.101/bind9/lib/isc/ |
H A D | random.c | 104 isc_uint32_t rnd; local 111 isc_random_get(&rnd); 112 return (max - rnd % jitter);
|
/macosx-10.10/ruby-106/ruby/ |
H A D | random.c | 383 rb_random_t *rnd; local 384 VALUE obj = TypedData_Make_Struct(klass, rb_random_t, &random_data_type, rnd); 385 rnd->seed = INT2FIX(0); 465 rb_random_t *rnd = get_rnd(obj); local 475 rnd->seed = rand_init(&rnd->mt, vseed); 643 rb_random_t *rnd = get_rnd(obj); local 644 return mt_state(&rnd->mt); 658 rb_random_t *rnd = get_rnd(obj); local 659 return INT2FIX(rnd 673 rb_random_t *rnd = get_rnd(obj); local 687 rb_random_t *rnd = get_rnd(obj); local 854 unsigned long mask, lim, rnd; local 916 rb_random_t *rnd = try_get_rnd(obj); local 933 rb_random_t *rnd = try_get_rnd(obj); local 964 rb_random_t *rnd = try_get_rnd(obj); local 998 rb_random_t *rnd = try_get_rnd(obj); local 1208 rand_random(int argc, VALUE *argv, rb_random_t *rnd) argument [all...] |