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 error handling for secure element keys in psa_start_key_creation #8537

Closed
Ryan-Everett-arm opened this issue Nov 15, 2023 · 0 comments · Fixed by #8538
Closed

Fix error handling for secure element keys in psa_start_key_creation #8537

Ryan-Everett-arm opened this issue Nov 15, 2023 · 0 comments · Fixed by #8538
Assignees
Labels
bug component-psa PSA keystore/dispatch layer (storage, drivers, …) size-xs Estimated task size: extra small (a few hours at most)

Comments

@Ryan-Everett-arm
Copy link
Contributor

Summary

Currently, when creating a key in a secure element the return value of psa_copy_key_material_into_slot is ignored. A consequence is that keys in a dynamic secure element may be reported as successfully created even if an out-of-memory failure occurs.

This can be fixed by handling the return value of this call.

@Ryan-Everett-arm Ryan-Everett-arm added bug component-psa PSA keystore/dispatch layer (storage, drivers, …) size-xs Estimated task size: extra small (a few hours at most) labels Nov 15, 2023
@Ryan-Everett-arm Ryan-Everett-arm self-assigned this Nov 15, 2023
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, …) size-xs Estimated task size: extra small (a few hours at most)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant