hu_DESCtxReset()

Resets the given DES context so it can be reused.

Synopsis:

#include "hudes.h"
 
int hu_DESCtxReset(size_t ivLen, const unsigned char *iv, sb_Context desContext, sb_GlobalCtx sbCtx)

Since:

BlackBerry 10.0.0

Arguments:

ivLen

The length (in bytes) of initial vector. The only acceptable value is SB_DES_IV_SIZE.

iv

The initial vector.

desContext

The DES context object.

sbCtx

A global context.

Library:

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

Description:

Returns:

SB_ERR_NULL_CONTEXT

The desContext object is NULL.

SB_ERR_BAD_CONTEXT

The desContext object is invalid.

SB_ERR_NULL_IV

The initial vector, iv, is NULL.

SB_ERR_BAD_IV_LEN

The initial vector length, ivLen, is invalid.

SB_SUCCESS

Success.