CryptoSys API Library Manual
cipherKeyUnwrap
Unwraps (decrypts) key material with a key-encryption key.
Syntax
[VBA]
Public Function cipherKeyUnwrap ( _
lpData() As Byte, _
lpKek() As Byte, _
nOptions As Long _
) As Byte()
Parameters
- lpData
- Wrapped key.
- lpKek
- Key encryption key.
- nOptions
- Algorithm to be used. Select one from:
API_BC_AES128
API_BC_AES192
API_BC_AES256
API_BC_3DES
Return Value
Byte(): Unwrapped key material (or empty array on error).