Pbkdf2.ComputeDerivedKey Method

CryptSharp

Pbkdf2ComputeDerivedKey Method CryptSharp
Computes a derived key.

Namespace: CryptSharp.Utility
Assembly: CryptSharp (in CryptSharp.dll) Version: 2.1.0.0
Syntax

public static byte[] ComputeDerivedKey(
	KeyedHashAlgorithm hmacAlgorithm,
	byte[] salt,
	int iterations,
	int derivedKeyLength
)
Public Shared Function ComputeDerivedKey ( 
	hmacAlgorithm As KeyedHashAlgorithm,
	salt As Byte(),
	iterations As Integer,
	derivedKeyLength As Integer
) As Byte()
public:
static array<unsigned char>^ ComputeDerivedKey(
	KeyedHashAlgorithm^ hmacAlgorithm, 
	array<unsigned char>^ salt, 
	int iterations, 
	int derivedKeyLength
)
static member ComputeDerivedKey : 
        hmacAlgorithm : KeyedHashAlgorithm * 
        salt : byte[] * 
        iterations : int * 
        derivedKeyLength : int -> byte[] 

Parameters

hmacAlgorithm
Type: System.Security.CryptographyKeyedHashAlgorithm
The HMAC algorithm to use, for example HMACSHA256. Make sure to set Key.
salt
Type: SystemByte
The salt. A unique salt means a unique derived key, even if the original key is identical.
iterations
Type: SystemInt32
The number of iterations to apply.
derivedKeyLength
Type: SystemInt32
The desired length of the derived key.

Return Value

Type: Byte
The derived key.
See Also

Reference