/mbedtls-3.7.0/library/ |
D | asn1write.c | 24 int mbedtls_asn1_write_len(unsigned char **p, const unsigned char *start, size_t len) in mbedtls_asn1_write_len() 56 int mbedtls_asn1_write_tag(unsigned char **p, const unsigned char *start, unsigned char tag) in mbedtls_asn1_write_tag() 69 static int mbedtls_asn1_write_len_and_tag(unsigned char **p, in mbedtls_asn1_write_len_and_tag() 82 int mbedtls_asn1_write_raw_buffer(unsigned char **p, const unsigned char *start, in mbedtls_asn1_write_raw_buffer() 99 int mbedtls_asn1_write_mpi(unsigned char **p, const unsigned char *start, const mbedtls_mpi *X) in mbedtls_asn1_write_mpi() 140 int mbedtls_asn1_write_null(unsigned char **p, const unsigned char *start) in mbedtls_asn1_write_null() 147 int mbedtls_asn1_write_oid(unsigned char **p, const unsigned char *start, in mbedtls_asn1_write_oid() 158 int mbedtls_asn1_write_algorithm_identifier(unsigned char **p, const unsigned char *start, in mbedtls_asn1_write_algorithm_identifier() 165 int mbedtls_asn1_write_algorithm_identifier_ext(unsigned char **p, const unsigned char *start, in mbedtls_asn1_write_algorithm_identifier_ext() 186 int mbedtls_asn1_write_bool(unsigned char **p, const unsigned char *start, int boolean) in mbedtls_asn1_write_bool() [all …]
|
D | asn1parse.c | 28 int mbedtls_asn1_get_len(unsigned char **p, in mbedtls_asn1_get_len() 61 int mbedtls_asn1_get_tag(unsigned char **p, in mbedtls_asn1_get_tag() 80 int mbedtls_asn1_get_bool(unsigned char **p, in mbedtls_asn1_get_bool() 101 static int asn1_get_tagged_int(unsigned char **p, in asn1_get_tagged_int() 148 int mbedtls_asn1_get_int(unsigned char **p, in mbedtls_asn1_get_int() 155 int mbedtls_asn1_get_enum(unsigned char **p, in mbedtls_asn1_get_enum() 163 int mbedtls_asn1_get_mpi(unsigned char **p, in mbedtls_asn1_get_mpi() 182 int mbedtls_asn1_get_bitstring(unsigned char **p, const unsigned char *end, in mbedtls_asn1_get_bitstring() 221 unsigned char **p, in mbedtls_asn1_traverse_sequence_of() 271 int mbedtls_asn1_get_bitstring_null(unsigned char **p, const unsigned char *end, in mbedtls_asn1_get_bitstring_null() [all …]
|
D | x509.c | 63 int mbedtls_x509_get_serial(unsigned char **p, const unsigned char *end, in mbedtls_x509_get_serial() 97 int mbedtls_x509_get_alg_null(unsigned char **p, const unsigned char *end, in mbedtls_x509_get_alg_null() 112 int mbedtls_x509_get_alg(unsigned char **p, const unsigned char *end, in mbedtls_x509_get_alg() 182 unsigned char *p; in x509_get_hash_alg() local 250 unsigned char *p; in mbedtls_x509_get_rsassa_pss_params() local 406 static int x509_get_attr_type_value(unsigned char **p, in x509_get_attr_type_value() 498 int mbedtls_x509_get_name(unsigned char **p, const unsigned char *end, in mbedtls_x509_get_name() 599 static int x509_parse2_int(const unsigned char *p) in x509_parse2_int() 610 static int x509_parse_time(const unsigned char *p, mbedtls_x509_time *tm, in x509_parse_time() 649 int mbedtls_x509_get_time(unsigned char **p, const unsigned char *end, in mbedtls_x509_get_time() [all …]
|
D | pkcs7.c | 40 static int pkcs7_get_next_content_len(unsigned char **p, unsigned char *end, in pkcs7_get_next_content_len() 61 static int pkcs7_get_version(unsigned char **p, unsigned char *end, int *ver) in pkcs7_get_version() 84 static int pkcs7_get_content_info_type(unsigned char **p, unsigned char *end, in pkcs7_get_content_info_type() 118 static int pkcs7_get_digest_algorithm(unsigned char **p, unsigned char *end, in pkcs7_get_digest_algorithm() 133 static int pkcs7_get_digest_algorithm_set(unsigned char **p, in pkcs7_get_digest_algorithm_set() 170 static int pkcs7_get_certificates(unsigned char **p, unsigned char *end, in pkcs7_get_certificates() 223 static int pkcs7_get_signature(unsigned char **p, unsigned char *end, in pkcs7_get_signature() 277 static int pkcs7_get_signer_info(unsigned char **p, unsigned char *end, in pkcs7_get_signer_info() 377 static int pkcs7_get_signers_info_set(unsigned char **p, unsigned char *end, in pkcs7_get_signers_info_set() 454 unsigned char *p = buf; in pkcs7_get_signed_data() local [all …]
|
D | pkwrite.c | 62 static int pk_write_rsa_der(unsigned char **p, unsigned char *buf, in pk_write_rsa_der() 90 static int pk_write_ec_pubkey(unsigned char **p, unsigned char *start, in pk_write_ec_pubkey() 115 static int pk_write_ec_pubkey(unsigned char **p, unsigned char *start, in pk_write_ec_pubkey() 156 static int pk_write_ec_private(unsigned char **p, unsigned char *start, in pk_write_ec_private() 184 static int pk_write_ec_private(unsigned char **p, unsigned char *start, in pk_write_ec_private() 222 static int pk_write_ec_param(unsigned char **p, unsigned char *start, in pk_write_ec_param() 255 static int pk_write_ec_rfc8410_der(unsigned char **p, unsigned char *buf, in pk_write_ec_rfc8410_der() 298 static int pk_write_ec_der(unsigned char **p, unsigned char *buf, in pk_write_ec_der() 352 static int pk_write_opaque_pubkey(unsigned char **p, unsigned char *start, in pk_write_opaque_pubkey() 411 int mbedtls_pk_write_pubkey(unsigned char **p, unsigned char *start, in mbedtls_pk_write_pubkey()
|
D | ssl_tls12_client.c | 56 unsigned char *p = buf; in ssl_write_renegotiation_ext() local 100 unsigned char *p = buf; in ssl_write_supported_point_formats_ext() local 134 unsigned char *p = buf; in ssl_write_ecjpake_kkpp_ext() local 221 unsigned char *p = buf; in ssl_write_cid_ext() local 264 unsigned char *p = buf; in ssl_write_max_fragment_length_ext() local 298 unsigned char *p = buf; in ssl_write_encrypt_then_mac_ext() local 330 unsigned char *p = buf; in ssl_write_extended_ms_ext() local 362 unsigned char *p = buf; in ssl_write_session_ticket_ext() local 407 unsigned char *p = buf; in ssl_write_use_srtp_ext() local 519 unsigned char *p = buf; in mbedtls_ssl_tls12_write_client_hello_exts() local [all …]
|
D | psa_crypto_core_common.h | 29 static inline unsigned char *psa_crypto_buffer_offset( in psa_crypto_buffer_offset() 46 static inline const unsigned char *psa_crypto_buffer_offset_const( in psa_crypto_buffer_offset_const()
|
D | x509_crl.c | 51 static int x509_crl_get_version(unsigned char **p, in x509_crl_get_version() 76 static int x509_get_crl_ext(unsigned char **p, in x509_get_crl_ext() 160 static int x509_get_crl_entry_ext(unsigned char **p, in x509_get_crl_entry_ext() 215 static int x509_get_entries(unsigned char **p, in x509_get_entries() 288 unsigned char *p = NULL, *end = NULL; in mbedtls_x509_crl_parse_der() local 599 char *p; in mbedtls_x509_crl_info() local
|
D | x509_csr.c | 43 static int x509_csr_get_version(unsigned char **p, in x509_csr_get_version() 65 unsigned char **p, const unsigned char *end, in x509_csr_parse_extensions() 207 unsigned char **p = (unsigned char **) &start; in x509_csr_parse_attributes() local 272 unsigned char *p, *end; in mbedtls_x509_csr_parse_der_internal() local 533 char *p; in mbedtls_x509_csr_info() local
|
D | ssl_tls12_server.c | 186 const unsigned char *p; in ssl_parse_supported_groups_ext() local 251 const unsigned char *p; in ssl_parse_supported_point_formats() local 896 unsigned char *buf, *p, *ext; in ssl_parse_client_hello() local 1692 unsigned char *p = buf; in ssl_write_cid_ext() local 1736 unsigned char *p = buf; in ssl_write_encrypt_then_mac_ext() local 1782 unsigned char *p = buf; in ssl_write_extended_ms_ext() local 1807 unsigned char *p = buf; in ssl_write_session_ticket_ext() local 1830 unsigned char *p = buf; in ssl_write_renegotiation_ext() local 1868 unsigned char *p = buf; in ssl_write_max_fragment_length_ext() local 1896 unsigned char *p = buf; in ssl_write_supported_point_formats_ext() local [all …]
|
D | ssl_tls13_client.c | 51 unsigned char *p = buf; in ssl_tls13_write_supported_versions_ext() local 130 const unsigned char *p = buf; in ssl_tls13_parse_alpn_ext() local 269 unsigned char *p = buf; in ssl_tls13_write_key_share_ext() local 381 const unsigned char *p = buf; in ssl_tls13_parse_hrr_key_share_ext() local 470 const unsigned char *p = buf; in ssl_tls13_parse_key_share_ext() local 534 const unsigned char *p = buf; in ssl_tls13_parse_cookie_ext() local 567 unsigned char *p = buf; in ssl_tls13_write_cookie_ext() local 615 unsigned char *p = buf; in ssl_tls13_write_psk_key_exchange_modes_ext() local 900 unsigned char *p = buf; in mbedtls_ssl_tls13_write_identities_of_pre_shared_key_ext() local 1002 unsigned char *p = buf; in mbedtls_ssl_tls13_write_binders_of_pre_shared_key_ext() local [all …]
|
D | ssl_client.c | 31 unsigned char *p = buf; in ssl_write_hostname_ext() local 119 unsigned char *p = buf; in ssl_write_alpn_ext() local 223 unsigned char *p = buf; in ssl_write_supported_groups_ext() local 324 unsigned char *p = buf; in ssl_write_client_hello_cipher_suites() local 444 unsigned char *p = buf; in ssl_write_client_hello_body() local
|
D | x509_create.c | 246 unsigned char *p = der + 1; in parse_attribute_value_hex_der_encoded() local 412 static int x509_write_name(unsigned char **p, in x509_write_name() 446 int mbedtls_x509_write_names(unsigned char **p, unsigned char *start, in mbedtls_x509_write_names() 465 int mbedtls_x509_write_sig(unsigned char **p, unsigned char *start, in mbedtls_x509_write_sig() 511 static int x509_write_extension(unsigned char **p, unsigned char *start, in x509_write_extension() 548 int mbedtls_x509_write_extensions(unsigned char **p, unsigned char *start, in mbedtls_x509_write_extensions()
|
D | psa_util.c | 394 unsigned char *p = der_buf_end; in convert_raw_to_der_single_int() local 440 unsigned char *p = der + der_size; in mbedtls_ecdsa_raw_to_der() local 507 unsigned char *p = der; in convert_der_to_raw_single_int() local 554 unsigned char *p = (unsigned char *) der; in mbedtls_ecdsa_der_to_raw() local
|
D | pkparse.c | 112 unsigned char *p = params->p; in pk_group_from_specified() local 348 static int pk_get_ecparams(unsigned char **p, const unsigned char *end, in pk_get_ecparams() 471 static int pk_get_pk_alg(unsigned char **p, in pk_get_pk_alg() 517 int mbedtls_pk_parse_subpubkey(unsigned char **p, const unsigned char *end, in mbedtls_pk_parse_subpubkey() 612 unsigned char *p = (unsigned char *) key; in pk_parse_key_sec1_der() local 750 unsigned char *p = (unsigned char *) key; in pk_parse_key_pkcs8_unencrypted_der() local 874 unsigned char *p, *end; in mbedtls_pk_parse_key_pkcs8_encrypted_der() local 1184 unsigned char *p; in mbedtls_pk_parse_public_key() local
|
D | ecjpake.c | 156 static int ecjpake_write_len_point(unsigned char **p, in ecjpake_write_len_point() 203 unsigned char *p = buf; in ecjpake_hash() local 249 const unsigned char **p, in ecjpake_zkp_read() 320 unsigned char **p, in ecjpake_zkp_write() 380 const unsigned char **p, in ecjpake_kkp_read() 418 unsigned char **p, in ecjpake_kkp_write() 460 const unsigned char *p = buf; in ecjpake_kkpp_read() local 499 unsigned char *p = buf; in ecjpake_kkpp_write() local 571 const unsigned char *p = buf; in mbedtls_ecjpake_read_round_two() local 661 unsigned char *p = buf; in mbedtls_ecjpake_write_round_two() local [all …]
|
D | bignum_mod.c | 27 mbedtls_mpi_uint *p, in mbedtls_mpi_mod_residue_setup() 127 const mbedtls_mpi_uint *p, in standard_modulus_setup() 138 const mbedtls_mpi_uint *p, in mbedtls_mpi_mod_modulus_setup() 154 const mbedtls_mpi_uint *p, in mbedtls_mpi_mod_optred_modulus_setup()
|
D | alignment.h | 115 static inline uint16_t mbedtls_get_unaligned_uint16(const void *p) in mbedtls_get_unaligned_uint16() 142 static inline void mbedtls_put_unaligned_uint16(void *p, uint16_t x) in mbedtls_put_unaligned_uint16() 167 static inline uint32_t mbedtls_get_unaligned_uint32(const void *p) in mbedtls_get_unaligned_uint32() 194 static inline void mbedtls_put_unaligned_uint32(void *p, uint32_t x) in mbedtls_put_unaligned_uint32() 219 static inline uint64_t mbedtls_get_unaligned_uint64(const void *p) in mbedtls_get_unaligned_uint64() 246 static inline void mbedtls_put_unaligned_uint64(void *p, uint64_t x) in mbedtls_put_unaligned_uint64()
|
D | ssl_tls13_generic.c | 91 const unsigned char *p = buf; in mbedtls_ssl_tls13_is_supported_versions_ext_present_in_exts() local 220 const unsigned char *p = buf; in ssl_tls13_parse_certificate_verify() local 447 const unsigned char *p = buf; in mbedtls_ssl_tls13_parse_certificate() local 867 unsigned char *p = buf; in ssl_tls13_write_certificate_body() local 1006 unsigned char *p = buf; in ssl_tls13_write_certificate_verify_body() local 1426 unsigned char *p = buf; in mbedtls_ssl_tls13_write_early_data_ext() local 1568 uint8_t *p = (uint8_t *) buf; in mbedtls_ssl_tls13_read_public_xxdhe_share() local 1779 const unsigned char *p = buf; in mbedtls_ssl_tls13_parse_record_size_limit_ext() local 1827 unsigned char *p = buf; in mbedtls_ssl_tls13_write_record_size_limit_ext() local
|
D | x509_crt.c | 393 static int x509_get_version(unsigned char **p, in x509_get_version() 430 static int x509_get_dates(unsigned char **p, in x509_get_dates() 464 static int x509_get_uid(unsigned char **p, in x509_get_uid() 492 static int x509_get_basic_constraints(unsigned char **p, in x509_get_basic_constraints() 561 static int x509_get_ext_key_usage(unsigned char **p, in x509_get_ext_key_usage() 585 static int x509_get_subject_key_id(unsigned char **p, in x509_get_subject_key_id() 618 static int x509_get_authority_key_id(unsigned char **p, in x509_get_authority_key_id() 737 static int x509_get_certificate_policies(unsigned char **p, in x509_get_certificate_policies() 860 static int x509_get_crt_ext(unsigned char **p, in x509_get_crt_ext() 1080 unsigned char *p, *end, *crt_end; in x509_crt_parse_der_core() local [all …]
|
D | base64.c | 66 unsigned char *p; in mbedtls_base64_encode() local 137 unsigned char *p; in mbedtls_base64_decode() local
|
D | ssl_tls13_server.c | 61 for (const unsigned char *p = cipher_suites; in ssl_tls13_select_ciphersuite() local 112 const unsigned char *p = buf; in ssl_tls13_parse_key_exchange_modes_ext() local 739 unsigned char *p = (unsigned char *) buf; in ssl_tls13_write_server_pre_shared_key_ext() local 785 const unsigned char *p = buf; in ssl_tls13_parse_supported_versions_ext() local 844 const unsigned char *p = buf; in ssl_tls13_parse_supported_groups_ext() local 907 unsigned char const *p = buf; in ssl_tls13_parse_key_shares_ext() local 1255 const unsigned char *p = buf; in ssl_tls13_parse_client_hello() local 2128 unsigned char *p = buf; in ssl_tls13_write_key_share_ext() local 2257 unsigned char *p = buf; in ssl_tls13_write_server_hello_body() local 2539 unsigned char *p = buf; in ssl_tls13_write_encrypted_extensions_body() local [all …]
|
D | bignum.c | 88 void * const p[2] = { X->p, Y->p }; in mbedtls_mpi_lt_mpi_ct() local 210 mbedtls_mpi_uint *p; in mbedtls_mpi_grow() local 241 mbedtls_mpi_uint *p; in mbedtls_mpi_shrink() local 577 char **p, const size_t buflen) in mpi_write_hlp() 619 char *p; in mbedtls_mpi_write_string() local 703 char *p; in mbedtls_mpi_read_file() local 744 int mbedtls_mpi_write_file(const char *p, const mbedtls_mpi *X, int radix, FILE *fout) in mbedtls_mpi_write_file() 986 mbedtls_mpi_uint p[1]; in mbedtls_mpi_cmp_int() local 1003 mbedtls_mpi_uint *p; in mbedtls_mpi_add_abs() local 1163 mbedtls_mpi_uint p[1]; in mbedtls_mpi_add_int() local [all …]
|
/mbedtls-3.7.0/programs/test/ |
D | metatest.c | 60 static void set_to_zero_but_the_compiler_does_not_know(volatile void *p, size_t n) in set_to_zero_but_the_compiler_does_not_know() 67 static void do_nothing_with_object(void *p) in do_nothing_with_object() 128 volatile char *volatile p; in null_pointer_dereference() local 137 unsigned(*volatile p)(void); in null_pointer_call() local 154 volatile char *p = calloc_but_the_compiler_does_not_know(1, 1); in read_after_free() local 164 volatile char *p = calloc_but_the_compiler_does_not_know(1, 1); in double_free() local 178 char *volatile p = buf; in read_uninitialized_stack() local 188 volatile char *p = calloc_but_the_compiler_does_not_know(1, 1); in memory_leak() local 454 for (const metatest_t *p = metatests; p->name != NULL; p++) { in main() local 464 for (const metatest_t *p = metatests; p->name != NULL; p++) { in main() local
|
/mbedtls-3.7.0/tests/src/ |
D | asn1_helpers.c | 18 int mbedtls_test_asn1_skip_integer(unsigned char **p, const unsigned char *end, in mbedtls_test_asn1_skip_integer()
|