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

◆ Encrypt() [2/2]

void System.Security.Cryptography.ChaCha20Poly1305.Encrypt ( ReadOnlySpan< byte > nonce,
ReadOnlySpan< byte > plaintext,
Span< byte > ciphertext,
Span< byte > tag,
ReadOnlySpan< byte > associatedData = default(ReadOnlySpan<byte>) )
inline

Definition at line 49 of file ChaCha20Poly1305.cs.

50 {
51 CheckParameters(plaintext, ciphertext, nonce, tag);
52 EncryptCore(nonce, plaintext, ciphertext, tag, associatedData);
53 }
void EncryptCore(ReadOnlySpan< byte > nonce, ReadOnlySpan< byte > plaintext, Span< byte > ciphertext, Span< byte > tag, ReadOnlySpan< byte > associatedData=default(ReadOnlySpan< byte >))
static void CheckParameters(ReadOnlySpan< byte > plaintext, ReadOnlySpan< byte > ciphertext, ReadOnlySpan< byte > nonce, ReadOnlySpan< byte > tag)

References System.Security.Cryptography.ChaCha20Poly1305.CheckParameters(), and System.Security.Cryptography.ChaCha20Poly1305.EncryptCore().