CryptoSys API Library Manual
cipherKeyWrap
Wraps (encrypts) key material with a key-encryption key.
Syntax
[VBA]
Public Function cipherKeyWrap ( _
lpData() As Byte, _
lpKek() As Byte, _
nOptions As Long _
) As Byte()
Parameters
- lpData
- Key material to be wrapped.
- 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(): Wrapped key (or empty array on error).