CryptoSys PKI Pro Manual

Pbe.Kdf2 Method (Int32, Byte[], Byte[], Int32, HashAlgorithm)

Derive a key of any length from a password using the PBKDF2 algorithm from PKCS #5 v2.1.

Syntax

[C#]
public static byte[] Kdf2(
	int dkLen,
	byte[] pwdBytes,
	byte[] salt,
	int count,
	HashAlgorithm hashAlg
)
[VB.NET]
Public Shared Function Kdf2 ( _
	dkLen As Integer, _
	pwdBytes As Byte(), _
	salt As Byte(), _
	count As Integer, _
	hashAlg As HashAlgorithm _
) As Byte()

Parameters

dkLen
Required length of key in bytes
pwdBytes
Password in byte format
salt
Salt in byte format
count
Iteration count
hashAlg
Type: HashAlgorithm
Hash algorithm to use in HMAC PRF (default is SHA-1)

Return Value

Key in byte[] format

See Also

VB6/C equivalent: PBE_Kdf2

[Contents] [Index]

[PREV: Ocsp.ReadResponse Method...]   [Contents]   [Index]   
   [NEXT: Pbe.Kdf2 Method (Int32, String, String, Int32, HashAlgorithm)...]

Copyright © 2004-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-09-23T07:52:09Z.