Lines Matching refs:nonce
9 $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);
64 sodium_crypto_stream_xchacha20($len, $nonce, substr($key, 1));
69 sodium_crypto_stream_xchacha20_xor($stream, substr($nonce, 1), $key);
74 sodium_crypto_stream_xchacha20_xor($stream, $nonce, substr($key, 1));
93 sodium_crypto_stream_xchacha20(): Argument #2 ($nonce) must be SODIUM_CRYPTO_STREAM_XCHACHA20_NONCE…
95 sodium_crypto_stream_xchacha20_xor(): Argument #2 ($nonce) must be SODIUM_CRYPTO_STREAM_XCHACHA20_N…