Kdf.Bytes Method
Generate a key-encryption key (KEK) from input keying material (IKM) using a key derivation function (KDF).
Syntax
[C#]
public static byte[] Bytes(
int dkLen,
byte[] ikm,
Kdf.KdfAlg kdfAlg,
Kdf.HashAlg hashAlg,
byte[] sharedInfo,
string paramString
)
[VB.NET]
Public Shared Function Bytes ( _
dkLen As Integer, _
ikm As Byte(), _
kdfAlg As Kdf.KdfAlg, _
hashAlg As Kdf.HashAlg, _
sharedInfo As Byte(), _
paramString As String _
) As Byte()
Parameters
- dkLen
- Required length of output key material in bytes.
- ikm
- Input key material/shared secret.
- kdfAlg
- Type: Kdf.KdfAlg
Key derivation function to use.
- hashAlg
- Type: Kdf.HashAlg
Hash algorithm to use with the key derivation function (default is SHA-1)
- sharedInfo
- SharedInfo (optional)
- paramString
- Optional parameters. Set as "" for defaults. Pass attribute-value salt=<hex-digits> to set the optional salt parameter for the HKDF algorithm, e.g. "salt=606162636465666768696a6b6c6d6e6f;"
Return Value
Output key material (KEK).
See Also
VB6/C equivalent: KDF_Bytes
[Contents] [Index]