mbedtls/programs/pkey
Hanno Becker d4d60579e4 Address issues found by coverity
1) `mbedtls_rsa_import_raw` used an uninitialized return
   value when it was called without any input parameters.
   While not sensible, this is allowed and should be a
   succeeding no-op.

2) The MPI test for prime generation missed a return value
   check for a call to `mbedtls_mpi_shift_r`. This is neither
   critical nor new but should be fixed.

3) Both the RSA keygeneration example program and the
   RSA test suites contained code initializing an RSA context
   after a potentially failing call to CTR DRBG initialization,
   leaving the corresponding RSA context free call in the
   cleanup section of the respective function orphaned.
   While this defect existed before, Coverity picked up on
   it again because of newly introduced MPI's that were
   also wrongly initialized only after the call to CTR DRBG
   init. The commit fixes both the old and the new issue
   by moving the initializtion of both the RSA context and
   all MPI's prior to the first potentially failing call.
2018-01-10 07:30:47 +00:00
..
CMakeLists.txt Add example program for Curve25519 2015-10-09 12:13:29 +01:00
dh_client.c Add SHA1 guards in dh_client.c and dh_server.c 2016-10-07 14:17:56 +01:00
dh_genprime.c Adds stdlib.h header to dh_genprime sample app 2016-08-24 20:24:21 +03:00
dh_prime.txt - Changed saved value to RCF 3526 2048 MODP group 2012-10-03 19:50:54 +00:00
dh_server.c Adapt uses of mbedtls_rsa_complete to removed PRNG argument 2017-10-10 16:56:22 +01:00
ecdh_curve25519.c Minor: Fix typos in program comments 2017-07-19 23:33:24 +02:00
ecdsa.c Clarify the use of ECDSA API 2017-03-10 11:31:41 +00:00
gen_key.c Adapt gen_key example program to new RSA interface 2017-08-23 16:17:27 +01:00
key_app.c Adapt key_app example program to new RSA interface 2017-08-23 16:17:27 +01:00
key_app_writer.c Adapt key_app_writer example program to new RSA interface 2017-08-23 16:17:27 +01:00
mpi_demo.c Change main license to Apache 2.0 2015-09-04 14:21:07 +02:00
pk_decrypt.c Change main license to Apache 2.0 2015-09-04 14:21:07 +02:00
pk_encrypt.c Change main license to Apache 2.0 2015-09-04 14:21:07 +02:00
pk_sign.c Address user reported coverity issues. 2016-06-09 13:41:28 +01:00
pk_verify.c Change main license to Apache 2.0 2015-09-04 14:21:07 +02:00
rsa_decrypt.c Adapt uses of mbedtls_rsa_complete to removed PRNG argument 2017-10-10 16:56:22 +01:00
rsa_encrypt.c Adapt rsa_encrypt example program to new RSA interface 2017-08-23 16:17:28 +01:00
rsa_genkey.c Address issues found by coverity 2018-01-10 07:30:47 +00:00
rsa_priv.txt - Smaller default values 2012-10-24 14:29:17 +00:00
rsa_pub.txt - Smaller default values 2012-10-24 14:29:17 +00:00
rsa_sign.c Adapt uses of mbedtls_rsa_complete to removed PRNG argument 2017-10-10 16:56:22 +01:00
rsa_sign_pss.c Address user reported coverity issues. 2016-06-09 13:41:28 +01:00
rsa_verify.c Merge branch 'development' into development-restricted 2016-06-14 09:20:46 +01:00
rsa_verify_pss.c Change main license to Apache 2.0 2015-09-04 14:21:07 +02:00