mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-22 09:40:09 +00:00
Merge pull request #7539 from gilles-peskine-arm/mbedtls_error_pair_t-smaller
Halve size of mbedtls_error_pair_t
This commit is contained in:
commit
8d42cfddd6
@ -345,7 +345,11 @@ extern mbedtls_psa_drbg_context_t *const mbedtls_psa_random_state;
|
|||||||
#endif /* !defined(MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG) */
|
#endif /* !defined(MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG) */
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
psa_status_t psa_status;
|
/* Error codes used by PSA crypto are in -255..-128, fitting in 16 bits. */
|
||||||
|
int16_t psa_status;
|
||||||
|
/* Error codes used by Mbed TLS are in one of the ranges
|
||||||
|
* -127..-1 (low-level) or -32767..-4096 (high-level with a low-level
|
||||||
|
* code optionally added), fitting in 16 bits. */
|
||||||
int16_t mbedtls_error;
|
int16_t mbedtls_error;
|
||||||
} mbedtls_error_pair_t;
|
} mbedtls_error_pair_t;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user