mbedtls_lmots_verify() function
This function verifies a LMOTS signature, using a LMOTS context that contains a public key. \warning This function is **not intended for use in production**, due to as-yet unsolved problems with handling stateful keys. The API for this function may change considerably in future versions.
Arguments
ctx
The initialized LMOTS 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_LMOTS_SIG_LEN bytes will be read from this.
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 calculation from a private key).
mbedtls_lmots_verify() calls 2 functions:
![]()
mbedtls_lmots_verify()
mbedtls_lmots_verify() reads 5 variables:
![]()
mbedtls_lmots_verify()