Merge psa_core_key_attributes_t back into psa_key_attributes_t #6496
Labels
component-psa
PSA keystore/dispatch layer (storage, drivers, …)
enhancement
size-m
Estimated task size: medium (~1w)
size-optimisation
The substructure
psa_core_key_attributes_t
was created in ARMmbed/mbed-crypto#197 mainly to save RAM usage in the key store. But it has costs:psa_core_key_attributes_t
andpsa_key_attributes_t
.psa_core_key_attributes_t
to apsa_key_attributes_t
each time we call a driver wrapper, and although the cost each time is small, it's done in a lot of places so this adds up to a substantial amount.Goal of this task: put the all the fields into a single structure.
This will increase the RAM usage because of the extra fields (
domain_parameters
anddomain_parameters_size
). But we can make that conditional to having RSA in the build, since domain parameters are only used for RSA. Or we might remove domain parameters altogether.The text was updated successfully, but these errors were encountered: