Lines Matching refs:msg
12 $msg = random_bytes(random_int(1, 1000));
17 $ciphertext = sodium_crypto_aead_chacha20poly1305_encrypt($msg, $ad, $nonce, $key);
19 var_dump($ciphertext !== $msg);
20 var_dump($msg === $msg2);
35 $msg = random_bytes(random_int(1, 1000));
40 $ciphertext = sodium_crypto_aead_chacha20poly1305_ietf_encrypt($msg, $ad, $nonce, $key);
42 var_dump($ciphertext !== $msg);
43 var_dump($msg === $msg2);
64 $msg = random_bytes(random_int(1, 1000));
69 $ciphertext = sodium_crypto_aead_xchacha20poly1305_ietf_encrypt($msg, $ad, $nonce, $key);
71 var_dump($ciphertext !== $msg);
72 var_dump($msg === $msg2);
91 $msg = random_bytes(random_int(1, 1000));
95 $ciphertext = sodium_crypto_aead_aes256gcm_encrypt($msg, $ad, $nonce, $key);
97 var_dump($ciphertext !== $msg);
98 var_dump($msg === $msg2);