30% of PSA Cryptographic API tests are failed #380
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#380
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?
The 23 tests of the PSA Cryptographic Test Suite ( https://github.com/ARM-software/psa-arch-tests) are failed with the latest MbedCrypto.
The main reason of test failures is unimplemented PSA functions by mbedCrypto.
More info is here: https://github.com/ARM-software/psa-arch-tests/blob/master/api-tests/docs/test_failure_analysis.md
The test log is used for PSA Certification. Do you have any plan/dates to fix it?
All targets. All compilers. The latest PSA-Arch_Tests.
@AndreyButokNXP Thanks for the notice. There are many different things here.
psa_hash_compute,psa_hash_compare,psa_mac_computeandpsa_mac_verify, so they'll be in TF-M once TF-M updates their crypto code.psa_open_keyandpsa_close_keyare present in Mbed Crypto, which implements version 1.0beta3 of the specification, but they have been removed from version 1.0 final of the specification. I think we'll update Mbed Crypto in 2020Q2.psa_asymmetric_encryptthat uses ECC keys. What's the problem there?Please note that the Mbed TLS team does not currently monitor test results from the generic PSA test suite, which target a slightly different version of the API. We have our own tests. If the generic PSA test suite fails and it's not due to an API version difference or a bug in the test suite, please file an issue with details on how to reproduce the problem.
Internal Jira reference: https://jira.arm.com/browse/IOTCRYPT-1051
From Soby Mathew (ARM, TFM project):
The PSA-ACK test need to fix this. I will highlight this issue to them.
https://github.com/ARM-software/psa-arch-tests/issues/153
There is an issue raised with mbed-crypto team discussing this issue here : https://github.com/ARMmbed/mbed-crypto/issues/175
As I understand, this needs to be fixed by mbed-crypto.
The problematic input can be seen here :
https://github.com/ARM-software/psa-arch-tests/blob/master/api-tests/dev_apis/crypto/test_c016/test_data.h#L78
Please contact Soby Mathew if more clarification is needed.
Thank you. The RSA one is a bug in the test suite. We're tracking the others, so they're on our backlog. Please keep reporting any specific bugs!
Raised tracking issue for the missing PSA Crypto APIs implementation - https://github.com/ARMmbed/mbed-crypto/issues/381
We have issues for each category of failures. I believe this issue is therefore redundant, so I am closing it. If this is a mistake, please let me know and I'll reopen this issue or raise missing issues.
You can track issues related to the compliance of Mbed Crypto with the PSA Crypto API by looking at issues labeled "compliance".