hu_SHA1CtxReset()

Resets the given SHA-1 context so it can be reused.

Synopsis:

#include "husha1.h"
 
int hu_SHA1CtxReset(sb_Context hashContext, sb_GlobalCtx sbCtx)

Since:

BlackBerry 10.0.0

Arguments:

hashContext

SHA-1 context object.

sbCtx

A global context.

Library:

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

Description:

Note: This function returns the state of the context to the same state as a context created after a call to hu_SHA1Begin().

Returns:

SB_ERR_NULL_CONTEXT

The hashContext object is NULL.

SB_ERR_BAD_CONTEXT

The hashContext object is invalid.

SB_SUCCESS

Success.