public static function ParagonIE_Sodium_Core_ChaCha20::streamXorIc in Automatic Updates 8
Same name and namespace in other branches
- 7 vendor/paragonie/sodium_compat/src/Core/ChaCha20.php \ParagonIE_Sodium_Core_ChaCha20::streamXorIc()
@internal You should not use this directly from another application
Parameters
string $message:
string $nonce:
string $key:
string $ic:
Return value
string
Throws
SodiumException
TypeError
4 calls to ParagonIE_Sodium_Core_ChaCha20::streamXorIc()
- ParagonIE_Sodium_Crypto::aead_chacha20poly1305_decrypt in vendor/
paragonie/ sodium_compat/ src/ Crypto.php - AEAD Decryption with ChaCha20-Poly1305
- ParagonIE_Sodium_Crypto::aead_chacha20poly1305_encrypt in vendor/
paragonie/ sodium_compat/ src/ Crypto.php - AEAD Encryption with ChaCha20-Poly1305
- ParagonIE_Sodium_Crypto::secretbox_xchacha20poly1305 in vendor/
paragonie/ sodium_compat/ src/ Crypto.php - XChaCha20-Poly1305 authenticated symmetric-key encryption.
- ParagonIE_Sodium_Crypto::secretbox_xchacha20poly1305_open in vendor/
paragonie/ sodium_compat/ src/ Crypto.php - Decrypt a ciphertext generated via secretbox_xchacha20poly1305().
1 method overrides ParagonIE_Sodium_Core_ChaCha20::streamXorIc()
- ParagonIE_Sodium_Core_XChaCha20::streamXorIc in vendor/
paragonie/ sodium_compat/ src/ Core/ XChaCha20.php - @internal You should not use this directly from another application
File
- vendor/
paragonie/ sodium_compat/ src/ Core/ ChaCha20.php, line 388
Class
- ParagonIE_Sodium_Core_ChaCha20
- Class ParagonIE_Sodium_Core_ChaCha20
Code
public static function streamXorIc($message, $nonce = '', $key = '', $ic = '') {
return self::encryptBytes(new ParagonIE_Sodium_Core_ChaCha20_Ctx($key, $nonce, $ic), $message);
}