CryptoSys API Library Manual

AEAD_FinishDecrypt

Finishes the authenticated decryption (in incremental mode) .

VBA/VB6 Syntax

Public Declare Function AEAD_FinishDecrypt Lib "diCryptoSys.dll" (ByVal hContext As Long) As Long

nRet = AEAD_FinishDecrypt(hContext)

C/C++ Syntax

long __stdcall AEAD_FinishDecrypt(long hContext);

Parameters

hContext
[in] handle to the AEAD context set up by an earlier call to AEAD_InitKey.

Returns (VBA/C)

If successful, the return value is zero; otherwise it returns a nonnegative error code.

.NET Equivalent

Aead.FinishDecrypt Method

Remarks

Returns the nonzero error code AUTH_FAILED_ERROR (-40) if the inputs are not authentic. Must be preceded by AEAD_StartDecrypt and zero or more calls to AEAD_Update. May be followed by AEAD_SetNonce to begin processing another packet with the same key and algorithm; otherwise should be followed by AEAD_Destroy . Returns MISUSE_ERROR if called out of sequence.

Example

See the example in AEAD_InitKey.

[Contents] [Index]

[PREV: AEAD_EncryptWithTag...]   [Contents]   [Index]   
   [NEXT: AEAD_FinishEncrypt...]

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