CryptoSys API Library Manual

aeadFinishDecrypt

Finish the authenticated decryption (in incremental mode).

Syntax

[VBA]
Public Function aeadFinishDecrypt ( _
    hContext As Long _
) As Long

Parameters

hContext
Handle to the AEAD context set up by an earlier call to aeadInitKey.

Return Value

Long: Zero (0) on success, or a nonzero error code (use apiErrorLookup to check).

Remarks

Returns the nonzero error code AUTH_FAILED_ERROR (-40) if the inputs are not authentic. Must be preceded by aeadStartDecrypt and zero or more calls to aeadUpdate. May be followed by aeadSetNonce to begin processing another packet with the same key and algorithm; otherwise should be followed by aeadDestroy. Returns MISUSE_ERROR if called out of sequence.
[PREV: aeadEncryptWithTag...]   [Contents]   [Index]   
   [NEXT: aeadFinishEncrypt...]

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