mbedtls_ecjpake_write_round_one() function
Generate and write the first round message (TLS: contents of the Client/ServerHello extension, excluding extension type and length bytes).
Arguments
ctx
The ECJPAKE context to use. This must be initialized and set up.
buf
The buffer to write the contents to. This must be a writable buffer of length \p len Bytes.
len
The length of \p buf in Bytes.
olen
The address at which to store the total number of Bytes written to \p buf. This must not be \c NULL.
f_rng
int (*)(void *, unsigned char *, size_t)
The RNG function to use. This must not be \c NULL.
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 value
\c 0 if successful. A negative error code on failure.
mbedtls_ecjpake_write_round_one() is called by 4 functions and calls 1 function:
![]()
mbedtls_ecjpake_write_round_one()
mbedtls_ecjpake_write_round_one() reads 5 variables:
![]()
mbedtls_ecjpake_write_round_one()