Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 338) sorted by relevance

12345678910>>...14

/openthread-latest/third_party/mbedtls/repo/library/
Dasn1write.c24 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 …]
Dasn1parse.c28 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 …]
Dx509.c63 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 …]
Dx509_csr.c43 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 …]
Dx509_crl.c51 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 …]
Dpkcs7.c40 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 …]
Dssl_client.c31 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 …]
Dssl_tls13_client.c51 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 …]
Dx509_crt.c280 if (name->len < 3 || name->p[0] != '*' || name->p[1] != '.') { in x509_check_wildcard()
296 x509_memcasecmp(name->p + 1, cn + cn_idx, name->len - 1) == 0) { in x509_check_wildcard()
313 memcmp(a->p, b->p, b->len) == 0) { in x509_string_cmp()
320 x509_memcasecmp(a->p, b->p, b->len) == 0) { in x509_string_cmp()
348 memcmp(a->oid.p, b->oid.p, b->oid.len) != 0) { in x509_name_cmp()
393 static int x509_get_version(unsigned char **p, in x509_get_version() argument
400 if ((ret = mbedtls_asn1_get_tag(p, end, &len, in x509_get_version()
411 end = *p + len; in x509_get_version()
413 if ((ret = mbedtls_asn1_get_int(p, end, ver)) != 0) { in x509_get_version()
417 if (*p != end) { in x509_get_version()
[all …]
Dbignum_mod.c27 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 …]
Dbignum.c88 void * const p[2] = { X->p, Y->p }; in mbedtls_mpi_lt_mpi_ct() local
90 mbedtls_ct_condition_t lt = mbedtls_mpi_core_lt_ct(p[i], p[i ^ 1], X->n); in mbedtls_mpi_lt_mpi_ct()
130 mbedtls_mpi_core_cond_assign(X->p, Y->p, Y->n, do_assign); in mbedtls_mpi_safe_cond_assign()
134 X->p[i] = mbedtls_ct_mpi_uint_if_else_0(do_not_assign, X->p[i]); in mbedtls_mpi_safe_cond_assign()
168 mbedtls_mpi_core_cond_swap(X->p, Y->p, X->n, do_swap); in mbedtls_mpi_safe_cond_swap()
184 X->p = NULL; in mbedtls_mpi_init()
196 if (X->p != NULL) { in mbedtls_mpi_free()
197 mbedtls_mpi_zeroize_and_free(X->p, X->n); in mbedtls_mpi_free()
202 X->p = NULL; in mbedtls_mpi_free()
210 mbedtls_mpi_uint *p; in mbedtls_mpi_grow() local
[all …]
Dx509_create.c246 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 …]
Dpkparse.c112 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 …]
/openthread-latest/tests/scripts/thread-cert/
DCert_9_2_06_DatasetDissemination.py233 must_verify(lambda p: p.thread_meshcop.tlv.state == 1)
252 filter(lambda p: p.mle.tlv.active_tstamp == TIMESTAMP_INIT and \
253 (p.mle.tlv.leader_data.data_version -
255 p.mle.tlv.leader_data.stable_data_version ==
257 p.thread_nwd.tlv.stable == [0] and \
258 NWD_COMMISSIONING_DATA_TLV in p.thread_nwd.tlv.type and \
259 NM_COMMISSIONER_SESSION_ID_TLV in p.thread_meshcop.tlv.type and \
260 NM_STEERING_DATA_TLV in p.thread_meshcop.tlv.type and \
261 NM_BORDER_AGENT_LOCATOR_TLV in p.thread_meshcop.tlv.type
283 filter(lambda p: p.mle.tlv.active_tstamp == TIMESTAMP_INIT and \
[all …]
DCert_9_2_09_PendingPartition.py248 must_verify(lambda p: p.thread_meshcop.tlv.state == 1)
272 filter(lambda p: p.mle.tlv.active_tstamp == TIMESTAMP_INIT and\
273 p.mle.tlv.pending_tstamp == COMM_PENDING_TIMESTAMP and\
274 (p.mle.tlv.leader_data.data_version -
276 (p.mle.tlv.leader_data.stable_data_version -
278 p.thread_nwd.tlv.stable == [0] and\
279 NWD_COMMISSIONING_DATA_TLV in p.thread_nwd.tlv.type and\
280 NM_COMMISSIONER_SESSION_ID_TLV in p.thread_meshcop.tlv.type and\
281 NM_BORDER_AGENT_LOCATOR_TLV in p.thread_meshcop.tlv.type
288 filter(lambda p: {
[all …]
DCert_9_2_04_ActiveDataset.py210 … MGMT_ACTIVE_SET_URI).filter(lambda p: p.thread_meshcop.tlv.xpan_id == '000db70000000000' and p.
211 … thread_meshcop.tlv.net_name == ['GRL'] and p.thread_meshcop.tlv.chan_mask_mask
212 … == '001fffe0' and p.thread_meshcop.tlv.active_tstamp == 101).must_next()
216 lambda p: p.thread_meshcop.tlv.state == 1).must_next()
224 …MGMT_ACTIVE_GET_URI).filter(lambda p: p.thread_meshcop.tlv.active_tstamp == 101 and p.thread_meshc…
225 … xpan_id == '000db70000000000' and p.thread_meshcop.tlv.net_name == ['GRL'] and
226p.thread_meshcop.tlv.chan_mask_mask == '001fffe0').must_next()
231 … lambda p: p.thread_meshcop.tlv.active_tstamp == 102 and p.thread_meshcop.tlv.xpan_id ==
232 … '000db70000000001' and p.thread_meshcop.tlv.net_name == ['threadcert'] and p.thread_meshcop.tlv.
233 chan_mask_mask == '001fffe0' and p.thread_meshcop.tlv.channel == [18]).must_next()
[all …]
Dv1_2_LowPower_7_2_01_ForwardTrackingSeries.py194 … .filter(lambda p: LinkMetricsSubTlvType.FORWARD_PROBING_REGISTRATION in p.mle.tlv.link_sub_tlv) \
195 .filter(lambda p: 4 in p.mle.tlv.link_forward_series) \
196 ….filter(lambda p: consts.LINK_METRICS_TYPE_AVERAGE_ENUM_COUNT in p.mle.tlv.metric_type_id_flags.ty…
197 ….filter(lambda p: consts.LINK_METRICS_METRIC_TYPE_ENUM_PDU_COUNT in p.mle.tlv.metric_type_id_flags…
198 .filter(lambda p: 1 in p.mle.tlv.metric_type_id_flags.l) \
205 .filter(lambda p: p.mle.tlv.link_status_sub_tlv == consts.LINK_METRICS_STATUS_SUCCESS) \
212 .filter(lambda p: TlvType.LINK_METRICS_REPORT in p.mle.tlv.type) \
213 ….filter(lambda p: consts.LINK_METRICS_TYPE_AVERAGE_ENUM_COUNT in p.mle.tlv.metric_type_id_flags.ty…
214 ….filter(lambda p: consts.LINK_METRICS_METRIC_TYPE_ENUM_PDU_COUNT in p.mle.tlv.metric_type_id_flags…
224 … .filter(lambda p: LinkMetricsSubTlvType.FORWARD_PROBING_REGISTRATION in p.mle.tlv.link_sub_tlv) \
[all …]
Dv1_2_LowPower_7_1_02_SingleProbeLinkMetricsWithoutEnhancedAck.py209 … .filter(lambda p: LinkMetricsSubTlvType.LINK_METRICS_QUERY_ID in p.mle.tlv.link_sub_tlv) \
210 .filter(lambda p: p.mle.tlv.query_id == 0) \
211 … .filter(lambda p: LinkMetricsSubTlvType.LINK_METRICS_QUERY_OPTIONS in p.mle.tlv.link_sub_tlv) \
225 .filter(lambda p: LinkMetricsSubTlvType.LINK_METRICS_REPORT in p.mle.tlv.link_sub_tlv) \
226 ….filter(lambda p: consts.LINK_METRICS_TYPE_AVERAGE_ENUM_EXPONENTIAL in p.mle.tlv.metric_type_id_fl…
227 ….filter(lambda p: consts.LINK_METRICS_METRIC_TYPE_ENUM_RSSI in p.mle.tlv.metric_type_id_flags.metr…
245 … .filter(lambda p: LinkMetricsSubTlvType.LINK_METRICS_QUERY_ID in p.mle.tlv.link_sub_tlv) \
246 .filter(lambda p: p.mle.tlv.query_id == 0) \
247 … .filter(lambda p: LinkMetricsSubTlvType.LINK_METRICS_QUERY_OPTIONS in p.mle.tlv.link_sub_tlv) \
261 .filter(lambda p: LinkMetricsSubTlvType.LINK_METRICS_REPORT in p.mle.tlv.link_sub_tlv) \
[all …]
DCert_5_8_04_SecurityPolicyTLV.py205 filter(lambda p: p.thread_meshcop.tlv.type is nullField).\
217 filter(lambda p: (p.thread_meshcop.tlv.sec_policy_rot == 3600 and
218 p.thread_meshcop.tlv.sec_policy_o == 1 and
219 p.thread_meshcop.tlv.sec_policy_n == 1 and
220 p.thread_meshcop.tlv.sec_policy_r == 1 and
221 p.thread_meshcop.tlv.sec_policy_c == 1) or
222 (p.thread_meshcop.tlv.unknown == '0e10f7')).\
235 filter(lambda p: {
239 } <= set(p.thread_meshcop.tlv.type) and\
240 p.thread_meshcop.tlv.active_tstamp == 15 and\
[all …]
DCert_8_3_01_CommissionerPetition.py123 filter(lambda p: {
125 } <= set(p.coap.tlv.type)\
146 filter(lambda p: {
150 } <= set(p.coap.tlv.type) and\
151 p.thread_meshcop.tlv.state == MESHCOP_ACCEPT
157 filter(lambda p: {
162 } <= set(p.mle.tlv.type) and\
165 } <= set(p.thread_nwd.tlv.type) and\
170 } <= set(p.thread_meshcop.tlv.type) and\
171 p.mle.tlv.leader_data.data_version ==
[all …]
DCert_5_6_09_NetworkDataForwarding.py149 ).must_verify(lambda p: {Ipv6Addr('2001:2:0:1::'), Ipv6Addr('2001:2:0:2::')} == set(
150p.thread_nwd.tlv.prefix) and p.thread_nwd.tlv.border_router.flag.p == [0] and p.thread_nwd.tlv.
151 … border_router.flag.s == [1] and p.thread_nwd.tlv.border_router.flag.r == [1] and p.thread_nwd.tlv
152 … .border_router.flag.o == [1] and p.thread_nwd.tlv.stable == [0, 1, 1, 1, 1, 1])
157 …).must_verify(lambda p: {SOURCE_ADDRESS_TLV, LEADER_DATA_TLV, NETWORK_DATA_TLV, ACTIVE_TIMESTAMP_T…
158 p.mle.tlv.type
160 p.thread_nwd.tlv.type) and {Ipv6Addr('2001:2:0:1::'), Ipv6Addr('2001:2:0:2::')} == set(
161p.thread_nwd.tlv.prefix) and {0xFFFE, 0xFFFE} == set(p.thread_nwd.tlv.border_router_16))
168 lambda p: p.wpan.dst16 == leader_rloc16 and p.wpan.src16 == router1_rloc16)
173 lambda p: p.wpan.dst16 == leader_rloc16 and p.wpan.src16 == router1_rloc16)
[all …]
DCert_7_1_06_BorderRouterAsLeader.py202 filter(lambda p:
204 p.thread_nwd.tlv.prefix and\
206 p.thread_nwd.tlv.border_router_16
228 filter(lambda p: {
232 } <= set(p.mle.tlv.type) and\
233 p.thread_nwd.tlv.border_router.flag.p == [1] and\
234 p.thread_nwd.tlv.border_router.flag.s == [1] and\
235 p.thread_nwd.tlv.border_router.flag.r == [1] and\
236 p.thread_nwd.tlv.border_router.flag.o == [1] and\
238 p.thread_nwd.tlv.prefix
[all …]
DCert_5_8_02_KeyIncrement.py89 …leader_pkts.filter_mle_cmd(MLE_ADVERTISEMENT).must_next().must_verify(lambda p: p.wpan.aux_sec.key…
99 …MLE_ADVERTISEMENT).must_next().must_verify(lambda p: p.wpan.aux_sec.key_index == 1 and p.wpan.aux_…
100 … key_id_mode == 2 and p.wpan.aux_sec.key_source == 0)
107 … _lpkts.filter(lambda p: p.ipv6.dst == router_mleid).filter_ping_request().must_next().must_verify(
108 lambda p: p.wpan.aux_sec.key_index == 1 and p.wpan.aux_sec.key_id_mode == 1)
113 … _rpkts.filter(lambda p: p.ipv6.dst == leader_mleid).filter_ping_reply().must_next().must_verify(
114 lambda p: p.wpan.aux_sec.key_index == 1 and p.wpan.aux_sec.key_id_mode == 1)
120 … _lpkts.filter(lambda p: p.ipv6.dst == router_mleid).filter_ping_request().must_next().must_verify(
121 lambda p: p.wpan.aux_sec.key_index == 2 and p.wpan.aux_sec.key_id_mode == 1)
126 … _rpkts.filter(lambda p: p.ipv6.dst == leader_mleid).filter_ping_reply().must_next().must_verify(
[all …]
/openthread-latest/tests/scripts/thread-cert/pktverify/
Dpacket_filter.py58 def _always_true(p): argument
166 filter_func=lambda p: self._filter_func(p) and func(p),
207 p = self._pkts[idx]
210 if self._filter_func(p):
211 … if p.wpan and not (self._index[0] <= idx < self._stop_index[0]): # wpan matched but not in range
213 … elif p.eth and not (self._index[1] <= idx < self._stop_index[1]): # eth matched but not in range
216 self._on_found_next(idx, p)
218 return p
230 p = self.next()
231 if p is not None:
[all …]
/openthread-latest/third_party/mbedtls/repo/programs/test/
Dmetatest.c60 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", 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 …]

12345678910>>...14