/optee_os-3.20.0/core/lib/libtomcrypt/src/math/ |
A D | multi.c | 10 void **cur = a; in ltc_init_multi() local 15 while (cur != NULL) { in ltc_init_multi() 21 cur = a; in ltc_init_multi() 39 void **cur = a; in ltc_init_multi_size() local 44 while (cur != NULL) { in ltc_init_multi_size() 50 cur = a; in ltc_init_multi_size() 67 void *cur = a; in ltc_deinit_multi() local 71 while (cur != NULL) { in ltc_deinit_multi() 72 mp_clear(cur); in ltc_deinit_multi() 80 void **cur = a; in ltc_cleanup_multi() local [all …]
|
/optee_os-3.20.0/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 | 431 if( cur == NULL ) in mbedtls_asn1_store_named_data() 434 cur->oid.len = oid_len; in mbedtls_asn1_store_named_data() 436 if( cur->oid.p == NULL ) in mbedtls_asn1_store_named_data() 438 mbedtls_free( cur ); in mbedtls_asn1_store_named_data() 444 cur->val.len = val_len; in mbedtls_asn1_store_named_data() 456 cur->next = *head; in mbedtls_asn1_store_named_data() 457 *head = cur; in mbedtls_asn1_store_named_data() 462 cur->val.p = NULL; in mbedtls_asn1_store_named_data() 476 cur->val.p = p; in mbedtls_asn1_store_named_data() 477 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 | net_sockets.c | 180 struct addrinfo hints, *addr_list, *cur; in mbedtls_net_connect() local 196 for( cur = addr_list; cur != NULL; cur = cur->ai_next ) in mbedtls_net_connect() 198 ctx->fd = (int) socket( cur->ai_family, cur->ai_socktype, in mbedtls_net_connect() 199 cur->ai_protocol ); in mbedtls_net_connect() 206 if( connect( ctx->fd, cur->ai_addr, MSVC_INT_CAST cur->ai_addrlen ) == 0 ) in mbedtls_net_connect() 227 struct addrinfo hints, *addr_list, *cur; in mbedtls_net_bind() local 245 for( cur = addr_list; cur != NULL; cur = cur->ai_next ) in mbedtls_net_bind() 247 ctx->fd = (int) socket( cur->ai_family, cur->ai_socktype, in mbedtls_net_bind() 248 cur->ai_protocol ); in mbedtls_net_bind() 264 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_crt.c | 694 cur = cur->next; in x509_get_subject_alt_name() 836 cur = cur->next; in x509_get_certificate_policies() 1795 cur = cur->next; in x509_info_subject_alt_name() 1869 cur = cur->next; in x509_info_subject_alt_name() 2012 cur = cur->next; in x509_info_ext_key_usage() 2041 cur = cur->next; in x509_info_cert_policies() 2235 for( cur = x509_crt_verify_strings; cur->string != NULL ; cur++ ) in mbedtls_x509_crt_verify_info() 2294 for( cur = &crt->ext_key_usage; cur != NULL; cur = cur->next ) in mbedtls_x509_crt_check_extended_key_usage() 2328 cur = cur->next; in mbedtls_x509_crt_is_revoked() 2760 for( cur = trust_ca; cur != NULL; cur = cur->next ) in x509_crt_check_ee_locally_trusted() [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_ciphersuites.c | 2244 while( cur->id != 0 ) in mbedtls_ssl_ciphersuite_from_string() 2247 return( cur ); in mbedtls_ssl_ciphersuite_from_string() 2249 cur++; in mbedtls_ssl_ciphersuite_from_string() 2259 while( cur->id != 0 ) in mbedtls_ssl_ciphersuite_from_id() 2261 if( cur->id == ciphersuite ) in mbedtls_ssl_ciphersuite_from_id() 2262 return( cur ); in mbedtls_ssl_ciphersuite_from_id() 2264 cur++; in mbedtls_ssl_ciphersuite_from_id() 2276 if( cur == NULL ) in mbedtls_ssl_get_ciphersuite_name() 2279 return( cur->name ); in mbedtls_ssl_get_ciphersuite_name() 2288 if( cur == NULL ) in mbedtls_ssl_get_ciphersuite_id() [all …]
|
A D | ssl_msg.c | 453 *cur = rec->type; in ssl_extract_add_data_from_record() 454 cur++; in ssl_extract_add_data_from_record() 466 cur++; in ssl_extract_add_data_from_record() 469 cur += 2; in ssl_extract_add_data_from_record() 475 cur += 2; in ssl_extract_add_data_from_record() 2204 cur = cur->next; in ssl_flight_append() 2205 cur->next = msg; in ssl_flight_append() 2220 while( cur != NULL ) in mbedtls_ssl_flight_free() 2227 cur = next; in mbedtls_ssl_flight_free() 2356 memcpy( ssl->out_msg, cur->p, cur->len ); in mbedtls_ssl_flight_transmit() [all …]
|
A D | ecp_curves.c | 994 #define LOAD32 cur = A( i ); 1000 #define STORE32 N->p[i] = cur; 1010 N->p[i/2] |= ((mbedtls_mpi_uint) cur) << 32; \ 1013 N->p[i/2] |= (mbedtls_mpi_uint) cur; \ 1033 #define ADD( j ) add32( &cur, A( j ), &c ); 1034 #define SUB( j ) sub32( &cur, A( j ), &c ); 1045 uint32_t cur; \ 1056 sub32( &cur, -cc, &c ); \ 1058 add32( &cur, cc, &c ); \ 1062 cur = c > 0 ? c : 0; STORE32; \ [all …]
|
A D | ssl_srv.c | 952 mbedtls_ssl_key_cert *cur, *list, *fallback = NULL; in ssl_pick_cert() local 975 for( cur = list; cur != NULL; cur = cur->next ) in ssl_pick_cert() 979 cur->cert ); in ssl_pick_cert() 1018 cur->cert->sig_md != MBEDTLS_MD_SHA1 ) in ssl_pick_cert() 1021 fallback = cur; in ssl_pick_cert() 1033 if( cur == NULL ) in ssl_pick_cert() 1034 cur = fallback; in ssl_pick_cert() 1037 if( cur != NULL ) in ssl_pick_cert() 1039 ssl->handshake->key_cert = cur; in ssl_pick_cert() 3175 const int *cur; in ssl_write_certificate_request() local [all …]
|
A D | ssl_tls.c | 4356 cur = cur->next; in ssl_append_key_cert() 6056 while( cur != NULL ) in ssl_key_cert_free() 6058 next = cur->next; in ssl_key_cert_free() 6059 mbedtls_free( cur ); in ssl_key_cert_free() 6060 cur = next; in ssl_key_cert_free() 6141 while( cur != NULL ) in mbedtls_ssl_handshake_free() 6145 cur = next; in mbedtls_ssl_handshake_free() 6746 const char **cur; in ssl_context_load() local 6756 for( cur = ssl->conf->alpn_list; *cur != NULL; cur++ ) in ssl_context_load() 7383 const int *cur; in mbedtls_ssl_check_sig_hash() local [all …]
|
/optee_os-3.20.0/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()
|
A D | object.c | 755 char *cur = NULL; in entry_get_attribute_value() local 821 cur = (char *)template + sizeof(struct pkcs11_object_head); in entry_get_attribute_value() 822 end = cur + template->attrs_size; in entry_get_attribute_value() 824 for (; cur < end; cur += len) { in entry_get_attribute_value() 825 struct pkcs11_attribute_head *cli_ref = (void *)cur; in entry_get_attribute_value()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/rsa/ |
A D | rsa_key.c | 16 void **cur; in s_mpi_shrink_multi() local 26 cur = a; in s_mpi_shrink_multi() 28 while (cur != NULL) { in s_mpi_shrink_multi() 32 if (*cur != NULL) { in s_mpi_shrink_multi() 33 arg[n] = cur; in s_mpi_shrink_multi() 39 cur = va_arg(args, void**); in s_mpi_shrink_multi()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/ |
A D | ecc_import_pkcs8.c | 22 const ltc_asn1_list *cur; in s_der_flexi_sequence_cmp() local 26 cur = flexi->child; in s_der_flexi_sequence_cmp() 28 if (!LTC_ASN1_IS_TYPE(cur, check->t)) { in s_der_flexi_sequence_cmp() 31 if (check->pp != NULL) *check->pp = (ltc_asn1_list*)cur; in s_der_flexi_sequence_cmp() 32 cur = cur->next; in s_der_flexi_sequence_cmp()
|
/optee_os-3.20.0/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-3.20.0/core/lib/libtomcrypt/src/ciphers/ |
A D | blowfish.c | 342 static ulong32 s_blowfish_stream2word(const unsigned char *d, int dlen, int *cur) in s_blowfish_stream2word() argument 345 int y = *cur; in s_blowfish_stream2word() 355 *cur = y; in s_blowfish_stream2word()
|
/optee_os-3.20.0/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 ) \
|
A D | asn1.h | 395 mbedtls_asn1_sequence *cur,
|