mbedtls/include/psa
Gilles Peskine 87a5e565f4 Rename functions that inject key material to an allocated handle
This commit starts a migration to a new interface for key creation.
Today, the application allocates a handle, then fills its metadata,
and finally injects key material. The new interface fills metadata
into a temporary structure, and a handle is allocated at the same time
it gets filled with both metadata and key material.

This commit was obtained by moving the declaration of the old-style
functions to crypto_extra.h and renaming them with the to_handle
suffix, adding declarations for the new-style functions in crypto.h
under their new name, and running

    perl -i -pe 's/\bpsa_(import|copy|generator_import|generate)_key\b/$&_to_handle/g' library/*.c tests/suites/*.function programs/psa/*.c
    perl -i -pe 's/\bpsa_get_key_lifetime\b/$&_from_handle/g' library/*.c tests/suites/*.function programs/psa/*.c

Many functions that are specific to the old interface, and which will
not remain under the same name with the new interface, are still in
crypto.h for now.

All functional tests should still pass. The documentation may have
some broken links.
2019-04-24 15:24:45 +02:00
..
crypto_accel_driver.h Pacify check-names.sh 2019-03-06 18:29:57 +01:00
crypto_driver_common.h Split crypto_driver.h into one for each driver type 2018-12-21 18:17:10 +01:00
crypto_entropy_driver.h Doxygen changes to match the code changes. clarifications. 2019-02-15 17:23:42 -06:00
crypto_extra.h Rename functions that inject key material to an allocated handle 2019-04-24 15:24:45 +02:00
crypto_platform.h PSA crypto service: encode the key owner (ITS backend only) 2019-02-20 12:52:09 +01:00
crypto_se_driver.h Merge pull request #248 from ARMmbed/dreemkiller_rename_driver 2019-03-06 18:59:46 +00:00
crypto_sizes.h Merge remote-tracking branch 'upstream-crypto/development' into psa-api-beta2-merge-development 2019-04-09 12:00:00 +02:00
crypto_struct.h Use unsigned int for bitfields 2019-04-18 09:42:21 +02:00
crypto_types.h Merge remote-tracking branch 'upstream-crypto/development' into psa-api-beta2-merge-development 2019-04-09 12:00:00 +02:00
crypto_values.h Algorithm encoding: move two bits from derivation to agreement 2019-04-18 09:42:21 +02:00
crypto.h Rename functions that inject key material to an allocated handle 2019-04-24 15:24:45 +02:00