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.
[PREV: aeadFinishEncrypt...]   [Contents]   [Index]   
   [NEXT: aeadSetNonce...]

Copyright © 2001-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-01-07T07:42:00Z.