ARMmbed / ARMmbed/mbed-crypto

Unreadable storage and invalid data in storage should be different errors

Open
#332 1 comment 0 reactions 1 assignee Claimed by @gilles-peskine-arm View on GitHub
api-spec bug Jira status: OPEN mirrored type: bug
Dominant language
C
Stars
108
Forks
95
PR merge metrics
No merged PRs in 30d

Description

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).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.