hu_SHA1End()

Completes the message digest operation by generating the digest and destroying the SHA-1 context object.

Synopsis:

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

Since:

BlackBerry 10.0.0

Arguments:

hashContext

The SHA-1 context object pointer.

digest

The message digest buffer. The length (in bytes) of the buffer must be at least SB_SHA1_DIGEST_LEN.

sbCtx

A global context.

Library:

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

Description:

Returns:

SB_ERR_NULL_CONTEXT_PTR

The hashContext object pointer is NULL.

SB_ERR_NULL_CONTEXT

The hashContext object is NULL.

SB_ERR_BAD_CONTEXT

The hashContext object is invalid.

SB_ERR_NULL_OUTPUT_BUF

The message digest buffer is NULL.

SB_SUCCESS

Success.