Home
last modified time | relevance | path

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

/PHP-7.3/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.3/ext/sodium/
H A Dlibsodium.c783 zend_string *ciphertext; in PHP_FUNCTION() local
824 RETURN_NEW_STR(ciphertext); in PHP_FUNCTION()
831 unsigned char *ciphertext; in PHP_FUNCTION() local
1213 zend_string *ciphertext; in PHP_FUNCTION() local
1258 RETURN_NEW_STR(ciphertext); in PHP_FUNCTION()
1264 unsigned char *ciphertext; in PHP_FUNCTION() local
1311 zend_string *ciphertext; in PHP_FUNCTION() local
1342 RETURN_NEW_STR(ciphertext); in PHP_FUNCTION()
1348 unsigned char *ciphertext; in PHP_FUNCTION() local
1727 zend_string *ciphertext; in PHP_FUNCTION() local
[all …]
/PHP-7.3/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.3/
H A DNEWS171 . Fixed bug #79601 (Wrong ciphertext/tag in AES-CCM encryption for a 12

Completed in 21 milliseconds