psa_asymmetric_verify failed to verify key pair #116
Labels
No labels
api-spec
bug
CLA requested
CLA valid
compliance
DO NOT MERGE
duplicate
enhancement
feature branch
good first issue
HEADER FORMATTING ISSUE
help wanted
Information
invalid
Jira status: AWAITING REVIEW
Jira status: CLOSED
Jira status: DONE
Jira status: IN PROGRESS
Jira status: IN REVIEW
Jira status: OPEN
Jira status: REOPENED
Jira status: RESOLVED
mirrored
mirror internally
needs: backports
needs: ci
needs: design review
needs: preceding PR
needs: review
needs: work
notabug
open for community contribution
Product Backlog
question
ready for merge
security
stale
type: bug
type: enhancement
type: question
web pages
wontfix
writing
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-ARMmbed/mbed-crypto#116
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
mbedtls_pk_verifyfor PSA failed to verify the key pair below.Using EC key pair and hash below, mbedtls_pk_verify call to psa_asymmetric_verify which return
MBEDTLS_ERR_ECP_VERIFY_FAILED.The non-PSA version succeeds to verify the same key pair.
Tested using mbedtls version 2.17.0.
Internal Jira reference: https://jira.arm.com/browse/IOTCRYPT-768
@moshe-shahar , please print keys from mbedtls_pk_context (in both cases) before calling to mbedtls_pk_verify and mbedtls_pk_sign and signatures that you receive and pass to/from sign/verify functions .
Sorry, the error was during the conversion of the key to raw format.