Return right error code. #199
No reviewers
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!199
Loading…
Reference in a new issue
No description provided.
Delete branch "dev/jainvikas8/fix-return-code"
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?
Fixes : #126
When running psa-arch-tests API - 0.9 on the crypto library one of the tests fails which expects a right return code from psa_asymmetric_encrypt when the size of output buffer supplied is inadequate.
These psa-arch-tests are PSA compliance tests which are run against the mbed-crypto library.
Please refer
Further, the test can be run on your local Linux machine with the help of this script.
So returning PSA_ERROR_BUFFER_TOO_SMALL error code passes this test.
This fix is a pre-requisite to make psa-arch-tests run as a CI for any raised PR job.
Normally I'd ask for a non-regression test, but this is an area that isn't well-tested in the first place, so this can wait. Tracking the lack of testing at https://github.com/ARMmbed/mbed-crypto/issues/200
LGTM
CI failed only due to a known issue with the ABI checking script, and there's obviously no ABI change here, so it's as good as a pass.