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

◆ Fill()

static void Internal.Cryptography.Pbkdf2Implementation.Fill ( ReadOnlySpan< byte > password,
ReadOnlySpan< byte > salt,
int iterations,
HashAlgorithmName hashAlgorithmName,
Span< byte > destination )
inlinestatic

Definition at line 15 of file Pbkdf2Implementation.cs.

16 {
18 {
19 FillKeyDerivation(password, salt, iterations, hashAlgorithmName.Name, destination);
20 }
21 else
22 {
23 FillDeriveKeyPBKDF2(password, salt, iterations, hashAlgorithmName.Name, destination);
24 }
25 }
static unsafe void FillDeriveKeyPBKDF2(ReadOnlySpan< byte > password, ReadOnlySpan< byte > salt, int iterations, string hashAlgorithmName, Span< byte > destination)
static unsafe void FillKeyDerivation(ReadOnlySpan< byte > password, ReadOnlySpan< byte > salt, int iterations, string hashAlgorithmName, Span< byte > destination)

References System.destination, Internal.Cryptography.Pbkdf2Implementation.FillDeriveKeyPBKDF2(), Internal.Cryptography.Pbkdf2Implementation.FillKeyDerivation(), System.Security.Cryptography.HashAlgorithmName.Name, and Internal.Cryptography.Pbkdf2Implementation.s_useKeyDerivation.

Referenced by System.Security.Cryptography.Rfc2898DeriveBytes.Pbkdf2Core(), and System.Security.Cryptography.Rfc2898DeriveBytes.Pbkdf2Core().