Function esp_idf_svc::hal::sys::mbedtls_ecjpake_write_round_one
source · pub unsafe extern "C" fn mbedtls_ecjpake_write_round_one(
ctx: *mut mbedtls_ecjpake_context,
buf: *mut u8,
len: usize,
olen: *mut usize,
f_rng: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut u8, _: usize) -> i32>,
p_rng: *mut c_void,
) -> i32
Expand description
\brief Generate and write the first round message (TLS: contents of the Client/ServerHello extension, excluding extension type and length bytes).
\param ctx The ECJPAKE context to use. This must be initialized and set up. \param buf The buffer to write the contents to. This must be a writable buffer of length \p len Bytes. \param len The length of \p buf in Bytes. \param olen The address at which to store the total number of Bytes written to \p buf. This must not be \c NULL. \param f_rng The RNG function to use. This must not be \c NULL. \param p_rng The RNG parameter to be passed to \p f_rng. This may be \c NULL if \p f_rng doesn’t use a context.
\return \c 0 if successful. \return A negative error code on failure.