mbedtls/include/psa
Gilles Peskine c81393b2ed generate/derive key ext: pass method_data_length rather than method_length
Instead of passing the size of the whole structure, just pass the data
length and let the implementation worry about adding the size of the
structure. The intent with passing the structure size was to allow
the client code in a client-server implementation to know nothing
about the structure and just copy the bytes to the server. But that was not
really a useful consideration since the application has to know the
structure layout, so it has to be available in the client implementation's
headers. Passing the method data length makes life simpler for everyone by
not having to worry about possible padding at the end of the structure, and
removes a potential error condition
(method_length < sizeof(psa_key_generation_method_t)).

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2024-02-15 11:57:48 +01:00
..
build_info.h Header updates 2023-11-03 12:21:36 +00:00
crypto.h generate/derive key ext: pass method_data_length rather than method_length 2024-02-15 11:57:48 +01:00
crypto_adjust_auto_enabled.h Header updates 2023-11-03 12:21:36 +00:00
crypto_adjust_config_key_pair_types.h Header updates 2023-11-03 12:21:36 +00:00
crypto_adjust_config_synonyms.h adjust_config_synonyms: make CCM and CCM* indipendent 2023-11-15 09:16:37 +01:00
crypto_builtin_composites.h crypto_builtin_composites: add missing guards for includes 2023-12-14 18:08:14 +01:00
crypto_builtin_key_derivation.h Header updates 2023-11-03 12:21:36 +00:00
crypto_builtin_primitives.h Header updates 2023-11-03 12:21:36 +00:00
crypto_compat.h Header updates 2023-11-03 12:21:36 +00:00
crypto_config.h crypto_config: define feature macros for DH keys 2024-01-17 11:47:44 +01:00
crypto_driver_common.h Header updates 2023-11-03 12:21:36 +00:00
crypto_driver_contexts_composites.h Header updates 2023-11-03 12:21:36 +00:00
crypto_driver_contexts_key_derivation.h Header updates 2023-11-03 12:21:36 +00:00
crypto_driver_contexts_primitives.h Header updates 2023-11-03 12:21:36 +00:00
crypto_extra.h Merge pull request #8764 from Ryan-Everett-arm/threadsafe-key-wiping 2024-02-12 09:37:59 +00:00
crypto_legacy.h Header updates 2023-11-03 12:21:36 +00:00
crypto_platform.h Add a client view of the multipart contexts 2024-01-22 11:39:36 +00:00
crypto_se_driver.h Header updates 2023-11-03 12:21:36 +00:00
crypto_sizes.h crypto_sizes: adjust PSA_VENDOR_FFDH_MAX_KEY_BITS based on the supported groups 2024-01-17 15:56:30 +01:00
crypto_struct.h generate/derive key ext: pass method_data_length rather than method_length 2024-02-15 11:57:48 +01:00
crypto_types.h Document new functions psa_generate_key_ext, psa_key_derivation_output_key_ext 2024-02-15 11:19:26 +01:00
crypto_values.h Merge remote-tracking branch 'restricted/development' into mbedtls-3.5.2rc 2024-01-24 09:49:15 +00:00