Searched refs:random_bytes (Results 1 - 12 of 12) sorted by relevance
/macosx-10.9.5/ppp-727.90.1/Helpers/pppd/ |
H A D | magic.h | 71 void random_bytes __P((unsigned char *buf, int len));
|
H A D | magic.c | 122 * random_bytes - Fill a buffer with random bytes. 125 random_bytes(unsigned char *buf, int len) function
|
H A D | chap-md5.c | 78 random_bytes(cp, clen);
|
H A D | chap_ms.c | 207 random_bytes(challenge, 8); 217 random_bytes(challenge, 16); 481 random_bytes(ClearPwBlock, sizeof(ClearPwBlock));
|
/macosx-10.9.5/ruby-104/ruby/ext/openssl/lib/openssl/ |
H A D | cipher.rb | 47 str = OpenSSL::Random.random_bytes(self.key_len) 55 str = OpenSSL::Random.random_bytes(self.iv_len)
|
/macosx-10.9.5/ruby-104/ruby/lib/ |
H A D | securerandom.rb | 32 # p SecureRandom.random_bytes(10) #=> "\016\t{\370g\310pbr\301" 33 # p SecureRandom.random_bytes(10) #=> "\323U\030TO\234\357\020\a\337" 42 # SecureRandom.random_bytes generates a random binary string. 51 # p SecureRandom.random_bytes #=> "\xD8\\\xE0\xF4\r\xB2\xFC*WM\xFF\x83\x18\xF45\xB6" 52 # p SecureRandom.random_bytes #=> "m\xDC\xFC/\a\x00Uf\xB2\xB2P\xBD\xFF6S\x97" 56 def self.random_bytes(n=nil) singleton method in class:SecureRandom 68 return OpenSSL::Random.random_bytes(n) 141 random_bytes(n).unpack("H*")[0] 162 [random_bytes(n)].pack("m*").delete("\n") 192 s = [random_bytes( [all...] |
/macosx-10.9.5/ruby-104/ruby/test/ |
H A D | test_securerandom.rb | 12 assert_equal(16, @it.random_bytes.size) 13 assert_equal(Encoding::ASCII_8BIT, @it.random_bytes.encoding) 15 assert_equal(idx, @it.random_bytes(idx).size) 28 SecureRandom.random_bytes(8) 37 w.write SecureRandom.random_bytes(8) 51 v2 = SecureRandom.random_bytes(8)
|
/macosx-10.9.5/apache-786.1/httpd/srclib/apr/random/unix/ |
H A D | apr_random.c | 77 apr_size_t random_bytes; member in struct:apr_random_t 139 g->random_bytes = 0; 172 g->random_bytes = 0; 277 if (g->random_bytes == 0) { 279 g->random_bytes = B_size(g); 281 l = min(bytes-n,g->random_bytes); 282 memcpy(&random[n],g->randomness+B_size(g)-g->random_bytes,l); 283 g->random_bytes-=l;
|
/macosx-10.9.5/apr-30/apr/apr/random/unix/ |
H A D | apr_random.c | 77 apr_size_t random_bytes; member in struct:apr_random_t 122 g->random_bytes = 0; 154 g->random_bytes = 0; 254 if (g->random_bytes == 0) { 256 g->random_bytes = B_size(g); 258 l = min(bytes-n,g->random_bytes); 259 memcpy(&random[n],g->randomness+B_size(g)-g->random_bytes,l); 260 g->random_bytes-=l;
|
/macosx-10.9.5/ruby-104/ruby/test/openssl/ |
H A D | test_engine.rb | 47 key = OpenSSL::Random.random_bytes(16)
|
H A D | test_pkcs5.rb | 88 s = OpenSSL::Random.random_bytes(16)
|
/macosx-10.9.5/ruby-104/ruby/ |
H A D | random.c | 990 random_bytes(VALUE obj, VALUE len) function 1485 rb_define_method(rb_cRandom, "bytes", random_bytes, 1);
|
Completed in 115 milliseconds