openHiTLS API openHiTLS 0.1.0-Alpha1

◆ CRYPT_RandBytesCallback

typedef int32_t(* CRYPT_RandBytesCallback) (uint8_t *buf, uint32_t len)

Obtain the random number.

参数
buf[OUT] Random number
len[IN] Random number length
返回值
0indicates success. Other values indicate failure.