mbedtls/library
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
..
.gitignore
aes.c
aesni.c
arc4.c
asn1parse.c
asn1write.c
base64.c
bignum.c
blowfish.c
camellia.c
ccm.c Allow alternate core implementation of CCM 2017-04-04 11:37:15 +02:00
certs.c
cipher.c
cipher_wrap.c
cmac.c
CMakeLists.txt Merge branch 'development' into iotssl-1619 2017-12-22 10:24:32 +00:00
ctr_drbg.c
debug.c
des.c
dhm.c
ecdh.c Address PR cpomments reviews 2017-10-10 19:04:27 +03:00
ecdsa.c
ecjpake.c
ecp.c
ecp_curves.c
entropy.c
entropy_poll.c
error.c
gcm.c Merge remote-tracking branch 'upstream-public/pr/964' into development 2018-01-02 16:24:29 +01:00
havege.c
hmac_drbg.c
Makefile Introduce new files rsa_internal.[ch] for RSA helper functions 2017-10-11 11:00:19 +01:00
md.c
md2.c
md4.c
md5.c Change main license to Apache 2.0 2015-09-04 14:21:07 +02:00
md_wrap.c
memory_buffer_alloc.c
net_sockets.c
oid.c
padlock.c
pem.c Add missing ret code checks in PEM module 2017-05-30 16:40:36 +01:00
pk.c
pk_wrap.c
pkcs5.c
pkcs11.c
pkcs12.c
pkparse.c
pkwrite.c Adapt PK test suite to use new interface 2017-08-23 16:17:27 +01:00
platform.c
ripemd160.c
rsa.c
rsa_internal.c
sha1.c
sha256.c
sha512.c
ssl_cache.c
ssl_ciphersuites.c Undo API change 2017-07-27 21:44:33 +01:00
ssl_cli.c
ssl_cookie.c
ssl_srv.c
ssl_ticket.c
ssl_tls.c
threading.c
timing.c
version.c
version_features.c
x509.c
x509_create.c Fix other occurrences of same bounds check issue 2015-10-21 12:50:45 +02:00
x509_crl.c
x509_crt.c
x509_csr.c
x509write_crt.c
x509write_csr.c
xtea.c