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

◆ Encrypt() [2/2]

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

Definition at line 47 of file AesCcm.cs.

48 {
49 CheckParameters(plaintext, ciphertext, nonce, tag);
50 EncryptCore(nonce, plaintext, ciphertext, tag, associatedData);
51 }
static void CheckParameters(ReadOnlySpan< byte > plaintext, ReadOnlySpan< byte > ciphertext, ReadOnlySpan< byte > nonce, ReadOnlySpan< byte > tag)
Definition AesCcm.cs:65
void EncryptCore(ReadOnlySpan< byte > nonce, ReadOnlySpan< byte > plaintext, Span< byte > ciphertext, Span< byte > tag, ReadOnlySpan< byte > associatedData=default(ReadOnlySpan< byte >))
Definition AesCcm.cs:94

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