![]() |
nrfxlib API 3.3.99
|
| int ocrypto_xmssmt_sha256_verify | ( | const uint8_t * | sig, |
| size_t | sig_len, | ||
| const uint8_t * | m, | ||
| size_t | m_len, | ||
| const uint8_t * | pk, | ||
| size_t | pk_len ) |
#include <crypto/nrf_oberon/include/ocrypto_xmss_sha256.h>
XMSS^MT-SHA256 hierarchical signature verification.
The signature sig of the input message msg is verified using the signer's public key pk.
| sig | Input signature. |
| sig_len | Length of sig. |
| m | Input message. |
| m_len | Length of msg. |
| pk | Signer's public key. |
| pk_len | Length of pk. |
| 0 | If the signature is valid. |
| -1 | Otherwise. |