/mbedtls-latest/library/ |
D | x509.c | 63 int mbedtls_x509_get_serial(unsigned char **p, const unsigned char *end, in mbedtls_x509_get_serial() argument 68 if ((end - *p) < 1) { in mbedtls_x509_get_serial() 73 if (**p != (MBEDTLS_ASN1_CONTEXT_SPECIFIC | MBEDTLS_ASN1_PRIMITIVE | 2) && in mbedtls_x509_get_serial() 74 **p != MBEDTLS_ASN1_INTEGER) { in mbedtls_x509_get_serial() 79 serial->tag = *(*p)++; in mbedtls_x509_get_serial() 81 if ((ret = mbedtls_asn1_get_len(p, end, &serial->len)) != 0) { in mbedtls_x509_get_serial() 85 serial->p = *p; in mbedtls_x509_get_serial() 86 *p += serial->len; 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() argument 102 if ((ret = mbedtls_asn1_get_alg_null(p, end, alg)) != 0) { in mbedtls_x509_get_alg_null() [all …]
|
D | asn1write.c | 24 int mbedtls_asn1_write_len(unsigned char **p, const unsigned char *start, size_t len) in mbedtls_asn1_write_len() argument 40 if (required > (*p - start)) { in mbedtls_asn1_write_len() 45 *--(*p) = MBEDTLS_BYTE_0(len); in mbedtls_asn1_write_len() 50 *--(*p) = (unsigned char) (0x80 + required - 1); 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() argument 58 if (*p - start < 1) { in mbedtls_asn1_write_tag() 62 *--(*p) = 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() argument 76 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(p, start, len)); in mbedtls_asn1_write_len_and_tag() 77 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(p, start, tag)); in mbedtls_asn1_write_len_and_tag() [all …]
|
D | asn1parse.c | 28 int mbedtls_asn1_get_len(unsigned char **p, in mbedtls_asn1_get_len() argument 32 if ((end - *p) < 1) { in mbedtls_asn1_get_len() 36 if ((**p & 0x80) == 0) { in mbedtls_asn1_get_len() 37 *len = *(*p)++; in mbedtls_asn1_get_len() 39 int n = (**p) & 0x7F; in mbedtls_asn1_get_len() 43 if ((end - *p) <= n) { in mbedtls_asn1_get_len() 47 (*p)++; in mbedtls_asn1_get_len() 49 *len = (*len << 8) | **p; in mbedtls_asn1_get_len() 50 (*p)++; in mbedtls_asn1_get_len() 54 if (*len > (size_t) (end - *p)) { in mbedtls_asn1_get_len() [all …]
|
D | pkcs7.c | 40 static int pkcs7_get_next_content_len(unsigned char **p, unsigned char *end, in pkcs7_get_next_content_len() argument 45 ret = mbedtls_asn1_get_tag(p, end, len, MBEDTLS_ASN1_CONSTRUCTED in pkcs7_get_next_content_len() 49 } else if ((size_t) (end - *p) != *len) { in pkcs7_get_next_content_len() 61 static int pkcs7_get_version(unsigned char **p, unsigned char *end, int *ver) in pkcs7_get_version() argument 65 ret = mbedtls_asn1_get_int(p, end, 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() argument 90 unsigned char *start = *p; in pkcs7_get_content_info_type() 92 ret = mbedtls_asn1_get_tag(p, end, &len, MBEDTLS_ASN1_CONSTRUCTED in pkcs7_get_content_info_type() 95 *p = start; in pkcs7_get_content_info_type() 98 *seq_end = *p + len; in pkcs7_get_content_info_type() [all …]
|
D | x509_crl.c | 51 static int x509_crl_get_version(unsigned char **p, in x509_crl_get_version() argument 57 if ((ret = mbedtls_asn1_get_int(p, end, ver)) != 0) { in x509_crl_get_version() 76 static int x509_get_crl_ext(unsigned char **p, in x509_get_crl_ext() argument 82 if (*p == end) { in x509_get_crl_ext() 90 if ((ret = mbedtls_x509_get_ext(p, end, ext, 0)) != 0) { in x509_get_crl_ext() 94 end = ext->p + ext->len; in x509_get_crl_ext() 96 while (*p < end) { in x509_get_crl_ext() 108 if ((ret = mbedtls_asn1_get_tag(p, end, &len, in x509_get_crl_ext() 113 end_ext_data = *p + len; in x509_get_crl_ext() 116 if ((ret = mbedtls_asn1_get_tag(p, end_ext_data, &len, in x509_get_crl_ext() [all …]
|
D | x509_csr.c | 43 static int x509_csr_get_version(unsigned char **p, in x509_csr_get_version() argument 49 if ((ret = mbedtls_asn1_get_int(p, end, ver)) != 0) { in x509_csr_get_version() 65 unsigned char **p, const unsigned char *end, in x509_csr_parse_extensions() argument 73 while (*p < end) { in x509_csr_parse_extensions() 79 if ((ret = mbedtls_asn1_get_tag(p, end, &len, in x509_csr_parse_extensions() 84 end_ext_data = *p + len; in x509_csr_parse_extensions() 87 if ((ret = mbedtls_asn1_get_tag(p, end_ext_data, &extn_oid.len, in x509_csr_parse_extensions() 93 extn_oid.p = *p; in x509_csr_parse_extensions() 94 *p += extn_oid.len; in x509_csr_parse_extensions() 97 if ((ret = mbedtls_asn1_get_bool(p, end_ext_data, &is_critical)) != 0 && in x509_csr_parse_extensions() [all …]
|
D | ssl_tls13_client.c | 51 unsigned char *p = buf; in ssl_tls13_write_supported_versions_ext() local 65 MBEDTLS_SSL_CHK_BUF_PTR(p, end, 5 + versions_len); in ssl_tls13_write_supported_versions_ext() 67 MBEDTLS_PUT_UINT16_BE(MBEDTLS_TLS_EXT_SUPPORTED_VERSIONS, p, 0); in ssl_tls13_write_supported_versions_ext() 68 MBEDTLS_PUT_UINT16_BE(versions_len + 1, p, 2); in ssl_tls13_write_supported_versions_ext() 69 p += 4; in ssl_tls13_write_supported_versions_ext() 72 *p++ = versions_len; in ssl_tls13_write_supported_versions_ext() 78 mbedtls_ssl_write_version(p, MBEDTLS_SSL_TRANSPORT_STREAM, in ssl_tls13_write_supported_versions_ext() 84 mbedtls_ssl_write_version(p + 2, MBEDTLS_SSL_TRANSPORT_STREAM, in ssl_tls13_write_supported_versions_ext() 130 const unsigned char *p = buf; in ssl_tls13_parse_alpn_ext() local 150 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, 2); in ssl_tls13_parse_alpn_ext() [all …]
|
D | ssl_client.c | 31 unsigned char *p = buf; in ssl_write_hostname_ext() local 46 MBEDTLS_SSL_CHK_BUF_PTR(p, end, hostname_len + 9); in ssl_write_hostname_ext() 74 MBEDTLS_PUT_UINT16_BE(MBEDTLS_TLS_EXT_SERVERNAME, p, 0); in ssl_write_hostname_ext() 75 p += 2; in ssl_write_hostname_ext() 77 MBEDTLS_PUT_UINT16_BE(hostname_len + 5, p, 0); in ssl_write_hostname_ext() 78 p += 2; in ssl_write_hostname_ext() 80 MBEDTLS_PUT_UINT16_BE(hostname_len + 3, p, 0); in ssl_write_hostname_ext() 81 p += 2; in ssl_write_hostname_ext() 83 *p++ = MBEDTLS_BYTE_0(MBEDTLS_TLS_EXT_SERVERNAME_HOSTNAME); in ssl_write_hostname_ext() 85 MBEDTLS_PUT_UINT16_BE(hostname_len, p, 0); in ssl_write_hostname_ext() [all …]
|
D | x509_crt.c | 282 if (name->len < 3 || name->p[0] != '*' || name->p[1] != '.') { in x509_check_wildcard() 298 x509_memcasecmp(name->p + 1, cn + cn_idx, name->len - 1) == 0) { in x509_check_wildcard() 315 memcmp(a->p, b->p, b->len) == 0) { in x509_string_cmp() 322 x509_memcasecmp(a->p, b->p, b->len) == 0) { in x509_string_cmp() 350 memcmp(a->oid.p, b->oid.p, b->oid.len) != 0) { in x509_name_cmp() 395 static int x509_get_version(unsigned char **p, in x509_get_version() argument 402 if ((ret = mbedtls_asn1_get_tag(p, end, &len, in x509_get_version() 413 end = *p + len; in x509_get_version() 415 if ((ret = mbedtls_asn1_get_int(p, end, ver)) != 0) { in x509_get_version() 419 if (*p != end) { in x509_get_version() [all …]
|
D | bignum.c | 89 void * const p[2] = { X->p, Y->p }; in mbedtls_mpi_lt_mpi_ct() local 91 mbedtls_ct_condition_t lt = mbedtls_mpi_core_lt_ct(p[i], p[i ^ 1], X->n); in mbedtls_mpi_lt_mpi_ct() 131 mbedtls_mpi_core_cond_assign(X->p, Y->p, Y->n, do_assign); in mbedtls_mpi_safe_cond_assign() 135 X->p[i] = mbedtls_ct_mpi_uint_if_else_0(do_not_assign, X->p[i]); in mbedtls_mpi_safe_cond_assign() 169 mbedtls_mpi_core_cond_swap(X->p, Y->p, X->n, do_swap); in mbedtls_mpi_safe_cond_swap() 185 X->p = NULL; in mbedtls_mpi_init() 197 if (X->p != NULL) { in mbedtls_mpi_free() 198 mbedtls_mpi_zeroize_and_free(X->p, X->n); in mbedtls_mpi_free() 203 X->p = NULL; in mbedtls_mpi_free() 211 mbedtls_mpi_uint *p; in mbedtls_mpi_grow() local [all …]
|
D | pkparse.c | 112 unsigned char *p = params->p; in pk_group_from_specified() local 113 const unsigned char *const end = params->p + params->len; in pk_group_from_specified() 119 if ((ret = mbedtls_asn1_get_int(&p, end, &ver)) != 0) { in pk_group_from_specified() 133 if ((ret = mbedtls_asn1_get_tag(&p, end, &len, in pk_group_from_specified() 138 end_field = p + len; in pk_group_from_specified() 148 if ((ret = mbedtls_asn1_get_tag(&p, end_field, &len, MBEDTLS_ASN1_OID)) != 0) { in pk_group_from_specified() 153 memcmp(p, MBEDTLS_OID_ANSI_X9_62_PRIME_FIELD, len) != 0) { in pk_group_from_specified() 157 p += len; in pk_group_from_specified() 160 if ((ret = mbedtls_asn1_get_mpi(&p, end_field, &grp->P)) != 0) { in pk_group_from_specified() 166 if (p != end_field) { in pk_group_from_specified() [all …]
|
D | x509_create.c | 246 unsigned char *p = der + 1; in parse_attribute_value_hex_der_encoded() local 247 if (mbedtls_asn1_get_len(&p, der + der_length, data_len) != 0) { in parse_attribute_value_hex_der_encoded() 260 if (p[i] == 0) { in parse_attribute_value_hex_der_encoded() 270 memcpy(data, p, *data_len); in parse_attribute_value_hex_der_encoded() 287 mbedtls_asn1_buf oid = { .p = NULL, .len = 0, .tag = MBEDTLS_ASN1_NULL }; in mbedtls_x509_string_to_names() 308 oid.p = mbedtls_calloc(1, oid.len); in mbedtls_x509_string_to_names() 309 memcpy(oid.p, attr_descr->oid, oid.len); in mbedtls_x509_string_to_names() 319 mbedtls_free(oid.p); in mbedtls_x509_string_to_names() 328 mbedtls_free(oid.p); in mbedtls_x509_string_to_names() 333 mbedtls_free(oid.p); in mbedtls_x509_string_to_names() [all …]
|
D | ssl_tls13_server.c | 61 for (const unsigned char *p = cipher_suites; in ssl_tls13_select_ciphersuite() local 62 p < cipher_suites_end; p += 2) { in ssl_tls13_select_ciphersuite() 68 uint16_t id = MBEDTLS_GET_UINT16_BE(p, 0); in ssl_tls13_select_ciphersuite() 113 const unsigned char *p = buf; in ssl_tls13_parse_key_exchange_modes_ext() local 118 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, 1); in ssl_tls13_parse_key_exchange_modes_ext() 119 ke_modes_len = *p++; in ssl_tls13_parse_key_exchange_modes_ext() 128 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, ke_modes_len); in ssl_tls13_parse_key_exchange_modes_ext() 131 switch (*p++) { in ssl_tls13_parse_key_exchange_modes_ext() 738 unsigned char *p = (unsigned char *) buf; in ssl_tls13_write_server_pre_shared_key_ext() local 755 MBEDTLS_SSL_CHK_BUF_PTR(p, end, 6); in ssl_tls13_write_server_pre_shared_key_ext() [all …]
|
D | bignum_mod.c | 27 mbedtls_mpi_uint *p, in mbedtls_mpi_mod_residue_setup() argument 30 if (p_limbs != N->limbs || !mbedtls_mpi_core_lt_ct(p, N->p, N->limbs)) { in mbedtls_mpi_mod_residue_setup() 35 r->p = p; in mbedtls_mpi_mod_residue_setup() 47 r->p = NULL; in mbedtls_mpi_mod_residue_release() 56 N->p = NULL; in mbedtls_mpi_mod_modulus_init() 84 N->p = NULL; in mbedtls_mpi_mod_modulus_free() 110 memcpy(N.p, A, sizeof(mbedtls_mpi_uint) * limbs); in set_mont_const_square() 115 *X = RR.p; in set_mont_const_square() 116 RR.p = NULL; in set_mont_const_square() 127 const mbedtls_mpi_uint *p, in standard_modulus_setup() argument [all …]
|
D | pkwrite.c | 62 static int pk_write_rsa_der(unsigned char **p, unsigned char *buf, in pk_write_rsa_der() argument 74 if (tmp_len > (size_t) (*p - buf)) { in pk_write_rsa_der() 78 *p -= tmp_len; in pk_write_rsa_der() 79 memcpy(*p, tmp, tmp_len); in pk_write_rsa_der() 85 return mbedtls_rsa_write_key(mbedtls_pk_rsa(*pk), buf, p); in pk_write_rsa_der() 94 static int pk_write_ec_pubkey(unsigned char **p, unsigned char *start, in pk_write_ec_pubkey() argument 109 if (*p < start || (size_t) (*p - start) < len) { in pk_write_ec_pubkey() 113 *p -= len; in pk_write_ec_pubkey() 114 memcpy(*p, buf, len); in pk_write_ec_pubkey() 119 static int pk_write_ec_pubkey(unsigned char **p, unsigned char *start, in pk_write_ec_pubkey() argument [all …]
|
D | ssl_tls13_generic.c | 99 const unsigned char *p = buf; in mbedtls_ssl_tls13_is_supported_versions_ext_present_in_exts() local 107 if (p == end) { in mbedtls_ssl_tls13_is_supported_versions_ext_present_in_exts() 119 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, 2); in mbedtls_ssl_tls13_is_supported_versions_ext_present_in_exts() 120 extensions_len = MBEDTLS_GET_UINT16_BE(p, 0); in mbedtls_ssl_tls13_is_supported_versions_ext_present_in_exts() 121 p += 2; in mbedtls_ssl_tls13_is_supported_versions_ext_present_in_exts() 124 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, extensions_len); in mbedtls_ssl_tls13_is_supported_versions_ext_present_in_exts() 125 extensions_end = p + extensions_len; in mbedtls_ssl_tls13_is_supported_versions_ext_present_in_exts() 127 while (p < extensions_end) { in mbedtls_ssl_tls13_is_supported_versions_ext_present_in_exts() 131 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, extensions_end, 4); in mbedtls_ssl_tls13_is_supported_versions_ext_present_in_exts() 132 extension_type = MBEDTLS_GET_UINT16_BE(p, 0); in mbedtls_ssl_tls13_is_supported_versions_ext_present_in_exts() [all …]
|
D | ssl_tls12_client.c | 56 unsigned char *p = buf; in ssl_write_renegotiation_ext() local 70 MBEDTLS_SSL_CHK_BUF_PTR(p, end, 5 + ssl->verify_data_len); in ssl_write_renegotiation_ext() 75 MBEDTLS_PUT_UINT16_BE(MBEDTLS_TLS_EXT_RENEGOTIATION_INFO, p, 0); in ssl_write_renegotiation_ext() 76 p += 2; in ssl_write_renegotiation_ext() 78 *p++ = 0x00; in ssl_write_renegotiation_ext() 79 *p++ = MBEDTLS_BYTE_0(ssl->verify_data_len + 1); in ssl_write_renegotiation_ext() 80 *p++ = MBEDTLS_BYTE_0(ssl->verify_data_len); in ssl_write_renegotiation_ext() 82 memcpy(p, ssl->own_verify_data, ssl->verify_data_len); in ssl_write_renegotiation_ext() 100 unsigned char *p = buf; in ssl_write_supported_point_formats_ext() local 107 MBEDTLS_SSL_CHK_BUF_PTR(p, end, 6); in ssl_write_supported_point_formats_ext() [all …]
|
D | ecjpake.c | 146 ctx->s.p == NULL) { in mbedtls_ecjpake_check() 156 static int ecjpake_write_len_point(unsigned char **p, in ecjpake_write_len_point() argument 166 if (end < *p || end - *p < 5) { in ecjpake_write_len_point() 171 &len, *p + 4, (size_t) (end - (*p + 4))); in ecjpake_write_len_point() 176 MBEDTLS_PUT_UINT32_BE(len, *p, 0); in ecjpake_write_len_point() 178 *p += 4 + len; in ecjpake_write_len_point() 203 unsigned char *p = buf; in ecjpake_hash() local 209 MBEDTLS_MPI_CHK(ecjpake_write_len_point(&p, end, grp, pf, G)); in ecjpake_hash() 210 MBEDTLS_MPI_CHK(ecjpake_write_len_point(&p, end, grp, pf, V)); in ecjpake_hash() 211 MBEDTLS_MPI_CHK(ecjpake_write_len_point(&p, end, grp, pf, X)); in ecjpake_hash() [all …]
|
D | ssl_tls12_server.c | 186 const unsigned char *p; in ssl_parse_supported_groups_ext() local 228 p = buf + 2; in ssl_parse_supported_groups_ext() 230 uint16_t curr_tls_id = MBEDTLS_GET_UINT16_BE(p, 0); in ssl_parse_supported_groups_ext() 239 p += 2; in ssl_parse_supported_groups_ext() 251 const unsigned char *p; in ssl_parse_supported_point_formats() local 261 p = buf + 1; in ssl_parse_supported_point_formats() 263 if (p[0] == MBEDTLS_ECP_PF_UNCOMPRESSED || in ssl_parse_supported_point_formats() 264 p[0] == MBEDTLS_ECP_PF_COMPRESSED) { in ssl_parse_supported_point_formats() 267 ssl->handshake->ecdh_ctx.point_format = p[0]; in ssl_parse_supported_point_formats() 272 p[0]); in ssl_parse_supported_point_formats() [all …]
|
D | psa_util.c | 394 unsigned char *p = der_buf_end; in convert_raw_to_der_single_int() local 411 if ((p - der_buf_start) < len) { in convert_raw_to_der_single_int() 414 p -= len; in convert_raw_to_der_single_int() 415 memcpy(p, raw_buf, len); in convert_raw_to_der_single_int() 418 if (*p & 0x80) { in convert_raw_to_der_single_int() 419 if ((p - der_buf_start) < 1) { in convert_raw_to_der_single_int() 422 --p; in convert_raw_to_der_single_int() 423 *p = 0x00; in convert_raw_to_der_single_int() 427 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(&p, der_buf_start, len)); in convert_raw_to_der_single_int() 428 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(&p, der_buf_start, MBEDTLS_ASN1_INTEGER)); in convert_raw_to_der_single_int() [all …]
|
D | rsa.c | 61 static int asn1_get_nonzero_mpi(unsigned char **p, in asn1_get_nonzero_mpi() argument 67 ret = mbedtls_asn1_get_mpi(p, end, X); in asn1_get_nonzero_mpi() 83 unsigned char *p, *end; in mbedtls_rsa_parse_key() local 88 p = (unsigned char *) key; in mbedtls_rsa_parse_key() 89 end = p + keylen; in mbedtls_rsa_parse_key() 107 if ((ret = mbedtls_asn1_get_tag(&p, end, &len, in mbedtls_rsa_parse_key() 112 if (end != p + len) { in mbedtls_rsa_parse_key() 116 if ((ret = mbedtls_asn1_get_int(&p, end, &version)) != 0) { in mbedtls_rsa_parse_key() 125 if ((ret = asn1_get_nonzero_mpi(&p, end, &T)) != 0 || in mbedtls_rsa_parse_key() 132 if ((ret = asn1_get_nonzero_mpi(&p, end, &T)) != 0 || in mbedtls_rsa_parse_key() [all …]
|
/mbedtls-latest/programs/test/ |
D | udp_proxy.c | 179 char *p, *q; in get_options() local 194 p = argv[i]; in get_options() 195 if ((q = strchr(p, '=')) == NULL) { in get_options() 196 exit_usage(p, NULL); in get_options() 200 if (strcmp(p, "server_addr") == 0) { in get_options() 202 } else if (strcmp(p, "server_port") == 0) { in get_options() 204 } else if (strcmp(p, "listen_addr") == 0) { in get_options() 206 } else if (strcmp(p, "listen_port") == 0) { in get_options() 208 } else if (strcmp(p, "duplicate") == 0) { in get_options() 211 exit_usage(p, q); in get_options() [all …]
|
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() argument 62 memset((void *) p, false_but_the_compiler_does_not_know, 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() argument 69 (void) p; in do_nothing_with_object() 128 volatile char *volatile p; in null_pointer_dereference() local 129 set_to_zero_but_the_compiler_does_not_know(&p, sizeof(p)); in null_pointer_dereference() 131 mbedtls_printf("%p -> %u\n", (void *) p, (unsigned) *p); in null_pointer_dereference() 137 unsigned(*volatile p)(void); in null_pointer_call() local 138 set_to_zero_but_the_compiler_does_not_know(&p, sizeof(p)); in null_pointer_call() 143 mbedtls_printf("%lx() -> %u\n", (unsigned long) (uintptr_t) p, p()); in null_pointer_call() [all …]
|
/mbedtls-latest/tests/suites/ |
D | test_suite_bignum_mod.function | 10 TEST_MEMORY_COMPARE((a).p, (a).limbs * sizeof(mbedtls_mpi_uint), \ 11 (b).p, (b).limbs * sizeof(mbedtls_mpi_uint)) 18 mbedtls_mpi_uint *p = NULL; 21 int ret = mbedtls_test_read_mpi_core(&p, &limbs, input); 27 r->p = p; 33 return mbedtls_mpi_mod_residue_setup(r, m, p, limbs); 80 TEST_ASSERT(m.p != mp); 131 TEST_MEMORY_COMPARE(rX.p, bytes, rR.p, bytes); 134 memcpy(rX.p, rA.p, bytes); 136 TEST_MEMORY_COMPARE(rX.p, bytes, rR.p, bytes); [all …]
|
D | test_suite_asn1parse.function | 19 static int nested_parse(unsigned char **const p, 25 unsigned char *const start = *p; 40 TEST_EQUAL(mbedtls_asn1_get_tag(p, end, &len2, tag ^ 1), 42 *p = start; 43 TEST_EQUAL(mbedtls_asn1_get_tag(p, end, &len2, tag), 0); 45 TEST_ASSERT(*p == content_start); 46 *p = content_start; 52 *p = start; 53 ret = mbedtls_asn1_get_bool(p, end, &val); 65 *p = start; [all …]
|