/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | asn1parse.c | 49 if( ( end - *p ) < 1 ) in mbedtls_asn1_get_len() 59 if( ( end - *p ) < 2 ) in mbedtls_asn1_get_len() 107 if( ( end - *p ) < 1 ) in mbedtls_asn1_get_tag() 238 if( *p != end ) in mbedtls_asn1_get_bitstring() 250 const unsigned char *end, in mbedtls_asn1_traverse_sequence_of() argument 267 if( *p + len != end ) in mbedtls_asn1_traverse_sequence_of() 270 while( *p < end ) in mbedtls_asn1_traverse_sequence_of() 390 if( ( end - *p ) < 1 ) in mbedtls_asn1_get_alg() 394 end = *p + len; in mbedtls_asn1_get_alg() 402 if( *p == end ) in mbedtls_asn1_get_alg() [all …]
|
A D | x509_crl.c | 103 if( *p == end ) in x509_get_crl_ext() 115 while( *p < end ) in x509_get_crl_ext() 167 if( *p != end ) in x509_get_crl_ext() 185 if( end <= *p ) in x509_get_crl_entry_ext() 212 while( *p < end ) in x509_get_crl_entry_ext() 221 if( *p != end ) in x509_get_crl_entry_ext() 239 if( *p == end ) in x509_get_entries() 253 while( *p < end ) in x509_get_entries() 385 end = p + len; in mbedtls_x509_crl_parse_der() 488 if( p != end ) in mbedtls_x509_crl_parse_der() [all …]
|
A D | pkparse.c | 188 if ( end - *p < 1 ) in pk_get_ecparams() 212 if( *p != end ) in pk_get_ecparams() 563 if( *p != end ) in pk_get_rsapubkey() 630 end = *p + len; in mbedtls_pk_parse_subpubkey() 740 end = p + len; in pk_parse_key_pkcs1_der() 832 if( p != end ) in pk_parse_key_pkcs1_der() 889 end = p + len; in pk_parse_key_sec1_der() 909 if( p != end ) in pk_parse_key_sec1_der() 931 if( p != end ) in pk_parse_key_sec1_der() 1034 end = p + len; in pk_parse_key_pkcs8_unencrypted_der() [all …]
|
A D | x509.c | 158 end = p + alg->len; in x509_get_hash_alg() 160 if( p >= end ) in x509_get_hash_alg() 178 if( p == end ) in x509_get_hash_alg() 184 if( p != end ) in x509_get_hash_alg() 226 if( p == end ) in mbedtls_x509_get_rsassa_pss_params() 251 if( p == end ) in mbedtls_x509_get_rsassa_pss_params() 282 if( p == end ) in mbedtls_x509_get_rsassa_pss_params() 303 if( p == end ) in mbedtls_x509_get_rsassa_pss_params() 329 if( p != end ) in mbedtls_x509_get_rsassa_pss_params() 359 end = *p + len; in x509_get_attr_type_value() [all …]
|
A D | x509_csr.c | 63 const unsigned char *end, in x509_csr_get_version() argument 90 unsigned char *p, *end; in mbedtls_x509_csr_parse_der() local 115 end = p + len; in mbedtls_x509_csr_parse_der() 124 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in mbedtls_x509_csr_parse_der() 131 if( len != (size_t) ( end - p ) ) in mbedtls_x509_csr_parse_der() 143 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in mbedtls_x509_csr_parse_der() 150 end = p + len; in mbedtls_x509_csr_parse_der() 151 csr->cri.len = end - csr->cri.p; in mbedtls_x509_csr_parse_der() 175 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in mbedtls_x509_csr_parse_der() 218 end = csr->raw.p + csr->raw.len; in mbedtls_x509_csr_parse_der() [all …]
|
A D | ecjpake.c | 161 if( end < *p || end - *p < 5 ) in ecjpake_write_len_point() 212 if( end < p || (size_t)( end - p ) < id_len ) in ecjpake_hash() 258 if( end < *p ) in ecjpake_zkp_read() 263 if( end < *p || (size_t)( end - *p ) < 1 ) in ecjpake_zkp_read() 271 if( end < *p || (size_t)( end - *p ) < r_len || r_len == 0 ) in ecjpake_zkp_read() 323 if( end < *p ) in ecjpake_zkp_write() 344 if( end < *p || (size_t)( end - *p ) < 1 + len || len > 255 ) in ecjpake_zkp_write() 377 if( end < *p ) in ecjpake_kkp_read() 418 if( end < *p ) in ecjpake_kkp_write() 462 if( p != end ) in ecjpake_kkpp_read() [all …]
|
A D | pkcs5.c | 60 const unsigned char *end = params->p + params->len; in pkcs5_parse_pbkdf2_params() local 74 if( ( ret = mbedtls_asn1_get_tag( &p, end, &salt->len, in pkcs5_parse_pbkdf2_params() 81 if( ( ret = mbedtls_asn1_get_int( &p, end, iterations ) ) != 0 ) in pkcs5_parse_pbkdf2_params() 84 if( p == end ) in pkcs5_parse_pbkdf2_params() 87 if( ( ret = mbedtls_asn1_get_int( &p, end, keylen ) ) != 0 ) in pkcs5_parse_pbkdf2_params() 93 if( p == end ) in pkcs5_parse_pbkdf2_params() 102 if( p != end ) in pkcs5_parse_pbkdf2_params() 115 unsigned char *p, *end; in mbedtls_pkcs5_pbes2() local 128 end = p + pbe_params->len; in mbedtls_pkcs5_pbes2() 140 if( ( ret = mbedtls_asn1_get_alg( &p, end, &kdf_alg_oid, in mbedtls_pkcs5_pbes2() [all …]
|
A D | x509_crt.c | 400 end = *p + len; in x509_get_version() 405 if( *p != end ) in x509_get_version() 429 end = *p + len; in x509_get_dates() 437 if( *p != end ) in x509_get_dates() 453 if( *p == end ) in x509_get_uid() 493 if( *p == end ) in x509_get_basic_constraints() 508 if( *p == end ) in x509_get_basic_constraints() 514 if( *p != end ) in x509_get_basic_constraints() 1093 end = p + len; in x509_crt_parse_der_core() 1141 end = p + len; in x509_crt_parse_der_core() [all …]
|
A D | ssl_cli.c | 395 MBEDTLS_SSL_CHK_BUF_PTR( p, end, 6 ); in ssl_write_supported_point_formats_ext() 989 const unsigned char *end; in ssl_write_client_hello() local 2737 if( end - *p < 4 ) in ssl_parse_server_ecdh_params_psa() 2844 if( end - (*p) < 2 ) in ssl_parse_server_psk_hint() 2853 if( end - (*p) < len ) in ssl_parse_server_psk_hint() 2982 if( (*p) + 2 > end ) in ssl_parse_signature_algorithm() 3104 ((void) end); in ssl_parse_server_key_exchange() 3127 ((void) end); in ssl_parse_server_key_exchange() 3187 end = ssl->in_msg + ssl->in_hslen; in ssl_parse_server_key_exchange() 3367 if( p > end - 2 ) in ssl_parse_server_key_exchange() [all …]
|
A D | dhm.c | 68 const unsigned char *end ) in dhm_read_bignum() argument 72 if( end - *p < 2 ) in dhm_read_bignum() 78 if( (int)( end - *p ) < n ) in dhm_read_bignum() 132 const unsigned char *end ) in mbedtls_dhm_read_params() argument 137 DHM_VALIDATE_RET( end != NULL ); in mbedtls_dhm_read_params() 485 unsigned char *p, *end; in mbedtls_dhm_parse_dhm() local 519 end = p + dhminlen; in mbedtls_dhm_parse_dhm() 528 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in mbedtls_dhm_parse_dhm() 535 end = p + len; in mbedtls_dhm_parse_dhm() 544 if( p != end ) in mbedtls_dhm_parse_dhm() [all …]
|
A D | ssl_cookie.c | 128 unsigned char **p, unsigned char *end, in ssl_cookie_hmac() argument 133 MBEDTLS_SSL_CHK_BUF_PTR( *p, end, COOKIE_HMAC_LEN ); in ssl_cookie_hmac() 153 unsigned char **p, unsigned char *end, in mbedtls_ssl_cookie_write() argument 163 MBEDTLS_SSL_CHK_BUF_PTR( *p, end, COOKIE_LEN ); in mbedtls_ssl_cookie_write() 180 p, end, cli_id, cli_id_len ); in mbedtls_ssl_cookie_write()
|
A D | pem.c | 232 const unsigned char *s1, *s2, *end; in mbedtls_pem_read_buffer() local 262 end = s2; in mbedtls_pem_read_buffer() 263 end += strlen( footer ); in mbedtls_pem_read_buffer() 264 if( *end == ' ' ) end++; in mbedtls_pem_read_buffer() 265 if( *end == '\r' ) end++; in mbedtls_pem_read_buffer() 266 if( *end == '\n' ) end++; in mbedtls_pem_read_buffer() 267 *use_len = end - data; in mbedtls_pem_read_buffer()
|
/optee_os-3.20.0/core/kernel/ |
A D | asan.c | 60 vaddr_t e = (vaddr_t)end; in va_range_inside_shadow() 70 vaddr_t e = (vaddr_t)end; in va_range_outside_shadow() 90 vaddr_t e = (vaddr_t)end; in asan_set_shadowed() 94 assert(va_is_well_aligned(end)); in asan_set_shadowed() 104 assert(va_is_well_aligned(end)); in asan_tag_no_access() 113 if (!asan_va_base || (begin == end)) in asan_tag_access() 121 if (!va_is_well_aligned(end)) in asan_tag_access() 122 *va_to_shadow(end) = ASAN_BLOCK_SIZE - va_misalignment(end); in asan_tag_access() 132 assert(va_is_well_aligned(end)); in asan_tag_heap_free() 171 void *end = (void *)(addr + size); in check_access() local [all …]
|
A D | thread.c | 115 CANARY_DIED(stack_tmp, end, n, canary); in thread_check_canaries() 124 CANARY_DIED(stack_abt, end, n, canary); in thread_check_canaries() 133 CANARY_DIED(stack_thread, end, n, canary); in thread_check_canaries() 175 vaddr_t __maybe_unused end = 0; in print_stack_limits() local 179 end = GET_STACK_BOTTOM(stack_tmp, n); in print_stack_limits() 184 end = GET_STACK_BOTTOM(stack_abt, n); in print_stack_limits() 188 end = threads[n].stack_va_end; in print_stack_limits() 317 *end = GET_STACK_BOTTOM(stack_tmp, pos); in get_stack_limits() 324 *end = GET_STACK_BOTTOM(stack_abt, pos); in get_stack_limits() 330 *end = threads[ct].stack_va_end; in get_stack_limits() [all …]
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | asn1.h | 215 const unsigned char *end, 240 const unsigned char *end, 259 const unsigned char *end, 280 const unsigned char *end, 301 const unsigned char *end, 343 const unsigned char *end, 394 const unsigned char *end, 507 const unsigned char *end, 534 const unsigned char *end, 555 const unsigned char *end, [all …]
|
A D | x509.h | 330 int mbedtls_x509_get_name( unsigned char **p, const unsigned char *end, 332 int mbedtls_x509_get_alg_null( unsigned char **p, const unsigned char *end, 334 int mbedtls_x509_get_alg( unsigned char **p, const unsigned char *end, 341 int mbedtls_x509_get_sig( unsigned char **p, const unsigned char *end, mbedtls_x509_buf *sig ); 345 int mbedtls_x509_get_time( unsigned char **p, const unsigned char *end, 347 int mbedtls_x509_get_serial( unsigned char **p, const unsigned char *end, 349 int mbedtls_x509_get_ext( unsigned char **p, const unsigned char *end,
|
/optee_os-3.20.0/core/include/kernel/ |
A D | asan.h | 26 void asan_tag_no_access(const void *begin, const void *end); 27 void asan_tag_access(const void *begin, const void *end); 28 void asan_tag_heap_free(const void *begin, const void *end); 34 const void *end __unused) in asan_tag_no_access() 38 const void *end __unused) in asan_tag_access() 42 const void *end __unused) in asan_tag_heap_free()
|
A D | thread.h | 223 bool get_stack_limits(vaddr_t *start, vaddr_t *end, bool hard); 226 vaddr_t *end) in get_stack_soft_limits() argument 228 return get_stack_limits(start, end, false); in get_stack_soft_limits() 232 vaddr_t *end) in get_stack_hard_limits() argument 234 return get_stack_limits(start, end, true); in get_stack_hard_limits()
|
A D | virtualization.h | 86 void virt_get_ta_ram(vaddr_t *start, vaddr_t *end); 102 virt_get_ta_ram(vaddr_t *start __unused, vaddr_t *end __unused) { } in virt_get_ta_ram()
|
/optee_os-3.20.0/core/arch/arm/include/kernel/ |
A D | tz_ssvce_pl310.h | 20 void arm_cl2_cleanbypa(vaddr_t pl310_base, paddr_t start, paddr_t end); 21 void arm_cl2_invbypa(vaddr_t pl310_base, paddr_t start, paddr_t end); 22 void arm_cl2_cleaninvbypa(vaddr_t pl310_base, paddr_t start, paddr_t end);
|
/optee_os-3.20.0/core/crypto/ |
A D | signed_hdr.c | 26 size_t end = 0; in shdr_alloc_and_copy() local 28 if (ADD_OVERFLOW(offs, sizeof(struct shdr), &end) || end > img_size) in shdr_alloc_and_copy() 32 if (ADD_OVERFLOW(offs, shdr_size, &end) || end > img_size) in shdr_alloc_and_copy() 169 size_t end = 0; in check_attrs() local 173 ADD_OVERFLOW(end, sizeof(*subkey), &end) || in check_attrs() 174 end > img_size) in check_attrs() 178 if (ADD_OVERFLOW(attrs[n].offs, attrs[n].size, &end) || in check_attrs() 179 end > img_size) in check_attrs() 256 size_t end = 0; in shdr_load_pub_key() local 264 if (ADD_OVERFLOW(shdr->img_size, offs, &end) || end > ns_img_size) in shdr_load_pub_key() [all …]
|
A D | rng_fortuna.c | 69 unsigned int end; member 186 if (next_begin == atomic_load_uint(&ring_buffer.end)) in push_ring_buffer() 206 if (atomic_load_uint(&ring_buffer.begin) == ring_buffer.end) in pop_ring_buffer() 209 next_end = (ring_buffer.end + 1) % ARRAY_SIZE(ring_buffer.elem); in pop_ring_buffer() 211 *snum = ring_buffer.elem[ring_buffer.end].snum; in pop_ring_buffer() 212 *pnum = ring_buffer.elem[ring_buffer.end].pnum; in pop_ring_buffer() 213 dlen = MIN(ring_buffer.elem[ring_buffer.end].dlen, RING_BUF_DATA_SIZE); in pop_ring_buffer() 214 assert(ring_buffer.elem[ring_buffer.end].dlen == dlen); in pop_ring_buffer() 215 memcpy(data, ring_buffer.elem[ring_buffer.end].data, dlen); in pop_ring_buffer() 217 atomic_store_uint(&ring_buffer.end, next_end); in pop_ring_buffer()
|
/optee_os-3.20.0/core/lib/libfdt/ |
A D | fdt_ro.c | 249 q = end; in fdt_path_offset_namelen() 259 while (p < end) { in fdt_path_offset_namelen() 264 if (p == end) in fdt_path_offset_namelen() 269 q = end; in fdt_path_offset_namelen() 701 const char *list, *end; in fdt_stringlist_count() local 708 end = list + length; in fdt_stringlist_count() 710 while (list < end) { in fdt_stringlist_count() 735 end = list + length; in fdt_stringlist_search() 737 while (list < end) { in fdt_stringlist_search() 769 end = list + length; in fdt_stringlist_get() [all …]
|
/optee_os-3.20.0/core/arch/arm/plat-imx/drivers/ |
A D | tzc380.c | 33 int end = 1; in imx_configure_tzasc() local 42 end = 2; in imx_configure_tzasc() 45 for (i = 0; i < end; i++) { in imx_configure_tzasc()
|
/optee_os-3.20.0/ta/pkcs11/src/ |
A D | attributes.c | 66 char *end = NULL; in _remove_attribute() local 71 end = cur + h->attrs_size; in _remove_attribute() 72 for (; cur < end; cur += next_off) { in _remove_attribute() 88 end -= next_off; in _remove_attribute() 108 char *end = cur + head->attrs_size; in get_attribute_ptrs() local 115 for (; cur < end; cur += next_off) { in get_attribute_ptrs() 145 if (cur > end) { in get_attribute_ptrs() 211 char *end = cur + head->attrs_size; in modify_attributes_list() local 215 for (; cur < end; cur += len) { in modify_attributes_list() 344 for (; cur < (char *)end; cur += next_off) { in __trace_attributes() [all …]
|