mbedtls/tests/suites
Gilles Peskine ca6e8aac58 Support negative zero as MPI test input
The bignum module does not officially support "negative zero" (an
mbedtls_mpi object with s=-1 and all limbs zero). However, we have a
history of bugs where a function that should produce an official
zero (with s=1), produces a negative zero in some circumstances. So it's
good to check that the bignum functions are robust when passed a negative
zero as input. And for that, we need a way to construct a negative zero
from test case arguments.

There are checks that functions don't produce negative zeros as output in
the test suite. Skip those checks if there's a negative zero input: we
don't want functions to _create_ negative zeros, but we don't mind if
they _propagate_ negative zeros.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2022-11-15 20:47:07 +01:00
..
helpers.function
host_test.function
main_test.function Change test templating syntax to be valid C 2022-11-04 19:53:39 +00:00
test_suite_aes.cbc.data
test_suite_aes.cfb.data
test_suite_aes.ecb.data
test_suite_aes.function
test_suite_aes.ofb.data
test_suite_aes.rest.data
test_suite_aes.xts.data
test_suite_aria.data
test_suite_aria.function
test_suite_asn1parse.data Deprecate mbedtls_asn1_free_named_data() 2022-11-07 15:42:44 -05:00
test_suite_asn1parse.function Update tests/suites/test_suite_asn1parse.function 2022-11-07 20:09:38 -05:00
test_suite_asn1write.data
test_suite_asn1write.function
test_suite_base64.data
test_suite_base64.function
test_suite_bignum_core.function Let the allocated memory visible for the memory sanitizer 2022-11-07 15:14:49 +01:00
test_suite_bignum_core.misc.data Don't test mbedtls_mpi_core_lt_ct with 0 limbs 2022-11-09 11:18:38 +01:00
test_suite_bignum_mod_raw.data Remove trailing new lines 2022-11-02 17:33:11 +00:00
test_suite_bignum_mod_raw.function Must call mbedtls_mpi_mod_modulus_init() before anything else in tests 2022-11-15 06:15:15 +00:00
test_suite_bignum_mod.data Remove trailing new lines 2022-11-02 17:33:11 +00:00
test_suite_bignum_mod.function Add merge slots to Bignum files 2022-11-02 17:27:25 +00:00
test_suite_bignum.function Support negative zero as MPI test input 2022-11-15 20:47:07 +01:00
test_suite_bignum.misc.data Support negative zero as MPI test input 2022-11-15 20:47:07 +01:00
test_suite_camellia.data
test_suite_camellia.function
test_suite_ccm.data
test_suite_ccm.function
test_suite_chacha20.data
test_suite_chacha20.function
test_suite_chachapoly.data
test_suite_chachapoly.function
test_suite_cipher.aes.data
test_suite_cipher.aria.data
test_suite_cipher.camellia.data
test_suite_cipher.ccm.data
test_suite_cipher.chacha20.data
test_suite_cipher.chachapoly.data
test_suite_cipher.des.data
test_suite_cipher.function
test_suite_cipher.gcm.data
test_suite_cipher.misc.data
test_suite_cipher.nist_kw.data
test_suite_cipher.null.data
test_suite_cipher.padding.data
test_suite_cmac.data
test_suite_cmac.function
test_suite_ctr_drbg.data
test_suite_ctr_drbg.function
test_suite_debug.data
test_suite_debug.function
test_suite_des.data
test_suite_des.function
test_suite_dhm.data
test_suite_dhm.function
test_suite_ecdh.data
test_suite_ecdh.function
test_suite_ecdsa.data
test_suite_ecdsa.function
test_suite_ecjpake.data
test_suite_ecjpake.function
test_suite_ecp.data
test_suite_ecp.function
test_suite_entropy.data
test_suite_entropy.function
test_suite_error.data
test_suite_error.function
test_suite_gcm.aes128_de.data
test_suite_gcm.aes128_en.data
test_suite_gcm.aes192_de.data
test_suite_gcm.aes192_en.data
test_suite_gcm.aes256_de.data
test_suite_gcm.aes256_en.data
test_suite_gcm.camellia.data
test_suite_gcm.function
test_suite_gcm.misc.data
test_suite_hkdf.data
test_suite_hkdf.function
test_suite_hmac_drbg.function
test_suite_hmac_drbg.misc.data
test_suite_hmac_drbg.no_reseed.data
test_suite_hmac_drbg.nopr.data
test_suite_hmac_drbg.pr.data
test_suite_lmots.data
test_suite_lmots.function
test_suite_lms.data
test_suite_lms.function
test_suite_md.data
test_suite_md.function
test_suite_mdx.data
test_suite_mdx.function
test_suite_memory_buffer_alloc.data
test_suite_memory_buffer_alloc.function
test_suite_mps.data
test_suite_mps.function
test_suite_net.data
test_suite_net.function
test_suite_nist_kw.data
test_suite_nist_kw.function
test_suite_oid.data
test_suite_oid.function
test_suite_pem.data
test_suite_pem.function
test_suite_pk.data
test_suite_pk.function
test_suite_pkcs1_v15.data
test_suite_pkcs1_v15.function
test_suite_pkcs1_v21.data
test_suite_pkcs1_v21.function
test_suite_pkcs5.data
test_suite_pkcs5.function
test_suite_pkcs12.data
test_suite_pkcs12.function
test_suite_pkparse.data
test_suite_pkparse.function
test_suite_pkwrite.data
test_suite_pkwrite.function
test_suite_poly1305.data
test_suite_poly1305.function
test_suite_psa_crypto_attributes.data
test_suite_psa_crypto_attributes.function
test_suite_psa_crypto_driver_wrappers.data
test_suite_psa_crypto_driver_wrappers.function
test_suite_psa_crypto_entropy.data
test_suite_psa_crypto_entropy.function
test_suite_psa_crypto_generate_key.function
test_suite_psa_crypto_hash.data
test_suite_psa_crypto_hash.function
test_suite_psa_crypto_init.data
test_suite_psa_crypto_init.function
test_suite_psa_crypto_metadata.data
test_suite_psa_crypto_metadata.function
test_suite_psa_crypto_not_supported.function
test_suite_psa_crypto_not_supported.misc.data
test_suite_psa_crypto_op_fail.function
test_suite_psa_crypto_op_fail.misc.data
test_suite_psa_crypto_persistent_key.data
test_suite_psa_crypto_persistent_key.function
test_suite_psa_crypto_se_driver_hal_mocks.data
test_suite_psa_crypto_se_driver_hal_mocks.function
test_suite_psa_crypto_se_driver_hal.data
test_suite_psa_crypto_se_driver_hal.function
test_suite_psa_crypto_slot_management.data
test_suite_psa_crypto_slot_management.function
test_suite_psa_crypto_storage_format.function
test_suite_psa_crypto_storage_format.misc.data
test_suite_psa_crypto.data Merge pull request #6390 from mpg/fix-ecjpake-psa-format 2022-11-07 17:35:44 +01:00
test_suite_psa_crypto.function Improve error injection in EC J-PAKE tests 2022-11-08 08:12:56 -05:00
test_suite_psa_its.data
test_suite_psa_its.function
test_suite_random.data
test_suite_random.function
test_suite_rsa.data
test_suite_rsa.function
test_suite_shax.data
test_suite_shax.function
test_suite_ssl.data
test_suite_ssl.function
test_suite_timing.data
test_suite_timing.function
test_suite_version.data
test_suite_version.function
test_suite_x509parse.data Merge pull request #6265 from Kabbah/x509-info-hwmodulename-hex 2022-11-08 17:11:07 +01:00
test_suite_x509parse.function Merge pull request #6265 from Kabbah/x509-info-hwmodulename-hex 2022-11-08 17:11:07 +01:00
test_suite_x509write.data Merge pull request #6454 from valeriosetti/issue4577 2022-11-15 09:39:07 +01:00
test_suite_x509write.function Merge pull request #6454 from valeriosetti/issue4577 2022-11-15 09:39:07 +01:00