mbedtls/programs/pkey
Manuel Pégourié-Gonnard 84dea01f36 Add RNG params to private key parsing
This is necessary for the case where the public part of an EC keypair
needs to be computed from the private part - either because it was not
included (it's an optional component) or because it was compressed (a
format we can't parse).

This changes the API of two public functions: mbedtls_pk_parse_key() and
mbedtls_pk_parse_keyfile().

Tests and programs have been adapted. Some programs use a non-secure RNG
(from the test library) just to get things to compile and run; in a
future commit this should be improved in order to demonstrate best
practice.

Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
2021-06-17 09:38:38 +02:00
..
CMakeLists.txt Build: Add MBEDTLS_TARGET_PREFIX 2020-10-20 13:44:44 +01:00
dh_client.c Merge pull request #4629 from TRodziewicz/rename_functions_whose_deprecated_variants_have_been_removd 2021-06-15 20:32:07 +02:00
dh_genprime.c Merge pull request #3574 from makise-homura/e2k_support 2020-08-25 09:46:36 +02:00
dh_prime.txt
dh_server.c Merge pull request #4629 from TRodziewicz/rename_functions_whose_deprecated_variants_have_been_removd 2021-06-15 20:32:07 +02:00
ecdh_curve25519.c Add MBEDTLS_PRIVATE wrapping to sample programs. 2021-05-21 18:10:44 +02:00
ecdsa.c Merge pull request #4629 from TRodziewicz/rename_functions_whose_deprecated_variants_have_been_removd 2021-06-15 20:32:07 +02:00
gen_key.c Make some fields of mbedtls_ecp_group public 2021-06-15 00:12:37 +02:00
key_app.c Add RNG params to private key parsing 2021-06-17 09:38:38 +02:00
key_app_writer.c Add RNG params to private key parsing 2021-06-17 09:38:38 +02:00
mpi_demo.c Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
pk_decrypt.c Add RNG params to private key parsing 2021-06-17 09:38:38 +02:00
pk_encrypt.c Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
pk_sign.c Add RNG params to private key parsing 2021-06-17 09:38:38 +02:00
pk_verify.c Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
rsa_decrypt.c Merge remote-tracking branch 'mbedtls/development' into mbedtls_private_with_python 2021-06-14 16:17:32 +02:00
rsa_encrypt.c Merge remote-tracking branch 'mbedtls/development' into mbedtls_private_with_python 2021-06-14 16:17:32 +02:00
rsa_genkey.c Change mbedtls_rsa_init() signature 2021-06-08 14:11:19 +02:00
rsa_priv.txt Normalize line endings 2020-05-27 21:55:08 +02:00
rsa_pub.txt Normalize line endings 2020-05-27 21:55:08 +02:00
rsa_sign.c Merge remote-tracking branch 'mbedtls/development' into mbedtls_private_with_python 2021-06-14 16:17:32 +02:00
rsa_sign_pss.c Add RNG params to private key parsing 2021-06-17 09:38:38 +02:00
rsa_verify.c Merge remote-tracking branch 'mbedtls/development' into mbedtls_private_with_python 2021-06-14 16:17:32 +02:00
rsa_verify_pss.c Change mbedtls_rsa_set_padding() signature 2021-06-08 14:11:10 +02:00