C# Class PerplexMail.SecurityDrivenDotNet.PBKDF2

Inheritance: System.Security.Cryptography.DeriveBytes
Mostra file Open project: PerplexInternetmarketing/PerplexMail-for-Umbraco

Public Methods

Method Description
GetBytes ( int cb ) : byte[]

Returns pseudo-random bytes.

Initialize ( ) : void
PBKDF2 ( Func hmacFactory, byte password, byte salt, int iterations ) : System

ctor

PBKDF2 ( Func hmacFactory, string password, byte salt ) : System

ctor

PBKDF2 ( Func hmacFactory, string password, byte salt, int iterations ) : System

ctor

PBKDF2 ( Func hmacFactory, string password, int saltSize ) : System

ctor

PBKDF2 ( Func hmacFactory, string password, int saltSize, int iterations ) : System

ctor

Reset ( ) : void

Resets the state.

This method is automatically called if the salt or iteration count is modified.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases the unmanaged resources used, and optionally releases the managed resources.

Private Methods

Method Description
Func ( ) : byte[]
Int2 ( uint i ) : byte[]

Method Details

Dispose() protected method

Releases the unmanaged resources used, and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only managed resources.
return void

GetBytes() public method

Returns pseudo-random bytes.
public GetBytes ( int cb ) : byte[]
cb int The number of pseudo-random bytes to generate.
return byte[]

Initialize() public method

public Initialize ( ) : void
return void

PBKDF2() public method

ctor
public PBKDF2 ( Func hmacFactory, byte password, byte salt, int iterations ) : System
hmacFactory Func
password byte
salt byte
iterations int
return System

PBKDF2() public method

ctor
public PBKDF2 ( Func hmacFactory, string password, byte salt ) : System
hmacFactory Func
password string password
salt byte salt
return System

PBKDF2() public method

ctor
public PBKDF2 ( Func hmacFactory, string password, byte salt, int iterations ) : System
hmacFactory Func
password string password
salt byte salt
iterations int iterations
return System

PBKDF2() public method

ctor
public PBKDF2 ( Func hmacFactory, string password, int saltSize ) : System
hmacFactory Func
password string password
saltSize int saltSize
return System

PBKDF2() public method

ctor
public PBKDF2 ( Func hmacFactory, string password, int saltSize, int iterations ) : System
hmacFactory Func
password string password
saltSize int saltSize
iterations int iterations
return System

Reset() public method

Resets the state.
This method is automatically called if the salt or iteration count is modified.
public Reset ( ) : void
return void