Home
last modified time | relevance | path

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

/PHP-8.0/ext/sodium/tests/
H A Dcrypto_aead.phpt17 $ciphertext = sodium_crypto_aead_chacha20poly1305_encrypt($msg, $ad, $nonce, $key);
18 $msg2 = sodium_crypto_aead_chacha20poly1305_decrypt($ciphertext, $ad, $nonce, $key);
19 var_dump($ciphertext !== $msg);
21 var_dump(sodium_crypto_aead_chacha20poly1305_decrypt($ciphertext, 'x' . $ad, $nonce, $key));
24 $msg2 = sodium_crypto_aead_chacha20poly1305_decrypt($ciphertext, $ad, $key, $nonce);
42 var_dump($ciphertext !== $msg);
71 var_dump($ciphertext !== $msg);
95 $ciphertext = sodium_crypto_aead_aes256gcm_encrypt($msg, $ad, $nonce, $key);
96 $msg2 = sodium_crypto_aead_aes256gcm_decrypt($ciphertext, $ad, $nonce, $key);
97 var_dump($ciphertext !== $msg);
[all …]
H A Dcrypto_box.phpt39 $ciphertext = sodium_crypto_box(
46 $ciphertext = sodium_crypto_box(
70 $ciphertext,
/PHP-8.0/ext/sodium/
H A Dlibsodium.c504 zend_string *ciphertext; in PHP_FUNCTION() local
541 RETURN_NEW_STR(ciphertext); in PHP_FUNCTION()
548 unsigned char *ciphertext; in PHP_FUNCTION() local
914 zend_string *ciphertext; in PHP_FUNCTION() local
955 RETURN_NEW_STR(ciphertext); in PHP_FUNCTION()
961 unsigned char *ciphertext; in PHP_FUNCTION() local
1004 zend_string *ciphertext; in PHP_FUNCTION() local
1033 RETURN_NEW_STR(ciphertext); in PHP_FUNCTION()
1039 unsigned char *ciphertext; in PHP_FUNCTION() local
1394 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
113 function sodium_crypto_secretbox_open(string $ciphertext, string $nonce, string $key): string|false… argument
124 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)
255 ZEND_ARG_TYPE_INFO(0, ciphertext, IS_STRING, 0)
290 ZEND_ARG_TYPE_INFO(0, ciphertext, IS_STRING, 0)
/PHP-8.0/ext/openssl/tests/
H A Dbug74099.phpt16 $ciphertext = openssl_encrypt($plaintext, 'aes-256-gcm', $key, \OPENSSL_RAW_DATA, $iv, $tag, $aad);
17 var_dump($ciphertext);

Completed in 32 milliseconds