otPlatCryptoEcdsaVerifyUsingKeyRef() function
Use the keyref to verify the ECDSA signature of a hashed message.
Arguments
aKeyRef
Key Reference to the slot where the key-pair 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.
Notes
This API is only used by OT core when `OPENTHREAD_CONFIG_PLATFORM_KEY_REFERENCES_ENABLE` is enabled.