Encrypt data using specified AEAD algorithm in one-off operation. The authentication tag is appended to the output.
Public Function aeadEncryptWithTag ( _ lpData() As Byte, _ lpKey() As Byte, _ lpNonce() As Byte, _ lpAAD() As Byte, _ nOptions As Long _ ) As Byte()
vbNullString
to ignore.API_AEAD_AES_128_GCM API_AEAD_AES_256_GCM API_AEAD_CHACHA20_POLY1305 API_AEAD_ASCON_128 API_AEAD_ASCON_128AAdd
API_IV_PREFIX
to prepend the IV (nonce) before the ciphertext in the output (use the Or
operator).taglen
(16) bytes longer than the input,
or exactly taglen + ivlen
(28/32) bytes longer if API_IV_PREFIX
is used.