Home
last modified time | relevance | path

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

/php-src/ext/sodium/tests/
H A Dcrypto_aead.phpt16 $nonce = random_bytes(SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_NPUBBYTES);
20 $ciphertext = sodium_crypto_aead_chacha20poly1305_encrypt($msg, $ad, $nonce, $key);
21 $msg2 = sodium_crypto_aead_chacha20poly1305_decrypt($ciphertext, $ad, $nonce, $key);
39 $nonce = random_bytes(SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES);
68 $nonce = random_bytes(SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES);
95 $nonce = random_bytes(SODIUM_CRYPTO_AEAD_AES256GCM_NPUBBYTES);
98 $ciphertext = sodium_crypto_aead_aes256gcm_encrypt($msg, $ad, $nonce, $key);
121 $nonce = random_bytes(SODIUM_CRYPTO_AEAD_AEGIS128L_NPUBBYTES);
124 $ciphertext = sodium_crypto_aead_aegis128l_encrypt($msg, $ad, $nonce, $key);
147 $nonce = random_bytes(SODIUM_CRYPTO_AEAD_AEGIS256_NPUBBYTES);
[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_stream_xchacha20.phpt9 $nonce = random_bytes(SODIUM_CRYPTO_STREAM_XCHACHA20_NONCEBYTES);
13 $stream = sodium_crypto_stream_xchacha20($len, $nonce, $key);
16 $stream2 = sodium_crypto_stream_xchacha20($len, $nonce, $key);
18 $nonce = random_bytes(SODIUM_CRYPTO_STREAM_XCHACHA20_NONCEBYTES);
19 $stream3 = sodium_crypto_stream_xchacha20($len, $nonce, $key);
22 $stream4 = sodium_crypto_stream_xchacha20($len, $nonce, $key);
31 $stream5 = sodium_crypto_stream_xchacha20_xor($stream, $nonce, $key);
33 $stream6 = sodium_crypto_stream_xchacha20_xor($stream5, $nonce, $key);
54 sodium_crypto_stream_xchacha20(-1, $nonce, $key);
59 sodium_crypto_stream_xchacha20($len, substr($nonce, 1), $key);
[all …]
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-src/ext/sodium/
H A Dlibsodium.stub.php549 …ad_aes256gcm_decrypt(string $ciphertext, string $additional_data, string $nonce, #[\SensitiveParam… argument
557 …ad_aegis128l_decrypt(string $ciphertext, string $additional_data, string $nonce, #[\SensitiveParam…
565 …ead_aegis256_decrypt(string $ciphertext, string $additional_data, string $nonce, #[\SensitiveParam…
572 …ha20poly1305_decrypt(string $ciphertext, string $additional_data, string $nonce, #[\SensitiveParam…
578 …oly1305_ietf_decrypt(string $ciphertext, string $additional_data, string $nonce, #[\SensitiveParam…
585 …oly1305_ietf_decrypt(string $ciphertext, string $additional_data, string $nonce, #[\SensitiveParam…
606 function sodium_crypto_box_open(string $ciphertext, string $nonce, #[\SensitiveParameter] string $k…
711 function sodium_crypto_secretbox_open(string $ciphertext, string $nonce, #[\SensitiveParameter] str…
759 function sodium_crypto_stream(int $length, string $nonce, #[\SensitiveParameter] string $key): stri…
766 function sodium_crypto_stream_xchacha20(int $length, string $nonce, #[\SensitiveParameter] string $…
H A Dlibsodium_arginfo.h11 ZEND_ARG_TYPE_INFO(0, nonce, IS_STRING, 0)
18 ZEND_ARG_TYPE_INFO(0, nonce, IS_STRING, 0)
30 ZEND_ARG_TYPE_INFO(0, nonce, IS_STRING, 0)
37 ZEND_ARG_TYPE_INFO(0, nonce, IS_STRING, 0)
49 ZEND_ARG_TYPE_INFO(0, nonce, IS_STRING, 0)
56 ZEND_ARG_TYPE_INFO(0, nonce, IS_STRING, 0)
67 ZEND_ARG_TYPE_INFO(0, nonce, IS_STRING, 0)
74 ZEND_ARG_TYPE_INFO(0, nonce, IS_STRING, 0)
91 ZEND_ARG_TYPE_INFO(0, nonce, IS_STRING, 0)
101 ZEND_ARG_TYPE_INFO(0, nonce, IS_STRING, 0)
[all …]
H A Dlibsodium.c323 unsigned char *nonce; in PHP_FUNCTION() local
330 &nonce, &nonce_len, in PHP_FUNCTION()
350 nonce, key) != 0) { in PHP_FUNCTION()
365 unsigned char *nonce; in PHP_FUNCTION() local
733 unsigned char *nonce; in PHP_FUNCTION() local
779 unsigned char *nonce; in PHP_FUNCTION() local
1213 unsigned char *nonce; in PHP_FUNCTION() local
1254 unsigned char *nonce; in PHP_FUNCTION() local
1293 unsigned char *nonce; in PHP_FUNCTION() local
1334 unsigned char *nonce; in PHP_FUNCTION() local
[all …]
/php-src/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-src/ext/soap/tests/bugs/
H A Dbug55639.phpt28 header('WWW-Authenticate: Digest realm="realm", qop="auth,auth-int", nonce="aaaaaaaaaaaaaaaaaaaaaaa…
63 Authorization: Digest username="user", realm="realm", nonce="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", u…
/php-src/ext/soap/
H A Dphp_http.c682 unsigned char nonce[16]; in make_http_soap_request() local
686 if (UNEXPECTED(php_random_bytes_throw(&nonce, sizeof(nonce)) != SUCCESS)) { in make_http_soap_request()
698 php_hash_bin2hex(cnonce, nonce, sizeof(nonce)); in make_http_soap_request()

Completed in 31 milliseconds