hu_MD2CtxDuplicate()

Duplicates an MD2 context.

Synopsis:

#include "humd2.h"
 
int hu_MD2CtxDuplicate(sb_Context hashContext, sb_Context *newHashContext, sb_GlobalCtx sbCtx)

Since:

BlackBerry 10.0.0

Arguments:

hashContext

The original MD2 context object.

newHashContext

The target MD2 context object pointer.

sbCtx

A global context.

Library:

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

Description:

This function can be used to compute the digest of multiple items of data with identical prefixes.

Returns:

SB_ERR_NULL_CONTEXT

The original MD2 context object is NULL.

SB_ERR_BAD_CONTEXT

The original MD2 context object is invalid.

SB_ERR_NULL_CONTEXT_PTR

The target MD2 context object pointer is NULL.

SB_FAIL_ALLOC

Memory allocation failure.

SB_SUCCESS

Success.

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus