Creates a SHA-1 context object.
#include "husha1.h"
int hu_SHA1Begin(size_t digestLen, sb_YieldCtx yieldCtx, sb_Context *hashContext, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
The length (in bytes) of a SHA-1 digest. The only acceptable value is SB_SHA1_DIGEST_LEN.
Ignored.
The SHA-1 context object pointer.
A global context.
It is recommended to avoid using SHA-1 due to the security risks. Please see User Guide for further information.
Note: Yielding is not supported for message digest operations.
digestLen is an invalid digest length.
The hashContext object pointer is NULL.
Memory allocation failure.
Success.