Home
last modified time | relevance | path

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

/PHP-7.2/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-7.2/ext/sodium/
H A Dlibsodium.c782 zend_string *ciphertext; in PHP_FUNCTION() local
823 RETURN_STR(ciphertext); in PHP_FUNCTION()
830 unsigned char *ciphertext; in PHP_FUNCTION() local
1257 RETURN_STR(ciphertext); in PHP_FUNCTION()
1341 RETURN_STR(ciphertext); in PHP_FUNCTION()
1761 RETURN_STR(ciphertext); in PHP_FUNCTION()
1800 RETURN_STR(ciphertext); in PHP_FUNCTION()
2209 RETURN_STR(ciphertext); in PHP_FUNCTION()
2339 RETURN_STR(ciphertext); in PHP_FUNCTION()
2468 RETURN_STR(ciphertext); in PHP_FUNCTION()
[all …]
/PHP-7.2/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);
/PHP-7.2/
H A DNEWS13 . Fixed bug #79601 (Wrong ciphertext/tag in AES-CCM encryption for a 12

Completed in 36 milliseconds