Home
last modified time | relevance | path

Searched refs:nonce (Results 1 – 9 of 9) sorted by relevance

/PHP-8.0/ext/sodium/tests/
H A Dcrypto_aead.phpt13 $nonce = random_bytes(SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_NPUBBYTES);
17 $ciphertext = sodium_crypto_aead_chacha20poly1305_encrypt($msg, $ad, $nonce, $key);
18 $msg2 = sodium_crypto_aead_chacha20poly1305_decrypt($ciphertext, $ad, $nonce, $key);
21 var_dump(sodium_crypto_aead_chacha20poly1305_decrypt($ciphertext, 'x' . $ad, $nonce, $key));
24 $msg2 = sodium_crypto_aead_chacha20poly1305_decrypt($ciphertext, $ad, $key, $nonce);
36 $nonce = random_bytes(SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES);
65 $nonce = random_bytes(SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES);
92 $nonce = random_bytes(SODIUM_CRYPTO_AEAD_AES256GCM_NPUBBYTES);
95 $ciphertext = sodium_crypto_aead_aes256gcm_encrypt($msg, $ad, $nonce, $key);
96 $msg2 = sodium_crypto_aead_aes256gcm_decrypt($ciphertext, $ad, $nonce, $key);
[all …]
H A Dcrypto_stream.phpt7 $nonce = random_bytes(SODIUM_CRYPTO_STREAM_NONCEBYTES);
11 $stream = sodium_crypto_stream($len, $nonce, $key);
14 $stream2 = sodium_crypto_stream($len, $nonce, $key);
16 $nonce = random_bytes(SODIUM_CRYPTO_STREAM_NONCEBYTES);
17 $stream3 = sodium_crypto_stream($len, $nonce, $key);
20 $stream4 = sodium_crypto_stream($len, $nonce, $key);
29 $stream5 = sodium_crypto_stream_xor($stream, $nonce, $key);
31 $stream6 = sodium_crypto_stream_xor($stream5, $nonce, $key);
36 sodium_crypto_stream($len, substr($nonce, 1), $key);
H A Dcrypto_secretbox.phpt7 $nonce = random_bytes(SODIUM_CRYPTO_SECRETBOX_NONCEBYTES);
10 $a = sodium_crypto_secretbox('test', $nonce, $key);
11 $x = sodium_crypto_secretbox_open($a, $nonce, $key);
13 $y = sodium_crypto_secretbox_open("\0" . $a, $nonce, $key);
17 sodium_crypto_secretbox('test', substr($nonce, 1), $key);
/PHP-8.0/ext/sodium/
H A Dlibsodium.stub.php8 …ad_aes256gcm_decrypt(string $ciphertext, string $additional_data, string $nonce, string $key): str… argument
10 …_aead_aes256gcm_encrypt(string $message, string $additional_data, string $nonce, string $key): str… argument
15 …ha20poly1305_decrypt(string $ciphertext, string $additional_data, string $nonce, string $key): str… argument
17 …hacha20poly1305_encrypt(string $message, string $additional_data, string $nonce, string $key): str… argument
23 …20poly1305_ietf_encrypt(string $message, string $additional_data, string $nonce, string $key): str… argument
41 function sodium_crypto_box(string $message, string $nonce, string $key_pair): string {} argument
49 function sodium_crypto_box_open(string $ciphertext, string $nonce, string $key_pair): string|false … argument
109 function sodium_crypto_secretbox(string $message, string $nonce, string $key): string {} argument
113 function sodium_crypto_secretbox_open(string $ciphertext, string $nonce, string $key): string|false… argument
157 function sodium_crypto_stream(int $length, string $nonce, string $key): string {} argument
[all …]
H A Dlibsodium_arginfo.h11 ZEND_ARG_TYPE_INFO(0, nonce, IS_STRING, 0)
20 ZEND_ARG_TYPE_INFO(0, nonce, IS_STRING, 0)
33 ZEND_ARG_TYPE_INFO(0, nonce, IS_STRING, 0)
40 ZEND_ARG_TYPE_INFO(0, nonce, IS_STRING, 0)
57 ZEND_ARG_TYPE_INFO(0, nonce, IS_STRING, 0)
71 ZEND_ARG_TYPE_INFO(0, nonce, IS_STRING, 0)
91 ZEND_ARG_TYPE_INFO(0, nonce, IS_STRING, 0)
108 ZEND_ARG_TYPE_INFO(0, nonce, IS_STRING, 0)
248 ZEND_ARG_TYPE_INFO(0, nonce, IS_STRING, 0)
256 ZEND_ARG_TYPE_INFO(0, nonce, IS_STRING, 0)
[all …]
H A Dlibsodium.c507 unsigned char *nonce; in PHP_FUNCTION() local
514 &nonce, &nonce_len, in PHP_FUNCTION()
534 nonce, key) != 0) { in PHP_FUNCTION()
549 unsigned char *nonce; in PHP_FUNCTION() local
556 &nonce, &nonce_len, in PHP_FUNCTION()
917 unsigned char *nonce; in PHP_FUNCTION() local
926 &nonce, &nonce_len, in PHP_FUNCTION()
963 unsigned char *nonce; in PHP_FUNCTION() local
972 &nonce, &nonce_len, in PHP_FUNCTION()
1396 unsigned char *nonce; in PHP_FUNCTION() local
[all …]
/PHP-8.0/sapi/cli/tests/
H A Dphp_cli_server_007.phpt10 php_cli_server_start('header(\'WWW-Authenticate: Digest realm="foo",qop="auth",nonce="XXXXX",opaque…
35 WWW-Authenticate: Digest realm="foo",qop="auth",nonce="XXXXX",opaque="acbd18db4cc2f85cedef654fccc4a…
H A Dphp_cli_server_021.phpt18 Authorization: digest username="Mufasa", realm="testrealm@host.com", nonce="dcd98b7102dd2f0e8b11d0f…
37 string(242) "username="Mufasa", realm="testrealm@host.com", nonce="dcd98b7102dd2f0e8b11d0f600bfb0c0…
/PHP-8.0/ext/soap/
H A Dphp_http.c668 unsigned char nonce[16]; in make_http_soap_request() local
672 if (UNEXPECTED(php_random_bytes_throw(&nonce, sizeof(nonce)) != SUCCESS)) { in make_http_soap_request()
683 php_hash_bin2hex(cnonce, nonce, sizeof(nonce)); in make_http_soap_request()

Completed in 31 milliseconds