pub unsafe extern "C" fn ocrypto_ecdsa_p256_verify(
    sig: *const u8,
    m: *const u8,
    mlen: usize,
    pk: *const u8
) -> c_int
Expand description

ECDSA P-256 signature verification.

The signature * sig - of the input message * m - is verified using the signer’s public key * pk - .

  • sig - Input signature.
  • m - Input message.
  • mlen - Length of * m - .
  • pk - Signer’s public key.

Returns 0 If the signature is valid. Returns -1 Otherwise.