Searched refs:random_bytes (Results 1 – 25 of 43) sorted by relevance
12
/PHP-8.2/ext/random/tests/01_functions/ |
H A D | random_bytes_error.phpt | 2 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 D | random_bytes.phpt | 2 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 D | reflection.phpt | 2 Bug #74708 Wrong reflection on random_bytes and random_int 5 $rf = new ReflectionFunction('random_bytes');
|
/PHP-8.2/ext/sodium/tests/ |
H A D | crypto_aead.phpt | 13 $msg = random_bytes(random_int(1, 1000)); 14 $nonce = random_bytes(SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_NPUBBYTES); 16 $ad = random_bytes(random_int(1, 1000)); 36 $msg = random_bytes(random_int(1, 1000)); 37 $nonce = random_bytes(SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES); 39 $ad = random_bytes(random_int(1, 1000)); 65 $msg = random_bytes(random_int(1, 1000)); 68 $ad = random_bytes(random_int(1, 1000)); 92 $msg = random_bytes(random_int(1, 1000)); 93 $nonce = random_bytes(SODIUM_CRYPTO_AEAD_AES256GCM_NPUBBYTES); [all …]
|
H A D | crypto_secretstream.phpt | 13 $msg1 = random_bytes(random_int(1, 1000)); 14 $msg2 = random_bytes(random_int(1, 1000)); 16 $ad = random_bytes(random_int(1, 1000));
|
H A D | crypto_stream.phpt | 7 $nonce = random_bytes(SODIUM_CRYPTO_STREAM_NONCEBYTES); 16 $nonce = random_bytes(SODIUM_CRYPTO_STREAM_NONCEBYTES);
|
H A D | crypto_auth.phpt | 7 $msg = random_bytes(1000); 14 $bad_key = random_bytes(SODIUM_CRYPTO_AUTH_KEYBYTES - 1);
|
H A D | crypto_stream_xchacha20.phpt | 9 $nonce = random_bytes(SODIUM_CRYPTO_STREAM_XCHACHA20_NONCEBYTES); 18 $nonce = random_bytes(SODIUM_CRYPTO_STREAM_XCHACHA20_NONCEBYTES); 38 $n2 = random_bytes(SODIUM_CRYPTO_STREAM_XCHACHA20_NONCEBYTES);
|
H A D | crypto_box.phpt | 25 $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 D | crypto_hex.phpt | 7 $bin = random_bytes(random_int(1, 1000));
|
H A D | crypto_secretbox.phpt | 7 $nonce = random_bytes(SODIUM_CRYPTO_SECRETBOX_NONCEBYTES);
|
H A D | pwhash_scrypt.phpt | 24 $salt = random_bytes(SODIUM_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_SALTBYTES);
|
H A D | sodium_error_001.phpt | 14 $key = random_bytes(SODIUM_CRYPTO_SHORTHASH_KEYBYTES);
|
H A D | pwhash_argon2i.phpt | 32 $salt = random_bytes(SODIUM_CRYPTO_PWHASH_SALTBYTES);
|
H A D | php_password_hash_argon2i.phpt | 27 $password = random_bytes(32);
|
H A D | php_password_hash_argon2id.phpt | 26 $password = random_bytes(32);
|
/PHP-8.2/ext/openssl/tests/ |
H A D | bug74099.phpt | 7 $aad = random_bytes(32); 8 $iv = random_bytes(16); 9 $key = random_bytes(32);
|
H A D | bug74402.phpt | 2 Bug #74402 (segfault on random_bytes, bin3hex, openssl_seal)
|
/PHP-8.2/ext/opcache/tests/ |
H A D | bug76275.phpt | 15 if (!is_callable('random_bytes')) { 19 function random_bytes($length)
|
/PHP-8.2/ext/bz2/tests/ |
H A D | bug81092.phpt | 9 fwrite($stream, random_bytes(8192));
|
/PHP-8.2/ext/session/tests/ |
H A D | gh7787.phpt | 39 return sha1(random_bytes(32)); 70 fn() => sha1(random_bytes(32)),
|
H A D | gh9584.phpt | 37 return sha1(random_bytes(32));
|
/PHP-8.2/ext/pdo_firebird/tests/ |
H A D | bug_73087.phpt | 18 'content' => base64_encode(random_bytes(10))
|
/PHP-8.2/ext/random/tests/ |
H A D | engines.inc | 16 $this->state = random_bytes(20);
|
/PHP-8.2/ext/random/tests/03_randomizer/methods/ |
H A D | shuffleBytes.phpt | 38 $bytes = sort_bytes(random_bytes($i));
|
Completed in 14 milliseconds
12