otPlatCryptoEcdsaVerify() function
Use the key from the input context to verify the ECDSA signature of a hashed message.
Arguments
aPublicKey
A pointer to an ECDSA public key structure where the public key for signature verification is stored.
aHash
A pointer to a SHA-256 hash structure where the hash value for signature verification is stored.
aSignature
A pointer to an ECDSA signature structure where the signature value to be verified is stored.
Return value
OT_ERROR_NONE The signature was verified successfully. OT_ERROR_SECURITY The signature is invalid. OT_ERROR_INVALID_ARGS The key or hash is invalid. OT_ERROR_NO_BUFS Failed to allocate buffer for signature verification.