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

◆ Extract() [1/3]

static byte[] System.Security.Cryptography.HKDF.Extract ( HashAlgorithmName hashAlgorithmName,
byte[] ikm,
byte?[] salt = null )
inlinestatic

Definition at line 8 of file HKDF.cs.

9 {
10 if (ikm == null)
11 {
12 throw new ArgumentNullException("ikm");
13 }
14 int num = HashLength(hashAlgorithmName);
15 byte[] array = new byte[num];
16 Extract(hashAlgorithmName, num, ikm, salt, array);
17 return array;
18 }
static int HashLength(HashAlgorithmName hashAlgorithmName)
Definition HKDF.cs:183
static byte[] Extract(HashAlgorithmName hashAlgorithmName, byte[] ikm, byte[]? salt=null)
Definition HKDF.cs:8

References System.array, System.Security.Cryptography.HKDF.Extract(), and System.Security.Cryptography.HKDF.HashLength().

Referenced by System.Security.Cryptography.HKDF.DeriveKey(), System.Security.Cryptography.HKDF.DeriveKey(), System.Security.Cryptography.HKDF.Extract(), and System.Security.Cryptography.HKDF.Extract().