![]() |
nrfxlib API 3.3.99
|
| int ocrypto_ed25519_verify_ctx | ( | ocrypto_ed25519_ctx * | ctx, |
| const uint8_t | sig[(64)], | ||
| const uint8_t * | m, | ||
| size_t | m_len, | ||
| const uint8_t | pk[(32)] ) |
#include <crypto/nrf_oberon/include/ocrypto_ed25519.h>
Ed25519 signature verification with context.
The signature sig of the input message m is verified using the signer's public key pk.
| ctx | Context. |
| sig | Input signature. |
| m | Input message. |
| m_len | Length of m. |
| pk | Signer's public key. |
| 0 | If the signature is valid. |
| -1 | Otherwise. |