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