Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

fsl_shw_return_t fsl_shw_get_random ( fsl_shw_uco_t user_ctx,
uint32_t  length,
uint8_t *  data 
)

Get random data.

Parameters:
user_ctx A user context from fsl_shw_register_user().
length The number of octets of data being requested.
[out] data A pointer to a location of length octets to where random data will be returned.
Returns:
A return code of type fsl_shw_return_t.
Get random data.

Parameters:
user_ctx A user context from fsl_shw_register_user().
length The number of octets of data being requested.
data A pointer to a location of length octets to where random data will be returned.
Returns:
FSL_RETURN_NO_RESOURCE_S A return code of type fsl_shw_return_t. FSL_RETURN_OK_S
Get random data.

Parameters:
user_ctx A user context from fsl_shw_register_user().
length The number of octets of data being requested.
[out] data A pointer to a location of length octets to where random data will be returned.
Returns:
A return code of type fsl_shw_return_t.
Get random data.

Parameters:
user_ctx A user context from fsl_shw_register_user().
length The number of octets of data being requested.
data A pointer to a location of length octets to where random data will be returned.
Returns:
FSL_RETURN_NO_RESOURCE_S A return code of type fsl_shw_return_t. FSL_RETURN_OK_S
Get a random number

Parameters:
user_ctx 
length 
data 
Returns:
A return code of type fsl_shw_return_t.

Definition at line 101 of file fsl_shw_rand.c.

References fsl_shw_uco_t::callback, shw_queue_entry_t::callback, shw_queue_entry_t::code, rng_work_entry::completed, rng_work_entry::data_local, rng_work_entry::data_user, DESC_OUT_OUT, FALSE, finish_random(), shw_queue_entry_t::flags, fsl_shw_uco_t::flags, FSL_RETURN_ERROR_S, FSL_RETURN_NO_RESOURCE_S, FSL_RETURN_OK_S, FSL_UCO_BLOCKING_MODE, rng_work_entry::hdr, rng_work_entry::length, os_alloc_memory, os_free_memory, os_sleep, shw_queue_entry_t::postprocess, RNG_ADD_WORK_ENTRY(), rng_availability, RNG_STATUS_OK, SAH_HDR_RNG_GENERATE, sah_validate_uco(), shw_queue_entry_t::user_ctx, fsl_shw_uco_t::user_ref, and shw_queue_entry_t::user_ref.

Referenced by get_random().

{

      (void)user_ctx;
      (void)length;
      (void)data;

      return FSL_RETURN_ERROR_S;
}


Generated by  Doxygen 1.6.0   Back to index