CryptoSys PKI Pro Manual

pbeKdf2

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

Syntax

[VBA]
Public Function pbeKdf2 ( _
    dkBytes As Long, _
    lpPwd() As Byte, _
    lpSalt() As Byte, _
    nCount As Long, _
    Optional nOptions As Long = 0 _
) As Byte()

Parameters

dkBytes
Required length of key in bytes.
lpPwd
Password encoded as byte array.
lpSalt
Salt in a byte array.
nCount
Iteration count.
nOptions
Hash algorithm to use in HMAC PRF. Select one from:
PKI_HMAC_SHA1
PKI_HMAC_SHA224
PKI_HMAC_SHA256
PKI_HMAC_SHA384
PKI_HMAC_SHA512
PKI_HMAC_MD5

Return Value

Byte(): Key in byte array.
[PREV: padUnpadHex...]   [Contents]   [Index]   
   [NEXT: pbeKdf2Hex...]

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