Completes the HMAC operation by generating a MAC tag of the specified length for the given data and destroying the HMAC-SHA-512 context.
#include "husha2.h"
int hu_HMACSHA512End(sb_Context *hmacContext, size_t tagLen, unsigned char *tag, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
The HMAC-SHA-512 context object pointer.
The length (in bytes) of MAC tag. This value must be between SB_HMAC_SHA512_256_TAG_LEN and SB_HMAC_SHA512_512_TAG_LEN, inclusive.
The MAC tag buffer.
A global context.
The hmacContext object pointer is NULL.
The hmacContext object is NULL.
The hmacContext object is invalid.
The length of the tag buffer is invalid.
The tag buffer is NULL.
Success.