From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "enum" |
|---|
| subject | "Library:Mbed TLS" |
|---|
| claim | "PSA Crypto API functions (psa_*) of Mbed TLS 3.x and TF-PSA-Crypto return psa_status_t: PSA_SUCCESS 0 and negative codes from -132 (GENERIC_ERROR) to -153 (DATA_INVALID). These values come from the PSA Certified API specification, so other implementations (e.g. TF-M) use them too." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:Mbed TLS" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "psa_status_t" |
|---|
| underlying_type | "int32_t" |
|---|
| values | | 0 | "PSA_SUCCESS" |
|---|
| -132 | "PSA_ERROR_GENERIC_ERROR" |
|---|
| -133 | "PSA_ERROR_NOT_PERMITTED" |
|---|
| -134 | "PSA_ERROR_NOT_SUPPORTED" |
|---|
| -135 | "PSA_ERROR_INVALID_ARGUMENT" |
|---|
| -136 | "PSA_ERROR_INVALID_HANDLE" |
|---|
| -137 | "PSA_ERROR_BAD_STATE" |
|---|
| -138 | "PSA_ERROR_BUFFER_TOO_SMALL" |
|---|
| -139 | "PSA_ERROR_ALREADY_EXISTS" |
|---|
| -140 | "PSA_ERROR_DOES_NOT_EXIST" |
|---|
| -141 | "PSA_ERROR_INSUFFICIENT_MEMORY" |
|---|
| -142 | "PSA_ERROR_INSUFFICIENT_STORAGE" |
|---|
| -143 | "PSA_ERROR_INSUFFICIENT_DATA" |
|---|
| -144 | "PSA_ERROR_SERVICE_FAILURE" |
|---|
| -145 | "PSA_ERROR_COMMUNICATION_FAILURE" |
|---|
| -146 | "PSA_ERROR_STORAGE_FAILURE" |
|---|
| -147 | "PSA_ERROR_HARDWARE_FAILURE" |
|---|
| -148 | "PSA_ERROR_INSUFFICIENT_ENTROPY" |
|---|
| -149 | "PSA_ERROR_INVALID_SIGNATURE" |
|---|
| -150 | "PSA_ERROR_INVALID_PADDING" |
|---|
| -151 | "PSA_ERROR_CORRUPTION_DETECTED" |
|---|
| -152 | "PSA_ERROR_DATA_CORRUPT" |
|---|
| -153 | "PSA_ERROR_DATA_INVALID" |
|---|
|
|---|
| complete | true |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "#define PSA_SUCCESS ((psa_status_t)0); #define PSA_ERROR_GENERIC_ERROR ((psa_status_t)-132) ... PSA_ERROR_DATA_INVALID ((psa_status_t)-153)" |
|---|
| repo | "https://github.com/Mbed-TLS/TF-PSA-Crypto" |
|---|
| commit | "103c97f44d9150978c832cd191d7a9b46c3e9f4e" |
|---|
| path | "include/psa/crypto_values.h" |
|---|
| lines | "58-330" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "psa_status_t" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T08:11:27.749Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T07:49:22.330Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read include/psa/crypto_values.h at TF-PSA-Crypto 103c97f4: PSA_SUCCESS 0 and all 22 PSA_ERROR_* values -132..-153 match name for name." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T17:41:43.860Z" |
|---|
| summary | "Mark complete: crypto_values.h defines PSA_SUCCESS and 22 PSA_ERROR_* codes (-132 .. -153), 23 in total" |
|---|
| changed | |
|---|
|
|
|---|