Janos Follath 2125443aef Add warning for PKCS 1.5 decryption
Any timing variance dependant on the output of this function enables a
Bleichenbacher attack. It is extremely difficult to use safely.

In the Marvin attack paper
(https://people.redhat.com/~hkario/marvin/marvin-attack-paper.pdf) the
author suggests that implementations of PKCS 1.5 decryption that don't
include a countermeasure should be considered inherently dangerous.

They suggest that all libraries implement the same countermeasure, as
implementing different countermeasures across libraries enables the
Bleichenbacher attack as well.

This is extremely fragile and therefore we don't implement it. The use
of PKCS 1.5 in Mbed TLS implements the countermeasures recommended in
the TLS standard (7.4.7.1 of RFC 5246) and is not vulnerable.

Add a warning to PKCS 1.5 decryption to warn users about this.

Signed-off-by: Janos Follath <janos.follath@arm.com>
2023-12-29 11:14:58 +00:00
..
build_info.h Pacify doxygen.sh 2023-03-31 09:07:57 +02:00
crypto_adjust_auto_enabled.h Split config_psa.h: create and populate psa/crypto_adjust_auto_enabled.h 2023-09-05 11:57:14 +02:00
crypto_adjust_config_key_pair_types.h Rename new header file 2023-09-25 17:39:41 +02:00
crypto_adjust_config_synonyms.h Split config_psa.h: create and populate psa/crypto_adjust_config_synonyms.h 2023-09-05 11:57:14 +02:00
crypto_builtin_composites.h Merge pull request #7328 from mprse/ec-jpake-fix1 2023-05-02 20:42:25 +02:00
crypto_builtin_key_derivation.h Replace MBEDTLS_PSA_BUILTIN_PBKDF2_XXX with PSA_HAVE_SOFT_PBKDF2 2023-07-27 21:11:09 +05:30
crypto_builtin_primitives.h Merge remote-tracking branch 'origin/development' into psa-sha3 2023-07-24 15:51:13 +01:00
crypto_compat.h Replace references to Mbed Crypto with Mbed TLS through-out documentation and comments. 2023-05-12 14:59:01 +01:00
crypto_config.h Add a note about p256m near the option to enable secp256r1 2023-09-20 20:54:50 +02:00
crypto_driver_common.h Make PSA headers more self-contained 2021-11-25 20:49:09 +01:00
crypto_driver_contexts_composites.h Change comments to psa_crypto_driver_wrappers.h 2023-09-26 09:09:20 +00:00
crypto_driver_contexts_key_derivation.h Add PSA_HAVE_SOFT_PBKDF2 to crypto_driver_context_key_derivation 2023-07-31 20:22:33 +05:30
crypto_driver_contexts_primitives.h Change comments to psa_crypto_driver_wrappers.h 2023-09-26 09:09:20 +00:00
crypto_extra.h doxygen: fix parameter name typos and misused \p commands 2023-07-13 10:02:32 -04:00
crypto_legacy.h crypto_legacy: fix initial comment 2023-07-27 11:11:19 +02:00
crypto_platform.h Include psa/build_info.h instead of mbedtls/build_info.h 2023-10-10 09:35:22 +02:00
crypto_se_driver.h Replace references to Mbed Crypto with Mbed TLS through-out documentation and comments. 2023-05-12 14:59:01 +01:00
crypto_sizes.h Include psa/build_info.h instead of mbedtls/build_info.h 2023-10-10 09:35:22 +02:00
crypto_struct.h Include psa/build_info.h instead of mbedtls/build_info.h 2023-10-10 09:35:22 +02:00
crypto_types.h Include psa/build_info.h instead of mbedtls/build_info.h 2023-10-10 09:35:22 +02:00
crypto_values.h Add warning for PKCS 1.5 decryption 2023-12-29 11:14:58 +00:00
crypto.h doxygen: fix parameter name typos and misused \p commands 2023-07-13 10:02:32 -04:00