/optee_os/lib/libmbedtls/mbedtls/library/ |
A D | ssl_cache.c | 67 cur = cache->chain; in mbedtls_ssl_cache_get() 70 while( cur != NULL ) in mbedtls_ssl_cache_get() 72 entry = cur; in mbedtls_ssl_cache_get() 73 cur = cur->next; in mbedtls_ssl_cache_get() 177 old = cur; in mbedtls_ssl_cache_set() 181 prv = cur; in mbedtls_ssl_cache_set() 182 cur = cur->next; in mbedtls_ssl_cache_set() 185 if( cur == NULL ) in mbedtls_ssl_cache_set() 199 cur = old; in mbedtls_ssl_cache_set() 326 prv = cur; in mbedtls_ssl_cache_free() [all …]
|
A D | memory_buffer_alloc.c | 114 cur = cur->next; in debug_chain() 123 cur = cur->next_free; in debug_chain() 217 prv = cur; in verify_chain() 218 cur = cur->next; in verify_chain() 258 cur = cur->next_free; in buffer_alloc_calloc() 287 cur->prev_free->next_free = cur->next_free; in buffer_alloc_calloc() 292 cur->next_free->prev_free = cur->prev_free; in buffer_alloc_calloc() 322 new->prev = cur; in buffer_alloc_calloc() 346 cur->alloc = 1; in buffer_alloc_calloc() 347 cur->size = len; in buffer_alloc_calloc() [all …]
|
A D | asn1parse.c | 343 cb_ctx->cur; in asn1_get_sequence_of_cb() 345 if( cur->buf.p != NULL ) in asn1_get_sequence_of_cb() 347 cur->next = in asn1_get_sequence_of_cb() 353 cur = cur->next; in asn1_get_sequence_of_cb() 356 cur->buf.p = start; in asn1_get_sequence_of_cb() 357 cur->buf.len = len; in asn1_get_sequence_of_cb() 358 cur->buf.tag = tag; in asn1_get_sequence_of_cb() 360 cb_ctx->cur = cur; in asn1_get_sequence_of_cb() 443 if( cur == NULL ) in mbedtls_asn1_free_named_data() 458 *head = cur->next; in mbedtls_asn1_free_named_data_list() [all …]
|
A D | asn1write.c | 426 if( cur == NULL ) in mbedtls_asn1_store_named_data() 429 cur->oid.len = oid_len; in mbedtls_asn1_store_named_data() 431 if( cur->oid.p == NULL ) in mbedtls_asn1_store_named_data() 433 mbedtls_free( cur ); in mbedtls_asn1_store_named_data() 439 cur->val.len = val_len; in mbedtls_asn1_store_named_data() 451 cur->next = *head; in mbedtls_asn1_store_named_data() 452 *head = cur; in mbedtls_asn1_store_named_data() 457 cur->val.p = NULL; in mbedtls_asn1_store_named_data() 471 cur->val.p = p; in mbedtls_asn1_store_named_data() 472 cur->val.len = val_len; in mbedtls_asn1_store_named_data() [all …]
|
A D | x509_create.c | 110 const x509_attr_descriptor_t *cur; in x509_attr_descr_from_name() local 112 for( cur = x509_attrs; cur->name != NULL; cur++ ) in x509_attr_descr_from_name() 113 if( cur->name_len == name_len && in x509_attr_descr_from_name() 117 if ( cur->name == NULL ) in x509_attr_descr_from_name() 120 return( cur ); in x509_attr_descr_from_name() 171 if(cur == NULL ) in mbedtls_x509_string_to_names() 211 mbedtls_asn1_named_data *cur; in mbedtls_x509_set_extension() local 219 cur->val.p[0] = critical; in mbedtls_x509_set_extension() 274 mbedtls_asn1_named_data *cur = first; in mbedtls_x509_write_names() local 276 while( cur != NULL ) in mbedtls_x509_write_names() [all …]
|
A D | x509_crt.c | 696 cur = cur->next; in x509_get_subject_alt_name() 838 cur = cur->next; in x509_get_certificate_policies() 1797 cur = cur->next; in x509_info_subject_alt_name() 1871 cur = cur->next; in x509_info_subject_alt_name() 2014 cur = cur->next; in x509_info_ext_key_usage() 2043 cur = cur->next; in x509_info_cert_policies() 2237 for( cur = x509_crt_verify_strings; cur->string != NULL ; cur++ ) in mbedtls_x509_crt_verify_info() 2296 for( cur = &crt->ext_key_usage; cur != NULL; cur = cur->next ) in mbedtls_x509_crt_check_extended_key_usage() 2330 cur = cur->next; in mbedtls_x509_crt_is_revoked() 2762 for( cur = trust_ca; cur != NULL; cur = cur->next ) in x509_crt_check_ee_locally_trusted() [all …]
|
A D | net_sockets.c | 178 struct addrinfo hints, *addr_list, *cur; in mbedtls_net_connect() local 194 for( cur = addr_list; cur != NULL; cur = cur->ai_next ) in mbedtls_net_connect() 196 ctx->fd = (int) socket( cur->ai_family, cur->ai_socktype, in mbedtls_net_connect() 197 cur->ai_protocol ); in mbedtls_net_connect() 204 if( connect( ctx->fd, cur->ai_addr, MSVC_INT_CAST cur->ai_addrlen ) == 0 ) in mbedtls_net_connect() 225 struct addrinfo hints, *addr_list, *cur; in mbedtls_net_bind() local 243 for( cur = addr_list; cur != NULL; cur = cur->ai_next ) in mbedtls_net_bind() 245 ctx->fd = (int) socket( cur->ai_family, cur->ai_socktype, in mbedtls_net_bind() 246 cur->ai_protocol ); in mbedtls_net_bind() 262 if( bind( ctx->fd, cur->ai_addr, MSVC_INT_CAST cur->ai_addrlen ) != 0 ) in mbedtls_net_bind()
|
A D | oid.c | 53 const mbedtls_oid_descriptor_t *cur = \ 56 while( cur->asn1 != NULL ) { \ 57 if( cur->asn1_len == oid->len && \ 58 memcmp( cur->asn1, oid->p, oid->len ) == 0 ) { \ 62 cur = (const mbedtls_oid_descriptor_t *) p; \ 116 const TYPE_T *cur = (LIST); \ 117 while( cur->descriptor.asn1 != NULL ) { \ 118 if( cur->ATTR1 == (ATTR1) ) { \ 119 *oid = cur->descriptor.asn1; \ 120 *olen = cur->descriptor.asn1_len; \ [all …]
|
A D | x509.c | 348 mbedtls_x509_name *cur ) in x509_get_attr_type_value() argument 365 oid = &cur->oid; in x509_get_attr_type_value() 385 val = &cur->val; in x509_get_attr_type_value() 400 cur->next = NULL; in x509_get_attr_type_value() 429 mbedtls_x509_name *cur ) in mbedtls_x509_get_name() argument 456 cur->next_merged = 1; in mbedtls_x509_get_name() 460 if( cur->next == NULL ) in mbedtls_x509_get_name() 463 cur = cur->next; in mbedtls_x509_get_name() 472 cur->next = mbedtls_calloc( 1, sizeof( mbedtls_x509_name ) ); in mbedtls_x509_get_name() 474 if( cur->next == NULL ) in mbedtls_x509_get_name() [all …]
|
A D | debug.c | 318 const char *start, *cur; in debug_print_line_by_line() local 321 for( cur = text; *cur != '\0'; cur++ ) in debug_print_line_by_line() 323 if( *cur == '\n' ) in debug_print_line_by_line() 325 size_t len = cur - start + 1; in debug_print_line_by_line() 334 start = cur + 1; in debug_print_line_by_line()
|
A D | ssl_msg.c | 442 *cur = rec->type; in ssl_extract_add_data_from_record() 443 cur++; in ssl_extract_add_data_from_record() 455 cur++; in ssl_extract_add_data_from_record() 459 cur += 2; in ssl_extract_add_data_from_record() 466 cur += 2; in ssl_extract_add_data_from_record() 2332 cur = cur->next; in ssl_flight_append() 2333 cur->next = msg; in ssl_flight_append() 2348 while( cur != NULL ) in mbedtls_ssl_flight_free() 2355 cur = next; in mbedtls_ssl_flight_free() 2483 memcpy( ssl->out_msg, cur->p, cur->len ); in mbedtls_ssl_flight_transmit() [all …]
|
A D | ssl_ciphersuites.c | 2243 while( cur->id != 0 ) in mbedtls_ssl_ciphersuite_from_string() 2246 return( cur ); in mbedtls_ssl_ciphersuite_from_string() 2248 cur++; in mbedtls_ssl_ciphersuite_from_string() 2258 while( cur->id != 0 ) in mbedtls_ssl_ciphersuite_from_id() 2260 if( cur->id == ciphersuite ) in mbedtls_ssl_ciphersuite_from_id() 2261 return( cur ); in mbedtls_ssl_ciphersuite_from_id() 2263 cur++; in mbedtls_ssl_ciphersuite_from_id() 2275 if( cur == NULL ) in mbedtls_ssl_get_ciphersuite_name() 2278 return( cur->name ); in mbedtls_ssl_get_ciphersuite_name() 2287 if( cur == NULL ) in mbedtls_ssl_get_ciphersuite_id() [all …]
|
A D | ecp_curves.c | 992 #define LOAD32 cur = A( i ); 998 #define STORE32 N->p[i] = cur; 1008 N->p[i/2] |= ((mbedtls_mpi_uint) cur) << 32; \ 1011 N->p[i/2] |= (mbedtls_mpi_uint) cur; \ 1031 #define ADD( j ) add32( &cur, A( j ), &c ); 1032 #define SUB( j ) sub32( &cur, A( j ), &c ); 1043 uint32_t cur; \ 1054 sub32( &cur, -cc, &c ); \ 1056 add32( &cur, cc, &c ); \ 1060 cur = c > 0 ? c : 0; STORE32; \ [all …]
|
A D | ssl_srv.c | 932 mbedtls_ssl_key_cert *cur, *list, *fallback = NULL; in ssl_pick_cert() local 955 for( cur = list; cur != NULL; cur = cur->next ) in ssl_pick_cert() 959 cur->cert ); in ssl_pick_cert() 998 cur->cert->sig_md != MBEDTLS_MD_SHA1 ) in ssl_pick_cert() 1001 fallback = cur; in ssl_pick_cert() 1013 if( cur == NULL ) in ssl_pick_cert() 1014 cur = fallback; in ssl_pick_cert() 1017 if( cur != NULL ) in ssl_pick_cert() 1019 ssl->handshake->key_cert = cur; in ssl_pick_cert() 3148 const int *cur; in ssl_write_certificate_request() local [all …]
|
A D | ssl_tls.c | 4261 cur = cur->next; in ssl_append_key_cert() 5961 while( cur != NULL ) in ssl_key_cert_free() 5963 next = cur->next; in ssl_key_cert_free() 5964 mbedtls_free( cur ); in ssl_key_cert_free() 5965 cur = next; in ssl_key_cert_free() 6046 while( cur != NULL ) in mbedtls_ssl_handshake_free() 6050 cur = next; in mbedtls_ssl_handshake_free() 6666 const char **cur; in ssl_context_load() local 6676 for( cur = ssl->conf->alpn_list; *cur != NULL; cur++ ) in ssl_context_load() 7291 const int *cur; in mbedtls_ssl_check_sig_hash() local [all …]
|
/optee_os/core/lib/libtomcrypt/src/math/ |
A D | multi.c | 17 void **cur = a; in ltc_init_multi() local 22 while (cur != NULL) { in ltc_init_multi() 28 cur = a; in ltc_init_multi() 46 void **cur = a; in ltc_init_multi_size() local 51 while (cur != NULL) { in ltc_init_multi_size() 57 cur = a; in ltc_init_multi_size() 74 void *cur = a; in ltc_deinit_multi() local 78 while (cur != NULL) { in ltc_deinit_multi() 79 mp_clear(cur); in ltc_deinit_multi() 87 void **cur = a; in ltc_cleanup_multi() local [all …]
|
/optee_os/ta/pkcs11/src/ |
A D | attributes.c | 65 char *cur = NULL; in _remove_attribute() local 71 end = cur + h->attrs_size; in _remove_attribute() 72 for (; cur < end; cur += next_off) { in _remove_attribute() 84 TEE_MemMove(cur, cur + next_off, end - (cur + next_off)); in _remove_attribute() 115 for (; cur < end; cur += next_off) { in get_attribute_ptrs() 145 if (cur > end) { in get_attribute_ptrs() 215 for (; cur < end; cur += len) { in modify_attributes_list() 333 char *cur = src; in __trace_attributes() local 344 for (; cur < (char *)end; cur += next_off) { in __trace_attributes() 412 cur + sizeof(pkcs11_ref)); in __trace_attributes() [all …]
|
A D | sanitize_object.c | 322 char *cur = src; in __trace_attributes() local 333 for (; cur < (char *)end; cur += next) { in __trace_attributes() 339 TEE_MemMove(&pkcs11_ref, cur, sizeof(pkcs11_ref)); in __trace_attributes() 340 TEE_MemMove(&data[0], cur + sizeof(pkcs11_ref), in __trace_attributes() 342 TEE_MemMove(&data_u32, cur + sizeof(pkcs11_ref), in __trace_attributes() 350 cur + sizeof(pkcs11_ref)), in __trace_attributes() 381 start = cur + sizeof(pkcs11_ref); in __trace_attributes() 391 if (cur != (char *)end) in __trace_attributes()
|
/optee_os/core/lib/libtomcrypt/src/pk/ecc/ |
A D | ecc_import_pkcs8.c | 29 const ltc_asn1_list *cur; in _der_flexi_sequence_cmp() local 33 cur = flexi->child; in _der_flexi_sequence_cmp() 35 if (!LTC_ASN1_IS_TYPE(cur, check->t)) { in _der_flexi_sequence_cmp() 38 if (check->pp != NULL) *check->pp = (ltc_asn1_list*)cur; in _der_flexi_sequence_cmp() 39 cur = cur->next; in _der_flexi_sequence_cmp()
|
/optee_os/core/kernel/ |
A D | lockdep.c | 112 struct lockdep_bfs *cur = NULL; in lockdep_bfs_queue_delete() local 115 TAILQ_FOREACH_SAFE(cur, queue, link, next) { in lockdep_bfs_queue_delete() 116 TAILQ_REMOVE(queue, cur, link); in lockdep_bfs_queue_delete() 117 free(cur->path); in lockdep_bfs_queue_delete() 118 free(cur); in lockdep_bfs_queue_delete()
|
/optee_os/out/arm/export-ta_arm32/host_include/mbedtls/ |
A D | ssl_internal.h | 331 static inline int mbedtls_ssl_chk_buf_ptr( const uint8_t *cur, in mbedtls_ssl_chk_buf_ptr() argument 334 return( ( cur > end ) || ( need > (size_t)( end - cur ) ) ); in mbedtls_ssl_chk_buf_ptr() 347 #define MBEDTLS_SSL_CHK_BUF_PTR( cur, end, need ) \ argument 349 if( mbedtls_ssl_chk_buf_ptr( ( cur ), ( end ), ( need ) ) != 0 ) \
|
/optee_os/out/arm/export-ta_arm32/include/mbedtls/ |
A D | ssl_internal.h | 331 static inline int mbedtls_ssl_chk_buf_ptr( const uint8_t *cur, in mbedtls_ssl_chk_buf_ptr() argument 334 return( ( cur > end ) || ( need > (size_t)( end - cur ) ) ); in mbedtls_ssl_chk_buf_ptr() 347 #define MBEDTLS_SSL_CHK_BUF_PTR( cur, end, need ) \ argument 349 if( mbedtls_ssl_chk_buf_ptr( ( cur ), ( end ), ( need ) ) != 0 ) \
|
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | ssl_internal.h | 331 static inline int mbedtls_ssl_chk_buf_ptr( const uint8_t *cur, in mbedtls_ssl_chk_buf_ptr() argument 334 return( ( cur > end ) || ( need > (size_t)( end - cur ) ) ); in mbedtls_ssl_chk_buf_ptr() 347 #define MBEDTLS_SSL_CHK_BUF_PTR( cur, end, need ) \ argument 349 if( mbedtls_ssl_chk_buf_ptr( ( cur ), ( end ), ( need ) ) != 0 ) \
|
/optee_os/out/arm/export-ta_arm64/include/mbedtls/ |
A D | ssl_internal.h | 331 static inline int mbedtls_ssl_chk_buf_ptr( const uint8_t *cur, in mbedtls_ssl_chk_buf_ptr() argument 334 return( ( cur > end ) || ( need > (size_t)( end - cur ) ) ); in mbedtls_ssl_chk_buf_ptr() 347 #define MBEDTLS_SSL_CHK_BUF_PTR( cur, end, need ) \ argument 349 if( mbedtls_ssl_chk_buf_ptr( ( cur ), ( end ), ( need ) ) != 0 ) \
|
/optee_os/out/arm/export-ta_arm64/host_include/mbedtls/ |
A D | ssl_internal.h | 331 static inline int mbedtls_ssl_chk_buf_ptr( const uint8_t *cur, in mbedtls_ssl_chk_buf_ptr() argument 334 return( ( cur > end ) || ( need > (size_t)( end - cur ) ) ); in mbedtls_ssl_chk_buf_ptr() 347 #define MBEDTLS_SSL_CHK_BUF_PTR( cur, end, need ) \ argument 349 if( mbedtls_ssl_chk_buf_ptr( ( cur ), ( end ), ( need ) ) != 0 ) \
|