hu_SHA224DigestGet()

Generates the message digest from the data that has been updated to the given SHA-224 context.

Synopsis:

#include "husha2.h"
 
int hu_SHA224DigestGet(sb_Context hashContext, unsigned char *digest, sb_GlobalCtx sbCtx)

Since:

BlackBerry 10.0.0

Arguments:

hashContext

SHA-224 context object.

digest

Message digest buffer. The length (in bytes) of the buffer must be at least SB_SHA224_DIGEST_LEN.

sbCtx

A global context.

Library:

libhuapi (For the qcc command, use the -l huapi option to link against this library)

Description:

This function does not change the state of the context object.

Returns:

SB_ERR_NULL_CONTEXT

The hashContext object is NULL.

SB_ERR_BAD_CONTEXT

The hashContext object is invalid.

SB_ERR_NULL_OUTPUT_BUF

Message digest buffer is NULL.

SB_SUCCESS

Success.