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

◆ CheckKeySize()

static void System.Security.Cryptography.AesAEAD.CheckKeySize ( int keySizeInBytes)
inlinestatic

Definition at line 5 of file AesAEAD.cs.

6 {
7 if (keySizeInBytes != 16 && keySizeInBytes != 24 && keySizeInBytes != 32)
8 {
9 throw new CryptographicException(System.SR.Cryptography_InvalidKeySize);
10 }
11 }
static string Cryptography_InvalidKeySize
Definition SR.cs:92
Definition SR.cs:7

References System.SR.Cryptography_InvalidKeySize.

Referenced by System.Security.Cryptography.AesCcm.AesCcm(), System.Security.Cryptography.AesCcm.AesCcm(), System.Security.Cryptography.AesGcm.AesGcm(), and System.Security.Cryptography.AesGcm.AesGcm().