mbedtls_ecjpake_write_round_two() function
Generate and write the second round message (TLS: contents of the Client/ServerKeyExchange).
Arguments
ctx
The ECJPAKE context to use. This must be initialized, set up, and already have performed round one.
buf
The buffer to write the round two contents to. This must be a writable buffer of length \p len Bytes.
len
The size 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_two() is called by 4 functions and calls 10 functions:
![]()
mbedtls_ecjpake_write_round_two()
mbedtls_ecjpake_write_round_two() reads 6 variables:
![]()
mbedtls_ecjpake_write_round_two()