Home
last modified time | relevance | path

Searched refs:iv (Results 1 – 24 of 24) sorted by relevance

/PHP-8.0/ext/openssl/tests/
H A Dcipher_tests.inc6 'iv' => '1011121314151617',
14 'iv' => '101112131415161718191a1b',
28 'iv' => '5b8e40746f6b98e00f1d13ff41',
41 'iv' => '000000000000000000000000',
48 'iv' => '000000000000000000000000',
55 'iv' => 'cafebabefacedbaddecaf888',
68 'iv' => 'cafebabefacedbaddecaf888',
82 'iv' => 'cafebabefacedbad',
116 'iv' => 'BBAA99887766554433221100',
124 'iv' => 'BBAA99887766554433221101',
[all …]
H A Dopenssl_decrypt_basic.phpt12 $iv = '';
14 while(strlen($iv) < $ivlen) $iv .= chr(rand(0,255));
16 $encrypted = openssl_encrypt($data, $method, $password, 0, $iv);
17 $output = openssl_decrypt($encrypted, $method, $password, 0, $iv);
19 $encrypted = openssl_encrypt($data, $method, $password, OPENSSL_RAW_DATA, $iv);
20 $output = openssl_decrypt($encrypted, $method, $password, OPENSSL_RAW_DATA, $iv);
24 …ed = openssl_encrypt($padded_data, $method, $password, OPENSSL_RAW_DATA|OPENSSL_ZERO_PADDING, $iv);
25 …tput = openssl_decrypt($encrypted, $method, $password, OPENSSL_RAW_DATA|OPENSSL_ZERO_PADDING, $iv);
34 openssl_encrypt($data, $method, $password, 0, $iv, $tag);
H A Dbug70438.phpt23 openssl_seal($data, $sealed, $ekeys, array($pub_key, $pub_key), 'sparkles', $iv);
24 openssl_seal($data, $sealed, $ekeys, array($pub_key, $pub_key), $cipher, $iv);
25 openssl_open($sealed, $decrypted, $ekeys[0], $priv_key, $cipher, $iv);
29 openssl_seal(): Argument #6 ($iv) cannot be null for the chosen cipher algorithm
H A Dopenssl_decrypt_error.phpt11 $iv = str_repeat("\0", openssl_cipher_iv_length($method));
14 var_dump($encrypted); /* Not passing $iv should be the same as all-NULL iv, but with a warning */
15 var_dump(openssl_encrypt($data, $method, $password, 0, $iv));
25 Warning: openssl_encrypt(): Using an empty Initialization Vector (iv) is potentially insecure and n…
H A Dbug74099.phpt10 $iv = random_bytes(16);
16 $ciphertext = openssl_encrypt($plaintext, 'aes-256-gcm', $key, \OPENSSL_RAW_DATA, $iv, $tag, $aad);
H A Dbug74402.phpt20 $iv = '';
22 var_dump(openssl_seal($data, $sealed_data, $env_keys, $key, 'AES256', $iv));
H A Dopenssl_decrypt_ccm.phpt20 $test['iv'], $test['tag'], $test['aad']);
30 $test['iv'], $test['tag']));
33 $test['iv'], str_repeat('x', 10), $test['aad']));
H A Dopenssl_decrypt_gcm.phpt19 $test['iv'], $test['tag'], $test['aad']);
28 $test['iv'], $test['tag']));
31 $test['iv'], str_repeat('x', 16), $test['aad']));
H A Dopenssl_encrypt_error.phpt10 $iv = str_repeat("\0", openssl_cipher_iv_length($method));
19 var_dump(openssl_encrypt($data, $method, $password, OPENSSL_DONT_ZERO_PAD_KEY, $iv));
H A Dopenssl_decrypt_ocb.phpt19 $test['iv'], $test['tag'], $test['aad']);
33 $test['iv'], $test['tag']));
37 $test['iv'], str_repeat('x', 16), $test['aad']));
H A Dopenssl_encrypt_crash.phpt11 Warning: openssl_encrypt(): Using an empty Initialization Vector (iv) is potentially insecure and n…
H A Dbug60632.phpt30 openssl_seal(): Argument #6 ($iv) cannot be null for the chosen cipher algorithm
H A Dopenssl_encrypt_ccm.phpt20 $test['iv'], $tag, $test['aad'], strlen($test['tag']));
H A Dopenssl_encrypt_gcm.phpt19 $test['iv'], $tag, $test['aad'], strlen($test['tag']));
H A Dopenssl_encrypt_ocb.phpt19 $test['iv'], $tag, $test['aad'], strlen($test['tag']));
H A Dbug81713.phpt62 ["openssl_seal", "test", &$sealed, &$ekeys, [$priv_key_file_null], "AES-128-CBC", &$iv],
63 ["openssl_open", "test", &$open, "aaa", $priv_key_file_null, "AES-128-CBC", &$iv],
/PHP-8.0/ext/reflection/tests/
H A DReflectionProperty_isInitialized.phpt10 public ?int $iv = null;
26 var_dump((new ReflectionProperty($a, 'iv'))->isInitialized($a));
31 unset($a->iv);
35 var_dump((new ReflectionProperty($a, 'iv'))->isInitialized($a));
/PHP-8.0/ext/openssl/
H A Dphp_openssl.h102 const char *iv, size_t iv_len,
110 const char *iv, size_t iv_len,
H A Dopenssl.stub.php180 * @param string $iv
182 …&$sealed_data, &$encrypted_keys, array $public_key, string $cipher_algo, &$iv = null): int|false {} argument
188 …a, &$output, string $encrypted_key, $private_key, string $cipher_algo, ?string $iv = null): bool {} argument
201 … $data, string $cipher_algo, string $passphrase, int $options = 0, string $iv = "", &$tag = null, … argument
203 … $data, string $cipher_algo, string $passphrase, int $options = 0, string $iv = "", string $tag = … argument
H A Dopenssl_arginfo.h299 ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, iv, "null")
308 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, iv, IS_STRING, 1, "null")
333 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, iv, IS_STRING, 0, "\"\"")
344 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, iv, IS_STRING, 0, "\"\"")
H A Dopenssl.c6651 zval *pubkeys, *pubkey, *sealdata, *ekeys, *iv = NULL; in PHP_FUNCTION() local
6684 if (!iv && iv_len > 0) { in PHP_FUNCTION()
6749 if (iv) { in PHP_FUNCTION()
6786 char *method, *iv = NULL; in PHP_FUNCTION() local
6814 if (!iv) { in PHP_FUNCTION()
6822 iv_buf = (unsigned char *)iv; in PHP_FUNCTION()
7199 const char *iv, size_t iv_len, in php_openssl_encrypt() argument
7278 efree((void *) iv); in php_openssl_encrypt()
7289 char *data, *method, *password, *iv = "", *aad = ""; in PHP_FUNCTION() local
7312 const char *iv, size_t iv_len, in php_openssl_decrypt() argument
[all …]
/PHP-8.0/ext/date/tests/
H A Dbug52808.phpt14 foreach($intervals as $iv) {
17 $di = new DateInterval($iv);
/PHP-8.0/ext/standard/
H A Dvar_unserializer.re371 iv = [+-]? [0-9]+;
373 nvexp = (iv | nv) [eE] iv;
877 "i:" iv ";" {
919 "d:" (iv | nv | nvexp) ";" {
1000 /* use iv() not uiv() in order to check data range */
/PHP-8.0/ext/date/lib/
H A Dparse_date.re265 { "iv", 0, 4 },

Completed in 44 milliseconds