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

◆ CheckKeySize()

static void System.Security.Cryptography.ChaCha20Poly1305.CheckKeySize ( int keySizeInBytes)
inlinestaticprivate

Definition at line 35 of file ChaCha20Poly1305.cs.

36 {
37 if (keySizeInBytes != 32)
38 {
39 throw new CryptographicException(System.SR.Cryptography_InvalidKeySize);
40 }
41 }
static string Cryptography_InvalidKeySize
Definition SR.cs:92
Definition SR.cs:7

References System.SR.Cryptography_InvalidKeySize.

Referenced by System.Security.Cryptography.ChaCha20Poly1305.ChaCha20Poly1305(), and System.Security.Cryptography.ChaCha20Poly1305.ChaCha20Poly1305().