Function bearssl::br_hmac_drbg_generate [] [src]

pub unsafe extern "C" fn br_hmac_drbg_generate(
    ctx: *mut br_hmac_drbg_context,
    out: *mut c_void,
    len: usize
)

\brief Random bytes generation with HMAC_DRBG.

This method produces len pseudorandom bytes, in the out buffer. The context is updated accordingly. Formally, requesting more than 65536 bytes in one request falls out of specification limits (but it won't fail).

\param ctx HMAC_DRBG context. \param out output buffer. \param len number of pseudorandom bytes to produce.