Open pennam opened 3 years ago
Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers. Internal Jira reference: https://jira.arm.com/browse/IOTOSM-4281
I've made some progress and fixed the registration issue. See https://github.com/ARMmbed/mbed-os-atecc608a/pull/18 and https://github.com/ARMmbed/mbed-os-example-atecc608a/pull/75
Now only test_sign_verify
is failing the others are all ok.
Description of defect
I'm trying to run this example on PORTENTA_H7 board. The board has an integrated ATECC608A (no external connection) and communication works fine. However all psa test are failing. This is the output from this example:
test_hash_sha256
is working correctly because is calling directlyatecc608a_hash_sha256
function not going through psa API. I thought the problem could be a wrong registration parameter here: https://github.com/ARMmbed/mbed-os-example-atecc608a/blob/4d07850ff80acfbd5304ed7e1e38854ed2cbb486/atecc608a/main.c#L613 because function is expecting a location value and notPSA_ATECC608A_LIFETIME
, in fact with this configurationpsa_get_se_driver_entry
will fail because the location value is 0.https://github.com/ARMmbed/mbed-os/blob/d1f02f3078b405624f7be0cd824cdf85d472fa34/platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_MBED_PSA_SRV/mbedtls/psa_crypto_se.c#L75-L85
I'm trying to find the correct way to fix it but i need some help.
Target(s) affected by this defect ?
I've tested ti on PORTENTA_H7, but i think this issue is affecting other targets
Toolchain(s) (name and version) displaying this defect ?
gcc-arm-none-eabi-9-2019-q4-major
What version of Mbed-os are you using (tag or sha) ?
https://github.com/ARMmbed/mbed-os/#3377f083b3a6bd7a1b45ed2cea5cf083b9007527
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
How is this defect reproduced ?
Flash and run the example