public static function ParagonIE_Sodium_Core_ChaCha20::ietfStream in Automatic Updates 7
Same name and namespace in other branches
- 8 vendor/paragonie/sodium_compat/src/Core/ChaCha20.php \ParagonIE_Sodium_Core_ChaCha20::ietfStream()
@internal You should not use this directly from another application
Parameters
int $len:
string $nonce:
string $key:
Return value
string
Throws
SodiumException
TypeError
4 calls to ParagonIE_Sodium_Core_ChaCha20::ietfStream()
- ParagonIE_Sodium_Crypto::aead_chacha20poly1305_ietf_decrypt in vendor/
paragonie/ sodium_compat/ src/ Crypto.php - AEAD Decryption with ChaCha20-Poly1305, IETF mode (96-bit nonce)
- ParagonIE_Sodium_Crypto::aead_chacha20poly1305_ietf_encrypt in vendor/
paragonie/ sodium_compat/ src/ Crypto.php - AEAD Encryption with ChaCha20-Poly1305, IETF mode (96-bit nonce)
- ParagonIE_Sodium_Crypto::secretstream_xchacha20poly1305_pull in vendor/
paragonie/ sodium_compat/ src/ Crypto.php - ParagonIE_Sodium_Crypto::secretstream_xchacha20poly1305_push in vendor/
paragonie/ sodium_compat/ src/ Crypto.php
1 method overrides ParagonIE_Sodium_Core_ChaCha20::ietfStream()
- ParagonIE_Sodium_Core_XChaCha20::ietfStream 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 350
Class
- ParagonIE_Sodium_Core_ChaCha20
- Class ParagonIE_Sodium_Core_ChaCha20
Code
public static function ietfStream($len, $nonce = '', $key = '') {
return self::encryptBytes(new ParagonIE_Sodium_Core_ChaCha20_IetfCtx($key, $nonce), str_repeat("\0", $len));
}