Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix return value for psa_copy_key() if lifetime or identifier in attributes is invalid. #4271

Closed
maulik-arm opened this issue Mar 30, 2021 · 1 comment · Fixed by #4279
Closed
Assignees
Labels
bug component-psa PSA keystore/dispatch layer (storage, drivers, …)

Comments

@maulik-arm
Copy link
Contributor

Description

  • Type: Bug
  • Priority: Major

Bug

OS
Mbed OS|linux|windows|

mbed TLS build:
Version: 2.26.0

Expected behavior
As per the PSA Crypto Specification 1.0.0, MbedTLS library function psa_copy_key() should return PSA_ERROR_INVALID_ARGUMENT, if the lifetime or identifier in attributes is invalid. However, it returns PSA_ERROR_INVALID_HANDLE instead.

Actual behavior
psa_copy_key() returns PSA_ERROR_INVALID_HANDLE when identifier or lifetime is invalid.

@ronald-cron-arm ronald-cron-arm added bug component-psa PSA keystore/dispatch layer (storage, drivers, …) Product Backlog labels Mar 31, 2021
@ronald-cron-arm ronald-cron-arm self-assigned this Mar 31, 2021
@ronald-cron-arm
Copy link
Contributor

I started to work on a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug component-psa PSA keystore/dispatch layer (storage, drivers, …)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants