mbedtls/library
Gilles Peskine ae3741e8a4 Fix an incorrect error code if RSA private operation glitched
mbedtls_rsa_private() could return the sum of two RSA error codes
instead of a valid error code in some rare circumstances:

* If rsa_prepare_blinding() returned  MBEDTLS_ERR_RSA_RNG_FAILED
  (indicating a misbehaving or misconfigured RNG).
* If the comparison with the public value failed (typically indicating
  a glitch attack).

Make sure not to add two high-level error codes.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2021-01-06 18:22:40 +01:00
..
.gitignore
aes.c
aesni.c
arc4.c
aria.c
asn1parse.c
asn1write.c
base64.c
bignum.c Merge branch 'development-restricted' into mbedtls-2.25.0r0-pr 2020-12-08 20:59:45 +00:00
blowfish.c
camellia.c
ccm.c
certs.c
chacha20.c
chachapoly.c
check_crypto_config.h
cipher_wrap.c
cipher.c Fix unused param warnings in auth_xxcrypt_ext() 2020-12-07 10:42:21 +01:00
cmac.c
CMakeLists.txt Bump version to Mbed TLS 2.25.0 2020-12-09 15:05:22 +00:00
common.h
ctr_drbg.c Updated per comments from @gilles-peskine-arm. 2021-01-04 18:14:32 -06:00
debug.c
des.c
dhm.c
ecdh.c
ecdsa.c
ecjpake.c
ecp_curves.c Fix uncaught error if fix_negative fails 2020-12-06 22:32:02 +01:00
ecp.c
entropy_poll.c
entropy.c
error.c
gcm.c
havege.c
hkdf.c
hmac_drbg.c
Makefile Bump version to Mbed TLS 2.25.0 2020-12-09 15:05:22 +00:00
md2.c
md4.c
md5.c
md.c
memory_buffer_alloc.c
net_sockets.c
nist_kw.c
oid.c
padlock.c
pem.c Remove Extraneous bytes from buffer post pem write 2020-12-07 17:29:42 +00:00
pk_wrap.c
pk.c
pkcs5.c
pkcs11.c
pkcs12.c
pkparse.c
pkwrite.c
platform_util.c
platform.c
poly1305.c
psa_crypto_core.h
psa_crypto_driver_wrappers.c
psa_crypto_driver_wrappers.h
psa_crypto_invasive.h
psa_crypto_its.h
psa_crypto_random_impl.h Explain the design of mbedtls_psa_get_random better 2021-01-05 16:03:55 +01:00
psa_crypto_se.c
psa_crypto_se.h
psa_crypto_service_integration.h
psa_crypto_slot_management.c
psa_crypto_slot_management.h
psa_crypto_storage.c
psa_crypto_storage.h
psa_crypto.c mbedtls_to_psa_error: fix a copypasta and a missing translation 2021-01-06 18:22:40 +01:00
psa_its_file.c
ripemd160.c
rsa_internal.c
rsa.c Fix an incorrect error code if RSA private operation glitched 2021-01-06 18:22:40 +01:00
sha1.c
sha256.c
sha512.c
ssl_cache.c
ssl_ciphersuites.c
ssl_cli.c
ssl_cookie.c
ssl_invasive.h
ssl_msg.c Merge pull request #781 from mpg/cipher-auth-crypt-restricted 2020-12-07 12:58:36 +00:00
ssl_srv.c
ssl_ticket.c Stop using deprecated functions in the library 2020-12-03 12:25:10 +01:00
ssl_tls13_keys.c
ssl_tls13_keys.h
ssl_tls.c
threading.c
timing.c
version_features.c
version.c
x509_create.c
x509_crl.c
x509_crt.c
x509_csr.c
x509.c
x509write_crt.c
x509write_csr.c
xtea.c