hu_SHA384CtxReset()

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

Synopsis:

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

Since:

BlackBerry 10.0.0

Arguments:

hashContext

A SHA-384 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_SHA384Begin.

Returns:

SB_ERR_NULL_CONTEXT

The hashContext object is NULL.

SB_ERR_BAD_CONTEXT

The hashContext object is invalid.

SB_SUCCESS

Success.