Destroys an authenticated encryption context object, and computes the MAC.
#include "huauthenc.h"
int hu_AuthEncEncryptEnd(sb_Context *authEncCtx, size_t macLen, 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 encryption operation. An authenticate encryption context must be destroyed before the corresponding symmetric key object and symmetric key parameters object are destroyed. The MAC computed from the authentication operation will be returned in the supplied buffer.
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.