-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
psa_generate_key should return INVALID_ARGUMENT for a public key type #4551
Labels
bug
component-psa
PSA keystore/dispatch layer (storage, drivers, …)
good-first-issue
Good for newcomers
help-wanted
This issue is not being actively worked on, but PRs welcome.
Comments
|
gilles-peskine-arm
changed the title
psa_generate_key should return INVALID_ARGUMENT for a public key type
May 25, 2021
psa_generate_key
maybe returns wrong error
gilles-peskine-arm
added
bug
component-psa
PSA keystore/dispatch layer (storage, drivers, …)
good-first-issue
Good for newcomers
Product Backlog
labels
May 25, 2021
gilles-peskine-arm
added
the
help-wanted
This issue is not being actively worked on, but PRs welcome.
label
May 25, 2021
@gilles-peskine-arm I reproduced this locally. Can I investigate this one? |
@mprse Yes, please! |
bensze01
added a commit
to bensze01/psa-arch-tests
that referenced
this issue
Nov 8, 2021
Test psa_generate_key with RSA 2048 Public key Changed the error code from PSA_ERROR_NOT_SUPPORTED to PSA_ERROR_INVALID_ARGUMENT as in the documentation of psa_generate_key() returned values: "PSA_ERROR_INVALID_ARGUMENT The key type is an asymmetric public key type." See: Mbed-TLS/mbedtls#4551 Mbed-TLS/mbedtls#5037 Mbed-TLS/mbedtls#5038 Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
bensze01
added a commit
to bensze01/psa-arch-tests
that referenced
this issue
Nov 10, 2021
Test psa_generate_key with RSA 2048 Public key Changed the error code from PSA_ERROR_NOT_SUPPORTED to PSA_ERROR_INVALID_ARGUMENT as in the documentation of psa_generate_key() returned values: "PSA_ERROR_INVALID_ARGUMENT The key type is an asymmetric public key type." See: Mbed-TLS/mbedtls#4551 Mbed-TLS/mbedtls#5037 Mbed-TLS/mbedtls#5038 Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
bensze01
added a commit
to bensze01/psa-arch-tests
that referenced
this issue
Jan 12, 2022
Test psa_generate_key with RSA 2048 Public key Changed the error code from PSA_ERROR_NOT_SUPPORTED to PSA_ERROR_INVALID_ARGUMENT as in the documentation of psa_generate_key() returned values: "PSA_ERROR_INVALID_ARGUMENT The key type is an asymmetric public key type." See: Mbed-TLS/mbedtls#4551 Mbed-TLS/mbedtls#5037 Mbed-TLS/mbedtls#5038 Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
component-psa
PSA keystore/dispatch layer (storage, drivers, …)
good-first-issue
Good for newcomers
help-wanted
This issue is not being actively worked on, but PRs welcome.
In the PSA Crypto documentation it is written for
psa_generate_key
returned errors:However the following snippet:
prints
which is
PSA_ERROR_NOT_SUPPORTED
(instead of -135).Maybe I am wrong an
PSA_ERROR_NOT_SUPPORTED
is also a valid return value here!This was tested with
mbedtls-2.25.0
.The text was updated successfully, but these errors were encountered: