Demi Marie Obenour bb3607abc8 Use memcmp() to parse version numbers
This makes the code shorter and more efficient, at the expense of less
useful error messages.  Also reject explicit encodings of the default
version number (1), which must be omitted as per ASN.1 DER.

Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
2023-06-05 14:30:35 -04:00
..
.gitignore Ignore *.o everywhere 2023-05-12 13:58:05 +02:00
aes.c AESNI: Overhaul implementation selection 2023-03-16 17:21:33 +01:00
aesce.c fix clang test fail 2023-04-26 16:55:37 +08:00
aesce.h Add compiler version checks. 2023-04-26 13:06:01 +08:00
aesni.c AESNI: Overhaul implementation selection 2023-03-16 17:21:33 +01:00
aesni.h Fix preprocessor conditional 2023-03-17 17:31:18 +01:00
alignment.h psa: Remove unnecessary headers 2023-03-31 09:01:45 +02:00
aria.c Switch to the new code style 2023-01-11 14:50:10 +01:00
asn1parse.c Switch to the new code style 2023-01-11 14:50:10 +01:00
asn1write.c Read and write X25519 and X448 private keys 2023-05-04 13:01:47 +02:00
base64.c Remove DIY SIZE_MAX definitions 2023-05-18 20:49:03 +01:00
bignum_core.c Merge pull request #7489 from minosgalanakis/ecp/7246_xtrack_core_shift_l 2023-05-16 17:13:19 +01:00
bignum_core.h Merge pull request #7489 from minosgalanakis/ecp/7246_xtrack_core_shift_l 2023-05-16 17:13:19 +01:00
bignum_mod_raw_invasive.h Update documentation 2023-01-23 19:10:26 +01:00
bignum_mod_raw.c bignum: Removed merge scaffolding. 2023-04-05 16:13:11 +01:00
bignum_mod_raw.h bignum: Removed merge scaffolding. 2023-04-05 16:13:11 +01:00
bignum_mod.c Merge pull request #7342 from gabor-mezei-arm/6679_prevent_mpi_mod_write_from_corrupting_the_input 2023-04-06 15:56:28 +01:00
bignum_mod.h bignum: Removed merge scaffolding. 2023-04-05 16:13:11 +01:00
bignum.c Remove DIY SIZE_MAX definitions 2023-05-18 20:49:03 +01:00
bn_mul.h Tidy-up - move asm #define into build_info.h 2023-01-20 14:04:48 +00:00
camellia.c Switch to the new code style 2023-01-11 14:50:10 +01:00
ccm.c Fix use of sizeof without brackets 2023-02-02 12:40:50 +00:00
chacha20.c Switch to the new code style 2023-01-11 14:50:10 +01:00
chachapoly.c Switch to the new code style 2023-01-11 14:50:10 +01:00
check_crypto_config.h Switch to the new code style 2023-01-11 14:50:10 +01:00
cipher_wrap.c Switch to the new code style 2023-01-11 14:50:10 +01:00
cipher_wrap.h Switch to the new code style 2023-01-11 14:50:10 +01:00
cipher.c Switch to the new code style 2023-01-11 14:50:10 +01:00
cmac.c Switch to the new code style 2023-01-11 14:50:10 +01:00
CMakeLists.txt Merge pull request #6010 from mprse/ffdh_import_export 2023-05-10 11:40:54 +02:00
common.h Have MBEDTLS_STATIC_ASSERT() match current development more closely 2023-03-14 12:03:47 +00:00
constant_time_internal.h Switch to the new code style 2023-01-11 14:50:10 +01:00
constant_time_invasive.h Switch to the new code style 2023-01-11 14:50:10 +01:00
constant_time.c Use mbedtls_ct_uint_if() rather than mbedtls_ct_cond_select_sign() 2023-05-03 09:44:01 +01:00
ctr_drbg.c Remove redundant SIZE_MAX guards 2023-02-10 16:03:44 +00:00
debug.c Merge pull request #7554 from valeriosetti/issue7073-reshape 2023-05-23 15:08:45 +02:00
des.c Switch to the new code style 2023-01-11 14:50:10 +01:00
dhm.c Switch to the new code style 2023-01-11 14:50:10 +01:00
ecdh.c Update SEC1 link in ecdh.c 2023-04-12 06:07:23 +00:00
ecdsa.c Merge pull request #7499 from JonathanWitthoeft/development 2023-04-28 12:45:32 +02:00
ecjpake.c ECJPAKE: use MD_CAN macros 2023-03-21 16:28:00 +01:00
ecp_curves.c Merge pull request #7591 from minosgalanakis/ecp/6028_xtract_fast_reduction_curve25519 2023-06-01 17:43:35 +01:00
ecp_internal_alt.h Switch to the new code style 2023-01-11 14:50:10 +01:00
ecp_invasive.h Merge pull request #7591 from minosgalanakis/ecp/6028_xtract_fast_reduction_curve25519 2023-06-01 17:43:35 +01:00
ecp.c Merge pull request #7429 from xkqian/bignumber_update_comments 2023-04-26 16:21:56 +01:00
entropy_poll.c Switch to the new code style 2023-01-11 14:50:10 +01:00
entropy_poll.h Switch to the new code style 2023-01-11 14:50:10 +01:00
entropy.c Use MD-light in entropy.c 2023-03-24 10:43:40 +01:00
gcm.c Merge branch 'development-restricted' into mbedtls-3.4.0rc0-pr 2023-03-21 15:35:17 +00:00
hash_info.c Remove legacy_or_psa.h 2023-03-21 16:29:31 +01:00
hash_info.h Unify PSA to Mbed TLS error translation 2023-03-03 05:23:44 -05:00
hkdf.c Switch to the new code style 2023-01-11 14:50:10 +01:00
hmac_drbg.c Fix instances of old feature macros being used 2023-03-24 10:43:40 +01:00
lmots.c Unify PSA to Mbed TLS error translation 2023-03-03 05:23:44 -05:00
lmots.h Unify PSA to Mbed TLS error translation 2023-03-03 05:23:44 -05:00
lms.c Unify PSA to Mbed TLS error translation 2023-03-03 05:23:44 -05:00
Makefile Fix typos, comments, style, optimize macros 2023-04-26 09:07:20 +02:00
md5.c Switch to the new code style 2023-01-11 14:50:10 +01:00
md_wrap.h Switch to the new code style 2023-01-11 14:50:10 +01:00
md.c Remove certain null pointer checks when only MD_LIGHT enabled 2023-06-01 13:05:28 +01:00
memory_buffer_alloc.c Switch to the new code style 2023-01-11 14:50:10 +01:00
mps_common.h Merge branch 'development' into development 2023-06-04 14:57:19 -04:00
mps_error.h Switch to the new code style 2023-01-11 14:50:10 +01:00
mps_reader.c Switch to the new code style 2023-01-11 14:50:10 +01:00
mps_reader.h Switch to the new code style 2023-01-11 14:50:10 +01:00
mps_trace.c Switch to the new code style 2023-01-11 14:50:10 +01:00
mps_trace.h Switch to the new code style 2023-01-11 14:50:10 +01:00
net_sockets.c Switch to the new code style 2023-01-11 14:50:10 +01:00
nist_kw.c Switch to the new code style 2023-01-11 14:50:10 +01:00
oid.c Merge pull request #6866 from mprse/extract-key-ids 2023-05-08 20:38:29 +02:00
padlock.c Tidy-up - move asm #define into build_info.h 2023-01-20 14:04:48 +00:00
padlock.h Switch to the new code style 2023-01-11 14:50:10 +01:00
pem.c mbedtls_pem_write_buffer: Correctly report needed buffer size for all possible line lengths and counts 2023-05-03 15:30:49 +02:00
pk_internal.h pk_internal: minor rearrangement in mbedtls_pk_get_group_id() 2023-06-05 11:08:28 +02:00
pk_wrap.c pk_wrap: add support for key pair check for EC opaque keys 2023-06-05 11:05:40 +02:00
pk_wrap.h pk: pass pk_context pointer to wrappers intead of void one 2023-04-20 12:02:34 +02:00
pk.c pk: allow key pair checking for opaque keys 2023-06-05 11:05:40 +02:00
pkcs5.c PKCS5: use MD_CAN macros 2023-03-21 16:28:00 +01:00
pkcs7.c Update wording in comments 2023-03-13 12:15:49 +00:00
pkcs12.c PKCS12: always use MD light 2023-03-21 16:28:00 +01:00
pkparse.c pkparse: avoid creating extra copy of the private key 2023-05-24 16:02:36 +02:00
pkwrite.c pk: minor code fixes 2023-06-01 11:06:41 +02:00
pkwrite.h pk: update pkparse and pkwrite to use the new public key storing solution 2023-05-17 15:33:07 +02:00
platform_util.c Merge pull request #6891 from yuhaoth/pr/add-milliseconds-platform-function 2023-03-31 11:47:37 +01:00
platform.c Switch to the new code style 2023-01-11 14:50:10 +01:00
poly1305.c Switch to the new code style 2023-01-11 14:50:10 +01:00
psa_crypto_aead.c Switch to the new code style 2023-01-11 14:50:10 +01:00
psa_crypto_aead.h Make \retval commands non-empty 2023-02-14 19:21:09 +01:00
psa_crypto_cipher.c Switch to the new code style 2023-01-11 14:50:10 +01:00
psa_crypto_cipher.h Make \retval commands non-empty 2023-02-14 19:21:09 +01:00
psa_crypto_client.c Switch to the new code style 2023-01-11 14:50:10 +01:00
psa_crypto_core_common.h psa: Introduce PSA crypto core common symbols 2023-03-31 09:07:57 +02:00
psa_crypto_core.h Add utility function to check for drivers init 2023-03-16 09:46:51 +01:00
psa_crypto_driver_wrappers.h Integrate p256-m as an example driver alongside Mbed TLS and write documentation for the example. 2023-04-28 17:54:09 +01:00
psa_crypto_ecp.c Make mbedtls_sa_ecp_load_public_part return psa_status_t 2023-02-15 23:34:29 +00:00
psa_crypto_ecp.h Merge pull request #7098 from gilles-peskine-arm/retval-non-empty 2023-02-24 09:10:53 +00:00
psa_crypto_ffdh.c Add driver support for DH import key and export public key 2023-05-30 15:19:14 +02:00
psa_crypto_ffdh.h Add driver support for DH import key and export public key 2023-05-30 15:19:14 +02:00
psa_crypto_hash.c Switch to the new code style 2023-01-11 14:50:10 +01:00
psa_crypto_hash.h Make \retval commands non-empty 2023-02-14 19:21:09 +01:00
psa_crypto_invasive.h Switch to the new code style 2023-01-11 14:50:10 +01:00
psa_crypto_its.h Switch to the new code style 2023-01-11 14:50:10 +01:00
psa_crypto_mac.c Switch to the new code style 2023-01-11 14:50:10 +01:00
psa_crypto_mac.h Make \retval commands non-empty 2023-02-14 19:21:09 +01:00
psa_crypto_pake.c Optimize code (pake role type, freeing buffers) 2023-04-25 14:30:34 +02:00
psa_crypto_pake.h Further pake code optimizations 2023-03-08 09:54:00 +01:00
psa_crypto_random_impl.h Fix entropy-related feature macros 2023-03-24 10:43:40 +01:00
psa_crypto_rsa.c psa_crypto_rsa: remove PK_WRITE_C in psa_rsa_export_key 2023-03-08 11:03:09 +01:00
psa_crypto_rsa.h Make \retval commands non-empty 2023-02-14 19:21:09 +01:00
psa_crypto_se.c Implement and use MBEDTLS_STATIC_ASSERT() 2023-03-08 14:19:51 +00:00
psa_crypto_se.h Switch to the new code style 2023-01-11 14:50:10 +01:00
psa_crypto_slot_management.c psa: Remove MBEDTLS_PSA_CRYPTO_DRIVERS configuration option 2023-03-31 09:07:54 +02:00
psa_crypto_slot_management.h Make \retval commands non-empty 2023-02-14 19:21:09 +01:00
psa_crypto_storage.c Make \retval commands non-empty 2023-02-14 19:21:09 +01:00
psa_crypto_storage.h Make \retval commands non-empty 2023-02-14 19:21:09 +01:00
psa_crypto.c Merge pull request #7577 from mprse/ffdh_drivers 2023-06-01 10:26:08 +02:00
psa_its_file.c Switch to the new code style 2023-01-11 14:50:10 +01:00
psa_util.c psa_util: fix for correctly computing elements in array 2023-03-27 11:25:10 -04:00
ripemd160.c Fix use of sizeof without brackets 2023-02-02 12:40:50 +00:00
rsa_alt_helpers.c Switch to the new code style 2023-01-11 14:50:10 +01:00
rsa_alt_helpers.h Switch to the new code style 2023-01-11 14:50:10 +01:00
rsa.c RSA: use MD_CAN macros 2023-03-21 16:28:00 +01:00
sha1.c Switch to the new code style 2023-01-11 14:50:10 +01:00
sha256.c Improve macro naming 2023-03-14 16:03:57 +00:00
sha512.c Improve macro naming 2023-03-14 16:03:57 +00:00
ssl_cache.c ssl_cache: Error renaming and document improvement 2023-04-10 14:40:03 +08:00
ssl_ciphersuites.c Merge tag 'v3.4.0' into mbedtls-3.4.0_mergeback 2023-03-27 18:09:49 +01:00
ssl_client.c library: add remaining changes for the new ECP_LIGHT symbol 2023-04-11 11:33:50 +02:00
ssl_client.h Switch to the new code style 2023-01-11 14:50:10 +01:00
ssl_cookie.c Use functions in alignment.h to get value 2023-05-24 06:24:16 +01:00
ssl_debug_helpers.h refine ticket_flags printing helper 2023-01-16 11:28:49 +08:00
ssl_misc.h pk: fix build issues 2023-05-15 12:57:06 +02:00
ssl_msg.c Merge pull request #7171 from daverodgman/pr5527 2023-03-13 10:46:29 +00:00
ssl_ticket.c Unify PSA to Mbed TLS error translation 2023-03-03 05:23:44 -05:00
ssl_tls12_client.c tls/x509: minor enhancement for using the new private key format 2023-05-23 15:12:07 +02:00
ssl_tls12_server.c Merge pull request #7438 from valeriosetti/issue7074 2023-06-01 10:06:45 +02:00
ssl_tls13_client.c fix: correct calling to time function in tls13 client&server 2023-05-22 13:22:00 -07:00
ssl_tls13_generic.c Wrap lines which exceed 80 chars in ssl_tls13_generic.c 2023-04-10 08:27:51 +00:00
ssl_tls13_invasive.h Switch to the new code style 2023-01-11 14:50:10 +01:00
ssl_tls13_keys.c Improve code styles(line numbers) for tls13_key.c 2023-04-10 08:27:51 +00:00
ssl_tls13_keys.h Enhancement: change some functions to static in ssl_tls13_keys.c 2023-01-12 14:54:26 +08:00
ssl_tls13_server.c fix: correct calling to time function in tls13 client&server 2023-05-22 13:22:00 -07:00
ssl_tls.c Merge pull request #7438 from valeriosetti/issue7074 2023-06-01 10:06:45 +02:00
threading.c Switch to the new code style 2023-01-11 14:50:10 +01:00
timing.c Switch to the new code style 2023-01-11 14:50:10 +01:00
version.c Switch to the new code style 2023-01-11 14:50:10 +01:00
x509_create.c Switch to the new code style 2023-01-11 14:50:10 +01:00
x509_crl.c Switch to the new code style 2023-01-11 14:50:10 +01:00
x509_crt.c Use memcmp() to parse version numbers 2023-06-05 14:30:35 -04:00
x509_csr.c Fix code style 2023-01-26 22:30:45 +01:00
x509_invasive.h Add mbedtls_x509_crt_parse_cn_inet_pton() tests 2023-04-11 08:29:42 -04:00
x509.c Change the name of the temporary san variable 2023-06-01 18:20:26 +01:00
x509write_crt.c Remove unnecessary addition to buffer size estimation 2023-06-02 09:42:44 -04:00
x509write_csr.c Code optimization and style fixes 2023-03-10 14:36:16 +01:00