Destroys an authenticated encryption context object, and verifies the MAC.
#include "huauthenc.h"
int hu_AuthEncDecryptEnd(sb_Context *authEncCtx, size_t macLen, const unsigned char *mac, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
The AuthEnc context object pointer.
The length of the mac buffer in bytes. The macLen must match the value supplied in the hu_AuthEncBegin() function.
The mac buffer.
Global context.
This function must be called to terminate an authenticated decryption operation. An authenticate encryption context must be destroyed before the corresponding symmetric key object and symmetric key parameters object are destroyed. The MAC supplied will be verified.
The authEncCtx is of the wrong type.
The macLen parameter does not match the length specified in the hu_AuthEncBegin function.
The mac buffer is unexpectedly NULL.
The value of mac is invalid