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

◆ GetHashBlockSize()

static int Internal.Cryptography.Pbkdf2Implementation.GetHashBlockSize ( string hashAlgorithmName)
inlinestaticprivate

Definition at line 157 of file Pbkdf2Implementation.cs.

158 {
159 switch (hashAlgorithmName)
160 {
161 case "SHA1":
162 case "SHA256":
163 return 64;
164 case "SHA384":
165 case "SHA512":
166 return 128;
167 default:
168 throw new CryptographicException();
169 }
170 }

Referenced by Internal.Cryptography.Pbkdf2Implementation.FillKeyDerivation().