Function nrfxlib_sys::ocrypto_ed25519_verify_ctx
source · pub unsafe extern "C" fn ocrypto_ed25519_verify_ctx(
ctx: *mut ocrypto_ed25519_ctx,
sig: *const u8,
m: *const u8,
m_len: usize,
pk: *const u8
) -> c_int
Expand description
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.
Returns 0 If the signature is valid. Returns -1 Otherwise.