Function hacl::p256::ecdsa_verify
source ยท pub fn ecdsa_verify(
hash: Algorithm,
msg: &[u8],
pk: &[u8],
signature: &Signature,
) -> Result<bool, Error>
Expand description
Verify EcDSA signature
over P256 on msg
with pk
using hash
.
Note that the public key pk
must be a compressed or uncompressed point.