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

Unreadable storage and invalid data in storage should be different errors #332

Open
gilles-peskine-arm opened this issue Dec 8, 2019 · 1 comment
Assignees
Labels
api-spec Issue or PR about the PSA specifications bug Something isn't working Jira status: OPEN mirrored type: bug

Comments

@gilles-peskine-arm
Copy link
Collaborator

The PSA crypto specification defines a single error code that is applicable when reading storage: PSA_ERROR_STORAGE_FAILURE, which is intended when the storage is unreadable or demonstrably corrupted. Reading invalid data from the storage when the storage subsystem thinks nothing is wrong should be a different error, typically indicating that data was saved with a different version or build of the PSA crypto implementation and cannot be read back with the present build (for example a key type or size that is not supported).

@gilles-peskine-arm gilles-peskine-arm added bug Something isn't working api-spec Issue or PR about the PSA specifications labels Dec 8, 2019
@gilles-peskine-arm gilles-peskine-arm self-assigned this Dec 8, 2019
@ciarmcom
Copy link
Member

ciarmcom commented Dec 8, 2019

Internal Jira reference: https://jira.arm.com/browse/IOTCRYPT-1021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-spec Issue or PR about the PSA specifications bug Something isn't working Jira status: OPEN mirrored type: bug
Projects
None yet
Development

No branches or pull requests

2 participants