mbedtls/scripts/mbedtls_dev
Gilles Peskine e00944807c New python module to encode a PSA key for storage
Construct an object given the attributes and material for a PSA crypto key
and get the Mbed TLS storage representation.

The code to generate the storage representation was written based on the
specification in docs/architecture/mbed-crypto-storage-specification.md,
without looking at the code.

The data in the unit tests is from the AES-128 format_storage_data_check
test case in test_suite_psa_crypto_persistent_key.data, tweaked manually.

This commit creates a basic framework for using symbolic values for
attributes, but does not yet implement obtaining the corresponding numerical
values from an external source.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2021-03-10 23:22:35 +01:00
..
asymmetric_key_data.py Add some randomly generated keys 2021-02-17 14:50:17 +01:00
c_build_helper.py Minor documentation fixes 2021-01-19 21:23:11 +01:00
crypto_knowledge.py KeyType: do a sanity check on the key type expression 2021-02-17 18:05:27 +01:00
macro_collector.py Hook up PSAMacroCollector to PSAMacroEnumerator 2021-03-10 23:22:35 +01:00
psa_storage.py New python module to encode a PSA key for storage 2021-03-10 23:22:35 +01:00
test_case.py Do not require typing_extensions at runtime 2021-02-17 14:58:29 +01:00
typing_util.py Do not require typing_extensions at runtime 2021-02-17 14:58:29 +01:00