mbedtls_ecp_tls_write_point() function
This function exports a point as a TLS ECPoint record defined in RFC 4492, Section 5.4.
Arguments
grp
The ECP group to use. This must be initialized and have group parameters set, for example through mbedtls_ecp_group_load().
pt
The point to be exported. This must be initialized.
The point format to use. This must be either #MBEDTLS_ECP_PF_COMPRESSED or #MBEDTLS_ECP_PF_UNCOMPRESSED.
olen
The address at which to store the length in Bytes of the data written.
buf
The target buffer. This must be a writable buffer of length \p blen Bytes.
blen
The length of the target buffer \p buf in Bytes.
Return value
\c 0 on success. #MBEDTLS_ERR_ECP_BAD_INPUT_DATA if the input is invalid. #MBEDTLS_ERR_ECP_BUFFER_TOO_SMALL if the target buffer is too small to hold the exported point. Another negative error code on other kinds of failure.
Functions calling mbedtls_ecp_tls_write_point()
Functions called by mbedtls_ecp_tls_write_point()
mbedtls_ecp_tls_write_point()
Data read by mbedtls_ecp_tls_write_point()
Data written by mbedtls_ecp_tls_write_point()
mbedtls_ecp_tls_write_point()::ret all items filtered out
mbedtls_ecp_tls_write_point()
mbedtls_ecp_tls_write_point()::ret all items filtered out