openHiTLS API openHiTLS 0.1.0-Alpha1
Data Fields
CRYPT_RandSeedMethod Struct Reference

#include <crypt_types.h>

Data Fields

int32_t(* getEntropy )(void *ctx, CRYPT_Data *entropy, uint32_t strength, CRYPT_Range *lenRange)
 
void(* cleanEntropy )(void *ctx, CRYPT_Data *entropy)
 The entropy source memory is cleared, this API is optional.
 
int32_t(* getNonce )(void *ctx, CRYPT_Data *nonce, uint32_t strength, CRYPT_Range *lenRange)
 Obtain the random number. This API is not need to registered. For registration, the output data must meet requirements such as the length. The HiTLS does not check the entropy source, but will implement if provide the function.
 
void(* cleanNonce )(void *ctx, CRYPT_Data *nonce)
 Random number memory clearance. this API is optional.
 

Detailed Description

Metohd structure of the RAND registration interface, including the entropy source obtaining and clearing

interface and random number obtaining and clearing interface. For details about how to use the default entropy source of the HiTLS, see CRYPT_EAL_RandInit(). If the default mode is not used, the entropy source obtaining interface cannot be null, interface for obtaining random numbers can be null.


The documentation for this struct was generated from the following file: