Authenticates any provided additional data.
#include "huauthenc.h"
int hu_AuthEncAuthenticate(sb_Context authEncCtx, size_t addDataLen, const unsigned char *addData, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
Authenticate encryption context object.
The length (in bytes) of additional data. If the mode is SB_CCM_STAR and the macLen specified in hu_authEncBegin() was 0, then addDataLen must be 0.
The additional data buffer.
Global context.
This function should be called for any additional data that must be authenticated but not encrypted. This function can be called repeatedly to authenticate more additional data. All additional data must be processed before the hu_AuthEncEncrypt() function is called.
The authEncCtx parameter is of the wrong type.
The addDataLen parameter violates acceptable values.
The addData buffer is unexpectedly NULL.