CryptoSys API Library Manual
aeadSetNonce
Set the nonce for the AEAD context (in incremental mode).
Syntax
[VBA]
Public Function aeadSetNonce ( _
hContext As Long, _
lpNonce() As Byte _
) As Long
Parameters
- hContext
- Handle to the AEAD context set up by an earlier call to aeadInitKey.
- lpNonce
- Nonce of exact length required for given algorithm (currently always 12 bytes).
Return Value
Long: Zero (0) on success, or a nonzero error code (use
apiErrorLookup to check).