mbedtls_lms_export_public_key() function
This function exports an LMS public key from a LMS public context that already contains a public key.
Arguments
ctx
The initialized LMS public context that contains the public key.
key
The buffer into which the key will be output. Must be at least #MBEDTLS_LMS_PUBLIC_KEY_LEN in size.
key_size
The size of the key buffer.
key_len
If not NULL, will be written with the size of the key.
Return value
\c 0 on success. A non-zero error code on failure.
Notes
Before this function is called, the context must have been initialized and the context must contain a public key. See IETF RFC8554 for details of the encoding of this public key.
mbedtls_lms_export_public_key() calls 1 function:
![]()
mbedtls_lms_export_public_key()
mbedtls_lms_export_public_key() reads 7 variables:
![]()
mbedtls_lms_export_public_key()