1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

New header crypto_sizes.h

This header will contain macros that calculate buffer sizes, whose
semantics are standardized but whose definitions are
implementation-specific because they depend on the available algorithms
and on some permitted buffer size tolerances.

Move size macros from crypto_struct.h to crypto_sizes.h, because these
definitions need to be available both in the frontend and in the
backend, whereas structures have different contents.
This commit is contained in:
Gilles Peskine
2018-06-27 19:49:02 +02:00
committed by itayzafrir
parent 0e60fd536e
commit 0cad07c2fb
3 changed files with 54 additions and 8 deletions

View File

@ -2070,6 +2070,10 @@ psa_status_t psa_generate_key(psa_key_slot_t key,
}
#endif
/* The file "crypto_sizes.h" contains definitions for size calculation
* macros whose definitions are implementation-specific. */
#include "crypto_sizes.h"
/* The file "crypto_struct.h" contains definitions for
* implementation-specific structs that are declared above. */
#include "crypto_struct.h"