Home
last modified time | relevance | path

Searched refs:random_bytes (Results 1 – 25 of 37) sorted by path

12

/php-src/ext/bz2/tests/
H A Dbug81092.phpt9 fwrite($stream, random_bytes(8192));
/php-src/ext/hash/tests/
H A Dxxhash_secret.phpt15 //$secret = random_bytes(256);
/php-src/ext/opcache/tests/
H A Dbug76275.phpt15 if (!is_callable('random_bytes')) {
19 function random_bytes($length)
/php-src/ext/openssl/tests/
H A Dbug74099.phpt7 $aad = random_bytes(32);
8 $iv = random_bytes(16);
9 $key = random_bytes(32);
H A Dbug74402.phpt2 Bug #74402 (segfault on random_bytes, bin3hex, openssl_seal)
/php-src/ext/pdo_firebird/tests/
H A Dbug_73087.phpt20 'content' => base64_encode(random_bytes(10))
/php-src/ext/random/
H A Drandom.c567 PHP_FUNCTION(random_bytes) argument
H A Drandom.stub.php35 function random_bytes(int $length): string {} function
H A Drandom_arginfo.h132 ZEND_FUNCTION(random_bytes);
165 ZEND_FE(random_bytes, arginfo_random_bytes)
/php-src/ext/random/tests/01_functions/
H A Drandom_bytes.phpt2 Test normal operation of random_bytes()
7 var_dump(strlen(bin2hex(random_bytes(16))));
9 var_dump(is_string(random_bytes(10)));
11 var_dump(is_string(random_bytes(257)));
H A Drandom_bytes_error.phpt2 Test error operation of random_bytes()
8 $bytes = random_bytes();
14 $bytes = random_bytes(0);
21 random_bytes() expects exactly 1 argument, 0 given
22 random_bytes(): Argument #1 ($length) must be greater than 0
H A Dreflection.phpt2 Bug #74708 Wrong reflection on random_bytes and random_int
5 $rf = new ReflectionFunction('random_bytes');
/php-src/ext/random/tests/02_engine/
H A Dpcgoneseq128xslrr64_seed.phpt13 $engine = new PcgOneseq128XslRr64(random_bytes(16));
H A Dxoshiro256starstar_seed.phpt13 $engine = new Xoshiro256StarStar(random_bytes(32));
/php-src/ext/random/tests/03_randomizer/methods/
H A DshuffleBytes.phpt39 $bytes = sort_bytes(random_bytes($i));
/php-src/ext/random/tests/
H A Dengines.inc16 $this->state = random_bytes(20);
/php-src/ext/session/tests/user_session_module/
H A Dbug71162.phpt39 return sha1(random_bytes(32));
H A Dgh7787.phpt36 return sha1(random_bytes(32));
67 fn() => sha1(random_bytes(32)),
H A Dgh9584.phpt35 return sha1(random_bytes(32));
H A Dsave_handler.inc136 // e.g. hash('sha2', random_bytes(64)) or use /dev/urandom
/php-src/ext/sodium/tests/
H A Dcrypto_aead.phpt15 $msg = random_bytes(random_int(1, 1000));
18 $ad = random_bytes(random_int(1, 1000));
38 $msg = random_bytes(random_int(1, 1000));
41 $ad = random_bytes(random_int(1, 1000));
67 $msg = random_bytes(random_int(1, 1000));
70 $ad = random_bytes(random_int(1, 1000));
94 $msg = random_bytes(random_int(1, 1000));
96 $ad = random_bytes(random_int(1, 1000));
120 $msg = random_bytes(random_int(1, 1000));
122 $ad = random_bytes(random_int(1, 1000));
[all …]
H A Dcrypto_auth.phpt7 $msg = random_bytes(1000);
14 $bad_key = random_bytes(SODIUM_CRYPTO_AUTH_KEYBYTES - 1);
H A Dcrypto_box.phpt25 $message_nonce = random_bytes(SODIUM_CRYPTO_BOX_NONCEBYTES);
91 $alice_to_bob_message_nonce = random_bytes(SODIUM_CRYPTO_BOX_NONCEBYTES);
101 $bob_to_alice_message_nonce = random_bytes(SODIUM_CRYPTO_BOX_NONCEBYTES);
H A Dcrypto_core_ristretto255.phpt86 $ru = random_bytes(64);
H A Dcrypto_hex.phpt7 $bin = random_bytes(random_int(1, 1000));

Completed in 61 milliseconds

12