Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Encrypt() [1/2]

void System.Security.Cryptography.ChaCha20Poly1305.Encrypt ( byte[] nonce,
byte[] plaintext,
byte[] ciphertext,
byte[] tag,
byte?[] associatedData = null )
inline

Definition at line 43 of file ChaCha20Poly1305.cs.

44 {
45 AeadCommon.CheckArgumentsForNull(nonce, plaintext, ciphertext, tag);
46 Encrypt((ReadOnlySpan<byte>)nonce, (ReadOnlySpan<byte>)plaintext, (Span<byte>)ciphertext, (Span<byte>)tag, (ReadOnlySpan<byte>)associatedData);
47 }
void Encrypt(byte[] nonce, byte[] plaintext, byte[] ciphertext, byte[] tag, byte[]? associatedData=null)

References System.Security.Cryptography.AeadCommon.CheckArgumentsForNull(), and System.Security.Cryptography.ChaCha20Poly1305.Encrypt().

Referenced by System.Security.Cryptography.ChaCha20Poly1305.Encrypt().