Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Security.Cryptography.Rfc2898DeriveBytes Class Reference

Public Member Functions

 Rfc2898DeriveBytes (byte[] password, byte[] salt, int iterations)
 
 Rfc2898DeriveBytes (byte[] password, byte[] salt, int iterations, HashAlgorithmName hashAlgorithm)
 
 Rfc2898DeriveBytes (string password, byte[] salt)
 
 Rfc2898DeriveBytes (string password, byte[] salt, int iterations)
 
 Rfc2898DeriveBytes (string password, byte[] salt, int iterations, HashAlgorithmName hashAlgorithm)
 
 Rfc2898DeriveBytes (string password, int saltSize)
 
 Rfc2898DeriveBytes (string password, int saltSize, int iterations)
 
 Rfc2898DeriveBytes (string password, int saltSize, int iterations, HashAlgorithmName hashAlgorithm)
 
override byte[] GetBytes (int cb)
 
byte[] CryptDeriveKey (string algname, string alghashname, int keySize, byte[] rgbIV)
 
override void Reset ()
 
void Dispose ()
 

Static Public Member Functions

static byte[] Pbkdf2 (byte[] password, byte[] salt, int iterations, HashAlgorithmName hashAlgorithm, int outputLength)
 
static byte[] Pbkdf2 (ReadOnlySpan< byte > password, ReadOnlySpan< byte > salt, int iterations, HashAlgorithmName hashAlgorithm, int outputLength)
 
static void Pbkdf2 (ReadOnlySpan< byte > password, ReadOnlySpan< byte > salt, Span< byte > destination, int iterations, HashAlgorithmName hashAlgorithm)
 
static byte[] Pbkdf2 (string password, byte[] salt, int iterations, HashAlgorithmName hashAlgorithm, int outputLength)
 
static byte[] Pbkdf2 (ReadOnlySpan< char > password, ReadOnlySpan< byte > salt, int iterations, HashAlgorithmName hashAlgorithm, int outputLength)
 
static void Pbkdf2 (ReadOnlySpan< char > password, ReadOnlySpan< byte > salt, Span< byte > destination, int iterations, HashAlgorithmName hashAlgorithm)
 

Protected Member Functions

override void Dispose (bool disposing)
 

Package Functions

 Rfc2898DeriveBytes (byte[] password, byte[] salt, int iterations, HashAlgorithmName hashAlgorithm, bool clearPassword)
 

Properties

HashAlgorithmName HashAlgorithm [get]
 
int IterationCount [get, set]
 
byte[] Salt [get, set]
 

Private Member Functions

HMAC OpenHmac (byte[] password)
 
void Initialize ()
 
void Func ()
 

Static Private Member Functions

static void Pbkdf2Core (ReadOnlySpan< char > password, ReadOnlySpan< byte > salt, Span< byte > destination, int iterations, HashAlgorithmName hashAlgorithm)
 
static void Pbkdf2Core (ReadOnlySpan< byte > password, ReadOnlySpan< byte > salt, Span< byte > destination, int iterations, HashAlgorithmName hashAlgorithm)
 
static void ValidateHashAlgorithm (HashAlgorithmName hashAlgorithm)
 

Private Attributes

byte[] _salt
 
uint _iterations
 
HMAC _hmac
 
readonly int _blockSize
 
byte[] _buffer
 
uint _block
 
int _startIndex
 
int _endIndex
 

Static Private Attributes

static readonly Encoding s_throwingUtf8Encoding = new UTF8Encoding(encoderShouldEmitUTF8Identifier: false, throwOnInvalidBytes: true)
 

Detailed Description

Definition at line 10 of file Rfc2898DeriveBytes.cs.


The documentation for this class was generated from the following file: