mbedtls_lms_import_public_key() function
This function imports an LMS public key into a public LMS context.
Arguments
ctx
The initialized LMS context store the key in.
key
The buffer from which the key will be read. #MBEDTLS_LMS_PUBLIC_KEY_LEN bytes will be read from this.
key_size
The size of the key being imported.
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. See IETF RFC8554 for details of the encoding of this public key.
mbedtls_lms_import_public_key() calls 1 function:
![]()
mbedtls_lms_import_public_key()
mbedtls_lms_import_public_key() reads 6 variables and writes 3 variables:
![]()
mbedtls_lms_import_public_key()