hu_SHA512CtxReset()

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

Synopsis:

#include "husha2.h"
 
int hu_SHA512CtxReset(sb_Context hashContext, sb_GlobalCtx sbCtx)

Since:

BlackBerry 10.0.0

Arguments:

hashContext

The SHA-512 context object.

sbCtx

A global context.

Library:

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

Description:

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

Returns:

SB_ERR_NULL_CONTEXT

The hashContext object is NULL.

SB_ERR_BAD_CONTEXT

The hashContext object is invalid.

SB_SUCCESS

Success.