Home
last modified time | relevance | path

Searched refs:ciphertext (Results 1 – 6 of 6) sorted by relevance

/PHP-8.1/ext/sodium/tests/
H A Dcrypto_aead.phpt18 $ciphertext = sodium_crypto_aead_chacha20poly1305_encrypt($msg, $ad, $nonce, $key);
19 $msg2 = sodium_crypto_aead_chacha20poly1305_decrypt($ciphertext, $ad, $nonce, $key);
20 var_dump($ciphertext !== $msg);
22 var_dump(sodium_crypto_aead_chacha20poly1305_decrypt($ciphertext, 'x' . $ad, $nonce, $key));
25 $msg2 = sodium_crypto_aead_chacha20poly1305_decrypt($ciphertext, $ad, $key, $nonce);
43 var_dump($ciphertext !== $msg);
72 var_dump($ciphertext !== $msg);
96 $ciphertext = sodium_crypto_aead_aes256gcm_encrypt($msg, $ad, $nonce, $key);
97 $msg2 = sodium_crypto_aead_aes256gcm_decrypt($ciphertext, $ad, $nonce, $key);
98 var_dump($ciphertext !== $msg);
[all …]
H A Dcrypto_box.phpt39 $ciphertext = sodium_crypto_box(
46 $ciphertext = sodium_crypto_box(
70 $ciphertext,
/PHP-8.1/ext/sodium/
H A Dlibsodium.c535 zend_string *ciphertext; in PHP_FUNCTION() local
572 RETURN_NEW_STR(ciphertext); in PHP_FUNCTION()
579 unsigned char *ciphertext; in PHP_FUNCTION() local
945 zend_string *ciphertext; in PHP_FUNCTION() local
992 unsigned char *ciphertext; in PHP_FUNCTION() local
1035 zend_string *ciphertext; in PHP_FUNCTION() local
1070 unsigned char *ciphertext; in PHP_FUNCTION() local
1425 zend_string *ciphertext; in PHP_FUNCTION() local
1465 zend_string *ciphertext; in PHP_FUNCTION() local
1505 zend_string *ciphertext; in PHP_FUNCTION() local
[all …]
H A Dlibsodium.stub.php8 function sodium_crypto_aead_aes256gcm_decrypt(string $ciphertext, string $additional_data, string $… argument
15 function sodium_crypto_aead_chacha20poly1305_decrypt(string $ciphertext, string $additional_data, s… argument
21 function sodium_crypto_aead_chacha20poly1305_ietf_decrypt(string $ciphertext, string $additional_da… argument
28 function sodium_crypto_aead_xchacha20poly1305_ietf_decrypt(string $ciphertext, string $additional_d… argument
49 function sodium_crypto_box_open(string $ciphertext, string $nonce, string $key_pair): string|false … argument
57 function sodium_crypto_box_seal_open(string $ciphertext, string $key_pair): string|false {} argument
150 function sodium_crypto_secretbox_open(string $ciphertext, string $nonce, string $key): string|false… argument
163 function sodium_crypto_secretstream_xchacha20poly1305_pull(string &$state, string $ciphertext, stri… argument
H A Dlibsodium_arginfo.h9 ZEND_ARG_TYPE_INFO(0, ciphertext, IS_STRING, 0)
31 ZEND_ARG_TYPE_INFO(0, ciphertext, IS_STRING, 0)
55 ZEND_ARG_TYPE_INFO(0, ciphertext, IS_STRING, 0)
107 ZEND_ARG_TYPE_INFO(0, ciphertext, IS_STRING, 0)
126 ZEND_ARG_TYPE_INFO(0, ciphertext, IS_STRING, 0)
331 ZEND_ARG_TYPE_INFO(0, ciphertext, IS_STRING, 0)
366 ZEND_ARG_TYPE_INFO(0, ciphertext, IS_STRING, 0)
/PHP-8.1/ext/openssl/tests/
H A Dbug74099.phpt14 $ciphertext = openssl_encrypt($plaintext, 'aes-256-gcm', $key, \OPENSSL_RAW_DATA, $iv, $tag, $aad);
15 var_dump($ciphertext);

Completed in 28 milliseconds