Searched refs:nonce (Results 1 – 6 of 6) sorted by relevance
/PHP-7.2/ext/sodium/tests/ |
H A D | crypto_aead.phpt | 13 $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 D | crypto_stream.phpt | 7 $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 D | crypto_secretbox.phpt | 7 $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-7.2/sapi/cli/tests/ |
H A D | php_cli_server_007.phpt | 10 php_cli_server_start('header(\'WWW-Authenticate: Digest realm="foo",qop="auth",nonce="XXXXX",opaque… 40 WWW-Authenticate: Digest realm="foo",qop="auth",nonce="XXXXX",opaque="acbd18db4cc2f85cedef654fccc4a…
|
/PHP-7.2/ext/sodium/ |
H A D | libsodium.c | 112 ZEND_ARG_INFO(0, nonce) 118 ZEND_ARG_INFO(0, nonce) 124 ZEND_ARG_INFO(0, nonce) 159 ZEND_ARG_INFO(0, nonce) 785 unsigned char *nonce; in PHP_FUNCTION() local 792 &nonce, &nonce_len, in PHP_FUNCTION() 831 unsigned char *nonce; in PHP_FUNCTION() local 1215 unsigned char *nonce; in PHP_FUNCTION() local 1265 unsigned char *nonce; in PHP_FUNCTION() local 1728 unsigned char *nonce; in PHP_FUNCTION() local [all …]
|
/PHP-7.2/ext/soap/ |
H A D | php_http.c | 668 zend_long nonce; in make_http_soap_request() local 672 php_random_bytes_throw(&nonce, sizeof(nonce)); in make_http_soap_request() 673 nonce &= 0x7fffffff; in make_http_soap_request() 676 snprintf(cnonce, sizeof(cnonce), ZEND_LONG_FMT, nonce); in make_http_soap_request()
|
Completed in 20 milliseconds