Move integral types and associated macros to their own header

Some parts of the library, and crypto drivers, need to see key types,
algorithms, policies, etc. but not API functions. Move portable
integral types and macros to build and analyze values of these types
to a separate headers crypto_types.h and crypto_values.h.

No functional changes, code was only moved from crypto.h to the new headers.
This commit is contained in:
Gilles Peskine 2018-12-12 13:38:31 +01:00
parent 0344d8171d
commit f3b731e817
6 changed files with 1535 additions and 1403 deletions

View file

@ -285,5 +285,5 @@ def generate_psa_constants(header_file_name, output_file_name):
if __name__ == '__main__':
if not os.path.isdir('programs') and os.path.isdir('../programs'):
os.chdir('..')
generate_psa_constants('include/psa/crypto.h',
generate_psa_constants('include/psa/crypto_values.h',
'programs/psa/psa_constant_names_generated.c')