mbedtls/include/mbedtls
Janos Follath 0e5532d6cf Change mbedtls_mpi_cmp_mpi_ct to check less than
The signature of mbedtls_mpi_cmp_mpi_ct() meant to support using it in
place of mbedtls_mpi_cmp_mpi(). This meant full comparison functionality
and a signed result.

To make the function more universal and friendly to constant time
coding, we change the result type to unsigned. Theoretically, we could
encode the comparison result in an unsigned value, but it would be less
intuitive.

Therefore we won't be able to represent the result as unsigned anymore
and the functionality will be constrained to checking if the first
operand is less than the second. This is sufficient to support the
current use case and to check any relationship between MPIs.

The only drawback is that we need to call the function twice when
checking for equality, but this can be optimised later if an when it is
needed.
2019-11-04 10:39:20 +00:00
..
aes.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
aesni.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
arc4.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
aria.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
asn1.h Fix typos in documentation 2019-10-04 11:35:09 +02:00
asn1write.h mbedtls_asn1_store_named_data: clarify val allocation behavior 2019-09-11 15:46:45 +02:00
base64.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
bignum.h Change mbedtls_mpi_cmp_mpi_ct to check less than 2019-11-04 10:39:20 +00:00
blowfish.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
bn_mul.h Fix -O0 build for Aarch64 bignum multiplication. 2019-09-02 13:44:57 +02:00
camellia.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
ccm.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
chacha20.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
chachapoly.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
check_config.h 3rdparty: Added config checks for Everest 2019-08-19 13:37:46 +01:00
cipher.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
cipher_internal.h Merge remote-tracking branch 'upstream-crypto/development' into psa-api-1.0-beta-merge_development_20190801 2019-07-31 17:47:49 +02:00
cmac.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
compat-1.3.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
config.h Add a note about CTR_DRBG security strength to config.h 2019-10-04 11:16:31 +02:00
ctr_drbg.h Note that mbedtls_ctr_drbg_seed() must not be called twice 2019-10-28 21:05:34 +01:00
des.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
dhm.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
ecdh.h Add mbedtls_ecdh_can_do 2019-08-19 13:37:46 +01:00
ecdsa.h ECDSA: Explain limitations of constant blinding 2019-09-05 11:18:58 +01:00
ecjpake.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
ecp.h Document that curve lists can include partially-supported curves 2019-08-19 13:37:46 +01:00
ecp_internal.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
entropy.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
entropy_poll.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
error.h Merge remote-tracking branch 'tls/development' into development 2019-07-31 10:37:53 +01:00
gcm.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
havege.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
hkdf.h Merge pull request #196 from RonEld/fix_license_header 2019-08-16 09:26:41 +01:00
hmac_drbg.h fixup! HMAC_DRBG: support set_entropy_len() before seed() 2019-10-23 19:46:55 +02:00
md.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
md2.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
md4.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
md5.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
md_internal.h Merge pull request #185 from gilles-peskine-arm/harvard-md 2019-09-10 18:38:39 +01:00
memory_buffer_alloc.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
nist_kw.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
oid.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
padlock.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
pem.h Merge remote-tracking branch 'tls/development' into development 2019-07-31 10:37:53 +01:00
pk.h Merge remote-tracking branch 'upstream-crypto/development' into psa-api-1.0-beta-merge_development_20190801 2019-07-31 17:47:49 +02:00
pk_internal.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
pkcs5.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
pkcs12.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
platform.h Merge remote-tracking branch 'tls/development' into development 2019-07-31 10:37:53 +01:00
platform_time.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
platform_util.h Merge remote-tracking branch 'tls/development' into development 2019-07-31 10:37:53 +01:00
poly1305.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
psa_util.h Merge remote-tracking branch 'upstream-crypto/development' into psa-api-1.0-beta-merge_development_20190801 2019-07-31 17:47:49 +02:00
ripemd160.h Enable ALT implementations of ripemd160 2019-07-15 15:52:25 +01:00
rsa.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
rsa_internal.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
sha1.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
sha256.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
sha512.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
threading.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
timing.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
version.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00
xtea.h Use mbedtls-based path for includes 2019-07-15 15:52:25 +01:00