mbedtls/include/psa
Gilles Peskine a99d3fbd05 Rename generator functions to psa_key_derivation_xxx
Generators are mostly about key derivation (currently: only about key
derivation). "Generator" is not a commonly used term in cryptography.
So favor "derivation" as terminology. Call a generator a key
derivation operation structure, since it behaves like other multipart
operation structures. Furthermore, the function names are not fully
consistent.

In this commit, I rename the functions to consistently have the prefix
"psa_key_derivation_". I used the following command:

    perl -i -pe '%t = (
        psa_crypto_generator_t => "psa_key_derivation_operation_t",
        psa_crypto_generator_init => "psa_key_derivation_init",
        psa_key_derivation_setup => "psa_key_derivation_setup",
        psa_key_derivation_input_key => "psa_key_derivation_input_key",
        psa_key_derivation_input_bytes => "psa_key_derivation_input_bytes",
        psa_key_agreement => "psa_key_derivation_key_agreement",
        psa_set_generator_capacity => "psa_key_derivation_set_capacity",
        psa_get_generator_capacity => "psa_key_derivation_get_capacity",
        psa_generator_read => "psa_key_derivation_output_bytes",
        psa_generate_derived_key => "psa_key_derivation_output_key",
        psa_generator_abort => "psa_key_derivation_abort",
        PSA_CRYPTO_GENERATOR_INIT => "PSA_KEY_DERIVATION_OPERATION_INIT",
        PSA_GENERATOR_UNBRIDLED_CAPACITY => "PSA_KEY_DERIVATION_UNLIMITED_CAPACITY",
        ); s/\b(@{[join("|", keys %t)]})\b/$t{$1}/ge' $(git ls-files)
2019-05-16 18:55:21 +02:00
..
crypto.h Rename generator functions to psa_key_derivation_xxx 2019-05-16 18:55:21 +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 generator functions to psa_key_derivation_xxx 2019-05-16 18:55:21 +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 Rename psa_generate_key() and psa_generator_import_key() 2019-05-03 15:44:28 +01:00
crypto_sizes.h Merge pull request #102 from gilles-peskine-arm/psa-aead_multipart-delay 2019-05-16 13:34:21 +01:00
crypto_struct.h Rename generator functions to psa_key_derivation_xxx 2019-05-16 18:55:21 +02:00
crypto_types.h Declare key id 0 as invalid 2019-05-15 18:42:09 +02:00
crypto_values.h Merge pull request #109 from gilles-peskine-arm/psa-key_attributes-set_persistent 2019-05-16 17:28:53 +01:00