pub unsafe extern "C" fn ocrypto_ecdsa_p256_verify_hash(
    sig: *const u8,
    hash: *const u8,
    pk: *const u8
) -> c_int
Expand description

ECDSA P-256 signature verification from SHA256 hash.

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

  • sig - Input signature.
  • hash - Input hash.
  • pk - Signer’s public key.

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