hu_RngDrbgDestroy()

Destroys an DRBG RNG context object.

Synopsis:

#include "hurandom.h"
 
int hu_RngDrbgDestroy(sb_RNGCtx *rngCtx, sb_GlobalCtx sbCtx)

Since:

BlackBerry 10.0.0

Arguments:

rngCtx

An RNG context object pointer.

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_PTR

The RNG context object pointer is NULL.

SB_ERR_NULL_CONTEXT

The RNG context object is NULL.

SB_ERR_BAD_CONTEXT

The RNG context is invalid.

SB_ERR_RNG_SECURITY_STRENGTH_TOO_SMALL

The security strength is less than the minimum value of 80 bits.

SB_ERR_RNG_SECURITY_STRENGTH_NOT_SUPPORTED

The security strength is higher than the maximum supported strength.

SB_ERR_RNG_PREDICTIVE_RESISTANCE_NOT_SUPPORTED

The predictive resistance is not supported.

SB_ERR_RNG_PERSONALIZATION_STRING_TOO_BIG

The personalization string is too long.

SB_SUCCESS

Success.