mbedtls_lms_verify() function
This function verifies a LMS signature, using a LMS context that contains a public key.
Arguments
ctx
The initialized LMS public context from which the public key will be read.
msg
The buffer from which the message will be read.
msg_size
The size of the message that will be read.
sig
The buf from which the signature will be read. #MBEDTLS_LMS_SIG_LEN bytes will be read from this.
sig_size
The size of the signature to be verified.
Return value
\c 0 on successful verification. A non-zero error code on failure.
Notes
Before this function is called, the context must have been initialized and must contain a public key (either by import or generation).
mbedtls_lms_verify() calls 5 functions:
![]()
mbedtls_lms_verify()
mbedtls_lms_verify() reads 10 variables and writes 1 variable:
![]()
mbedtls_lms_verify()