mbedtls_lmots_export_public_key() function
This function exports an LMOTS public key from a LMOTS context that already contains a public key.
Arguments
ctx
The initialized LMOTS context that contains the public key.
key
The buffer into which the key will be output. Must be at least #MBEDTLS_LMOTS_PUBLIC_KEY_LEN in size.
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_lmots_export_public_key() calls 1 function:
![]()
mbedtls_lmots_export_public_key()
mbedtls_lmots_export_public_key() reads 7 variables:
![]()
mbedtls_lmots_export_public_key()