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

◆ CheckArgumentsForNull()

static void System.Security.Cryptography.AeadCommon.CheckArgumentsForNull ( byte[] nonce,
byte[] plaintext,
byte[] ciphertext,
byte[] tag )
inlinestatic

Definition at line 9 of file AeadCommon.cs.

10 {
11 if (nonce == null)
12 {
13 throw new ArgumentNullException("nonce");
14 }
15 if (plaintext == null)
16 {
17 throw new ArgumentNullException("plaintext");
18 }
19 if (ciphertext == null)
20 {
21 throw new ArgumentNullException("ciphertext");
22 }
23 if (tag == null)
24 {
25 throw new ArgumentNullException("tag");
26 }
27 }

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