CryptoSys API Library Manual
aeadInitKey
Initialize the AEAD context with the key and algorithm ready for repeated incremental operations.
Syntax
[VBA]
Public Function aeadInitKey ( _
lpKey() As Byte, _
nOptions As Long _
) As Long
Parameters
- lpKey
- Key of exact length for algorithm (16 or 32 bytes).
- nOptions
- Algorithm to be used. Select one from
API_AEAD_AES_128_GCM
API_AEAD_AES_256_GCM
API_AEAD_CHACHA20_POLY1305
Return Value
Long: Nonzero handle of the AEAD context, or zero if an error occurs.