You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The extra buffer allowed specifying extra parameters with a format that depends on the key type. This was used only for RSA, to specify a different public exponent.
We removed this interface because it violated algorithm agility (the interpretation of extra depends on the key type), and because domain parameters could be used for this purpose. With the benefit of hindsight, domain parameters are a poor fit: the public exponent is redundant on import or copy (with the extra approach, psa_import_key and psa_copy_key don't have an extra parameter), and it isn't useful when querying the attributes with psa_get_key_attributes (if you want to know the public exponent, call psa_export_public_key).
This is currently not an official PSA API. It's a beta API which is being tried out in Mbed TLS. In Mbed TLS, the interface is declared as experimental.
The goal of this task is to define a better interface for specifying the public exponent when generating an RSA key. This may well be a return to the early draft (but with a different function name, e.g. psa_generate_key_ext).
Follow-ups:
Implement the new interface and deprecate the use of domain parameters.
Remove the use of domain parameters.
The text was updated successfully, but these errors were encountered:
From time being, domain_parameters could not be extracted
from driver. We need to return error to indicate this
situation. This is temporary and would be fixed after Mbed-TLS#6494.
Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
lpy4105
added a commit
to lpy4105/mbedtls
that referenced
this issue
Dec 8, 2023
From time being, domain_parameters could not be extracted
from driver. We need to return error to indicate this
situation. This is temporary and would be fixed after Mbed-TLS#6494.
Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
From time being, domain_parameters could not be extracted
from driver. We need to return error to indicate this
situation. This is temporary and would be fixed after Mbed-TLS#6494.
Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
In an early draft of the PSA API, the interface for generating a key was
The
extra
buffer allowed specifying extra parameters with a format that depends on the key type. This was used only for RSA, to specify a different public exponent.We removed this interface because it violated algorithm agility (the interpretation of
extra
depends on the key type), and because domain parameters could be used for this purpose. With the benefit of hindsight, domain parameters are a poor fit: the public exponent is redundant on import or copy (with theextra
approach,psa_import_key
andpsa_copy_key
don't have anextra
parameter), and it isn't useful when querying the attributes withpsa_get_key_attributes
(if you want to know the public exponent, callpsa_export_public_key
).This is currently not an official PSA API. It's a beta API which is being tried out in Mbed TLS. In Mbed TLS, the interface is declared as experimental.
The goal of this task is to define a better interface for specifying the public exponent when generating an RSA key. This may well be a return to the early draft (but with a different function name, e.g.
psa_generate_key_ext
).Follow-ups:
The text was updated successfully, but these errors were encountered: