You are here

public static function ParagonIE_Sodium_Core32_ChaCha20::ietfStreamXorIc in Automatic Updates 7

Same name and namespace in other branches
  1. 8 vendor/paragonie/sodium_compat/src/Core32/ChaCha20.php \ParagonIE_Sodium_Core32_ChaCha20::ietfStreamXorIc()

@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

5 calls to ParagonIE_Sodium_Core32_ChaCha20::ietfStreamXorIc()
ParagonIE_Sodium_Crypto32::aead_chacha20poly1305_ietf_decrypt in vendor/paragonie/sodium_compat/src/Crypto32.php
AEAD Decryption with ChaCha20-Poly1305, IETF mode (96-bit nonce)
ParagonIE_Sodium_Crypto32::aead_chacha20poly1305_ietf_encrypt in vendor/paragonie/sodium_compat/src/Crypto32.php
AEAD Encryption with ChaCha20-Poly1305, IETF mode (96-bit nonce)
ParagonIE_Sodium_Crypto32::secretstream_xchacha20poly1305_pull in vendor/paragonie/sodium_compat/src/Crypto32.php
ParagonIE_Sodium_Crypto32::secretstream_xchacha20poly1305_push in vendor/paragonie/sodium_compat/src/Crypto32.php
ParagonIE_Sodium_Crypto32::secretstream_xchacha20poly1305_rekey in vendor/paragonie/sodium_compat/src/Crypto32.php

File

vendor/paragonie/sodium_compat/src/Core32/ChaCha20.php, line 374

Class

ParagonIE_Sodium_Core32_ChaCha20
Class ParagonIE_Sodium_Core32_ChaCha20

Code

public static function ietfStreamXorIc($message, $nonce = '', $key = '', $ic = '') {
  return self::encryptBytes(new ParagonIE_Sodium_Core32_ChaCha20_IetfCtx($key, $nonce, $ic), $message);
}