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

◆ Expand() [3/3]

static void System.Security.Cryptography.HKDF.Expand ( HashAlgorithmName hashAlgorithmName,
ReadOnlySpan< byte > prk,
Span< byte > output,
ReadOnlySpan< byte > info )
inlinestatic

Definition at line 61 of file HKDF.cs.

62 {
63 int num = HashLength(hashAlgorithmName);
64 if (output.Length == 0)
65 {
67 }
68 int num2 = 255 * num;
69 if (output.Length > num2)
70 {
72 }
73 Expand(hashAlgorithmName, num, prk, output, info);
74 }
static string Argument_DestinationTooShort
Definition SR.cs:14
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string Cryptography_Okm_TooLarge
Definition SR.cs:172
Definition SR.cs:7
static int HashLength(HashAlgorithmName hashAlgorithmName)
Definition HKDF.cs:183
static byte[] Expand(HashAlgorithmName hashAlgorithmName, byte[] prk, int outputLength, byte[]? info=null)
Definition HKDF.cs:40
int Length
Definition Span.cs:70

References System.SR.Argument_DestinationTooShort, System.SR.Cryptography_Okm_TooLarge, System.Security.Cryptography.HKDF.Expand(), System.SR.Format(), System.Security.Cryptography.HKDF.HashLength(), System.info, and System.Span< T >.Length.