|
51 | 51 | * Implementations may use this error code if none of the other standard
|
52 | 52 | * error codes are applicable. */
|
53 | 53 | #define PSA_ERROR_GENERIC_ERROR ((psa_status_t)-132)
|
| 54 | +#if !defined(MBEDTLS_DEPRECATED_REMOVED) |
| 55 | +#define PSA_ERROR_UNKNOWN_ERROR \ |
| 56 | + MBEDTLS_DEPRECATED_NUMERIC_CONSTANT( PSA_ERROR_GENERIC_ERROR ) |
| 57 | +#endif |
54 | 58 |
|
55 | 59 | /** The requested operation or a parameter is not supported
|
56 | 60 | * by this implementation.
|
|
91 | 95 | * Implementations should return this error, when attempting
|
92 | 96 | * to write an item (like a key) that already exists. */
|
93 | 97 | #define PSA_ERROR_ALREADY_EXISTS ((psa_status_t)-139)
|
| 98 | +#if !defined(MBEDTLS_DEPRECATED_REMOVED) |
| 99 | +#define PSA_ERROR_OCCUPIED_SLOT \ |
| 100 | + MBEDTLS_DEPRECATED_NUMERIC_CONSTANT( PSA_ERROR_ALREADY_EXISTS ) |
| 101 | +#endif |
94 | 102 |
|
95 | 103 | /** Asking for an item that doesn't exist
|
96 | 104 | *
|
97 | 105 | * Implementations should return this error, if a requested item (like
|
98 | 106 | * a key) does not exist. */
|
99 | 107 | #define PSA_ERROR_DOES_NOT_EXIST ((psa_status_t)-140)
|
| 108 | +#if !defined(MBEDTLS_DEPRECATED_REMOVED) |
| 109 | +#define PSA_ERROR_EMPTY_SLOT \ |
| 110 | + MBEDTLS_DEPRECATED_NUMERIC_CONSTANT( PSA_ERROR_DOES_NOT_EXIST ) |
| 111 | +#endif |
100 | 112 |
|
101 | 113 | /** The requested action cannot be performed in the current state.
|
102 | 114 | *
|
|
268 | 280 | /** Return this error when there's insufficient data when attempting
|
269 | 281 | * to read from a resource. */
|
270 | 282 | #define PSA_ERROR_INSUFFICIENT_DATA ((psa_status_t)-143)
|
| 283 | +#if !defined(MBEDTLS_DEPRECATED_REMOVED) |
| 284 | +#define PSA_ERROR_INSUFFICIENT_CAPACITY \ |
| 285 | + MBEDTLS_DEPRECATED_NUMERIC_CONSTANT( PSA_ERROR_INSUFFICIENT_DATA ) |
| 286 | +#endif |
271 | 287 |
|
272 | 288 | /** The key handle is not valid.
|
273 | 289 | */
|
|
0 commit comments