/optee_os/lib/libutee/ |
A D | tee_api_operations.c | 19 TEE_OperationInfo info; member 282 op->info.mode = mode; in TEE_AllocateOperation() 448 op->info.requiredKeyUsage; in TEE_GetOperationInfoMultiple() 463 op->info.requiredKeyUsage; in TEE_GetOperationInfoMultiple() 472 op->info.requiredKeyUsage; in TEE_GetOperationInfoMultiple() 479 op_info->mode = op->info.mode; in TEE_GetOperationInfoMultiple() 721 if (dst_op->info.algorithm != src_op->info.algorithm) in TEE_CopyOperation() 723 if (dst_op->info.mode != src_op->info.mode) in TEE_CopyOperation() 741 dst_op->info.handleState = src_op->info.handleState; in TEE_CopyOperation() 742 dst_op->info.keySize = src_op->info.keySize; in TEE_CopyOperation() [all …]
|
A D | tee_api_objects.c | 112 TEE_ObjectInfo info; in TEE_GetObjectBufferAttribute() local 148 TEE_ObjectInfo info; in TEE_GetObjectValueAttribute() local 229 TEE_ObjectInfo info; in TEE_FreeTransientObject() local 238 if ((info.handleFlags & TEE_HANDLE_FLAG_PERSISTENT) != 0) in TEE_FreeTransientObject() 249 TEE_ObjectInfo info; in TEE_ResetTransientObject() local 271 TEE_ObjectInfo info; in TEE_PopulateTransientObject() local 714 TEE_ObjectInfo info; in TEE_SeekObjectData() local 734 ((uint32_t)offset + info.dataPosition > in TEE_SeekObjectData() 736 (uint32_t)offset + info.dataPosition < in TEE_SeekObjectData() 737 info.dataPosition)) { in TEE_SeekObjectData() [all …]
|
/optee_os/lib/libutee/include/ |
A D | elf64.h | 146 #define ELF64_R_SYM(info) ((info) >> 32) argument 147 #define ELF64_R_TYPE(info) ((info) & 0xffffffffL) argument 152 #define ELF64_R_TYPE_DATA(info) (((Elf64_Xword)(info)<<32)>>40) argument 153 #define ELF64_R_TYPE_ID(info) (((Elf64_Xword)(info)<<56)>>56) argument 173 #define ELF64_M_SYM(info) ((info)>>8) argument 174 #define ELF64_M_SIZE(info) ((unsigned char)(info)) argument 202 #define ELF64_ST_BIND(info) ((info) >> 4) argument 203 #define ELF64_ST_TYPE(info) ((info) & 0xf) argument
|
A D | elf32.h | 137 #define ELF32_R_SYM(info) ((info) >> 8) argument 138 #define ELF32_R_TYPE(info) ((unsigned char)(info)) argument 166 #define ELF32_M_SYM(info) ((info)>>8) argument 167 #define ELF32_M_SIZE(info) ((unsigned char)(info)) argument 195 #define ELF32_ST_BIND(info) ((info) >> 4) argument 196 #define ELF32_ST_TYPE(info) ((info) & 0xf) argument
|
/optee_os/out/arm/export-ta_arm32/include/ |
A D | elf64.h | 146 #define ELF64_R_SYM(info) ((info) >> 32) argument 147 #define ELF64_R_TYPE(info) ((info) & 0xffffffffL) argument 152 #define ELF64_R_TYPE_DATA(info) (((Elf64_Xword)(info)<<32)>>40) argument 153 #define ELF64_R_TYPE_ID(info) (((Elf64_Xword)(info)<<56)>>56) argument 173 #define ELF64_M_SYM(info) ((info)>>8) argument 174 #define ELF64_M_SIZE(info) ((unsigned char)(info)) argument 202 #define ELF64_ST_BIND(info) ((info) >> 4) argument 203 #define ELF64_ST_TYPE(info) ((info) & 0xf) argument
|
A D | elf32.h | 137 #define ELF32_R_SYM(info) ((info) >> 8) argument 138 #define ELF32_R_TYPE(info) ((unsigned char)(info)) argument 166 #define ELF32_M_SYM(info) ((info)>>8) argument 167 #define ELF32_M_SIZE(info) ((unsigned char)(info)) argument 195 #define ELF32_ST_BIND(info) ((info) >> 4) argument 196 #define ELF32_ST_TYPE(info) ((info) & 0xf) argument
|
/optee_os/out/arm/export-ta_arm64/host_include/ |
A D | elf64.h | 146 #define ELF64_R_SYM(info) ((info) >> 32) argument 147 #define ELF64_R_TYPE(info) ((info) & 0xffffffffL) argument 152 #define ELF64_R_TYPE_DATA(info) (((Elf64_Xword)(info)<<32)>>40) argument 153 #define ELF64_R_TYPE_ID(info) (((Elf64_Xword)(info)<<56)>>56) argument 173 #define ELF64_M_SYM(info) ((info)>>8) argument 174 #define ELF64_M_SIZE(info) ((unsigned char)(info)) argument 202 #define ELF64_ST_BIND(info) ((info) >> 4) argument 203 #define ELF64_ST_TYPE(info) ((info) & 0xf) argument
|
A D | elf32.h | 137 #define ELF32_R_SYM(info) ((info) >> 8) argument 138 #define ELF32_R_TYPE(info) ((unsigned char)(info)) argument 166 #define ELF32_M_SYM(info) ((info)>>8) argument 167 #define ELF32_M_SIZE(info) ((unsigned char)(info)) argument 195 #define ELF32_ST_BIND(info) ((info) >> 4) argument 196 #define ELF32_ST_TYPE(info) ((info) & 0xf) argument
|
/optee_os/out/arm/export-ta_arm64/include/ |
A D | elf64.h | 146 #define ELF64_R_SYM(info) ((info) >> 32) argument 147 #define ELF64_R_TYPE(info) ((info) & 0xffffffffL) argument 152 #define ELF64_R_TYPE_DATA(info) (((Elf64_Xword)(info)<<32)>>40) argument 153 #define ELF64_R_TYPE_ID(info) (((Elf64_Xword)(info)<<56)>>56) argument 173 #define ELF64_M_SYM(info) ((info)>>8) argument 174 #define ELF64_M_SIZE(info) ((unsigned char)(info)) argument 202 #define ELF64_ST_BIND(info) ((info) >> 4) argument 203 #define ELF64_ST_TYPE(info) ((info) & 0xf) argument
|
A D | elf32.h | 137 #define ELF32_R_SYM(info) ((info) >> 8) argument 138 #define ELF32_R_TYPE(info) ((unsigned char)(info)) argument 166 #define ELF32_M_SYM(info) ((info)>>8) argument 167 #define ELF32_M_SIZE(info) ((unsigned char)(info)) argument 195 #define ELF32_ST_BIND(info) ((info) >> 4) argument 196 #define ELF32_ST_TYPE(info) ((info) & 0xf) argument
|
/optee_os/out/arm/export-ta_arm32/host_include/ |
A D | elf64.h | 146 #define ELF64_R_SYM(info) ((info) >> 32) argument 147 #define ELF64_R_TYPE(info) ((info) & 0xffffffffL) argument 152 #define ELF64_R_TYPE_DATA(info) (((Elf64_Xword)(info)<<32)>>40) argument 153 #define ELF64_R_TYPE_ID(info) (((Elf64_Xword)(info)<<56)>>56) argument 173 #define ELF64_M_SYM(info) ((info)>>8) argument 174 #define ELF64_M_SIZE(info) ((unsigned char)(info)) argument 202 #define ELF64_ST_BIND(info) ((info) >> 4) argument 203 #define ELF64_ST_TYPE(info) ((info) & 0xf) argument
|
A D | elf32.h | 137 #define ELF32_R_SYM(info) ((info) >> 8) argument 138 #define ELF32_R_TYPE(info) ((unsigned char)(info)) argument 166 #define ELF32_M_SYM(info) ((info)>>8) argument 167 #define ELF32_M_SIZE(info) ((unsigned char)(info)) argument 195 #define ELF32_ST_BIND(info) ((info) >> 4) argument 196 #define ELF32_ST_TYPE(info) ((info) & 0xf) argument
|
/optee_os/out/arm/export-ta_arm32/host_include/mbedtls/ |
A D | ssl_ciphersuites.h | 415 int mbedtls_ssl_ciphersuite_uses_ec( const mbedtls_ssl_ciphersuite_t *info ); 416 int mbedtls_ssl_ciphersuite_uses_psk( const mbedtls_ssl_ciphersuite_t *info ); 421 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_has_pfs() 438 static inline int mbedtls_ssl_ciphersuite_no_pfs( const mbedtls_ssl_ciphersuite_t *info ) in mbedtls_ssl_ciphersuite_no_pfs() argument 440 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_no_pfs() 458 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_uses_ecdh() 472 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_cert_req_allowed() 489 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_uses_srv_cert() 508 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_uses_dhe() 523 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_uses_ecdhe() [all …]
|
/optee_os/out/arm/export-ta_arm64/host_include/mbedtls/ |
A D | ssl_ciphersuites.h | 415 int mbedtls_ssl_ciphersuite_uses_ec( const mbedtls_ssl_ciphersuite_t *info ); 416 int mbedtls_ssl_ciphersuite_uses_psk( const mbedtls_ssl_ciphersuite_t *info ); 421 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_has_pfs() 438 static inline int mbedtls_ssl_ciphersuite_no_pfs( const mbedtls_ssl_ciphersuite_t *info ) in mbedtls_ssl_ciphersuite_no_pfs() argument 440 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_no_pfs() 458 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_uses_ecdh() 472 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_cert_req_allowed() 489 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_uses_srv_cert() 508 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_uses_dhe() 523 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_uses_ecdhe() [all …]
|
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | ssl_ciphersuites.h | 415 int mbedtls_ssl_ciphersuite_uses_ec( const mbedtls_ssl_ciphersuite_t *info ); 416 int mbedtls_ssl_ciphersuite_uses_psk( const mbedtls_ssl_ciphersuite_t *info ); 421 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_has_pfs() 438 static inline int mbedtls_ssl_ciphersuite_no_pfs( const mbedtls_ssl_ciphersuite_t *info ) in mbedtls_ssl_ciphersuite_no_pfs() argument 440 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_no_pfs() 458 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_uses_ecdh() 472 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_cert_req_allowed() 489 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_uses_srv_cert() 508 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_uses_dhe() 523 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_uses_ecdhe() [all …]
|
/optee_os/out/arm/export-ta_arm64/include/mbedtls/ |
A D | ssl_ciphersuites.h | 415 int mbedtls_ssl_ciphersuite_uses_ec( const mbedtls_ssl_ciphersuite_t *info ); 416 int mbedtls_ssl_ciphersuite_uses_psk( const mbedtls_ssl_ciphersuite_t *info ); 421 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_has_pfs() 438 static inline int mbedtls_ssl_ciphersuite_no_pfs( const mbedtls_ssl_ciphersuite_t *info ) in mbedtls_ssl_ciphersuite_no_pfs() argument 440 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_no_pfs() 458 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_uses_ecdh() 472 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_cert_req_allowed() 489 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_uses_srv_cert() 508 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_uses_dhe() 523 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_uses_ecdhe() [all …]
|
/optee_os/out/arm/export-ta_arm32/include/mbedtls/ |
A D | ssl_ciphersuites.h | 415 int mbedtls_ssl_ciphersuite_uses_ec( const mbedtls_ssl_ciphersuite_t *info ); 416 int mbedtls_ssl_ciphersuite_uses_psk( const mbedtls_ssl_ciphersuite_t *info ); 421 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_has_pfs() 438 static inline int mbedtls_ssl_ciphersuite_no_pfs( const mbedtls_ssl_ciphersuite_t *info ) in mbedtls_ssl_ciphersuite_no_pfs() argument 440 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_no_pfs() 458 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_uses_ecdh() 472 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_cert_req_allowed() 489 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_uses_srv_cert() 508 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_uses_dhe() 523 switch( info->key_exchange ) in mbedtls_ssl_ciphersuite_uses_ecdhe() [all …]
|
/optee_os/core/tee/ |
A D | tee_svc_storage.c | 153 o->info.keySize = head.keySize; in tee_svc_storage_read_head() 268 o->info.objectUsage = attr_o->info.objectUsage; in tee_svc_storage_init_file() 269 o->info.keySize = attr_o->info.keySize; in tee_svc_storage_init_file() 291 head.keySize = o->info.keySize; in tee_svc_storage_init_file() 301 o->info.dataSize = len; in tee_svc_storage_init_file() 439 len = o->info.dataSize; in syscall_storage_obj_del() 656 memcpy(info, &o->info, sizeof(TEE_ObjectInfo)); in syscall_storage_next_enum() 775 o->info.dataPosition += len; in syscall_storage_obj_write() 776 if (o->info.dataPosition > o->info.dataSize) in syscall_storage_obj_write() 777 o->info.dataSize = o->info.dataPosition; in syscall_storage_obj_write() [all …]
|
A D | tee_svc_cryp.c | 898 res = copy_to_user_private(info, &o->info, sizeof(o->info)); in syscall_cryp_obj_get_info() 1125 if (o->info.objectType == src->info.objectType) { in tee_obj_attr_copy_from() 1368 o->info.keySize = 0; in syscall_cryp_obj_reset() 1636 if (is_gp_legacy_des_key_size(o->info.objectType, o->info.maxKeySize)) in tee_svc_cryp_obj_populate_type() 1637 o->info.keySize -= o->info.keySize / 8; in tee_svc_cryp_obj_populate_type() 1724 dst_o->info.keySize = src_o->info.keySize; in syscall_cryp_obj_copy() 1725 dst_o->info.objectUsage = src_o->info.objectUsage; in syscall_cryp_obj_copy() 2681 *salt = *info = NULL; in get_hkdf_params() 2994 so->info.handleFlags |= in syscall_cryp_derive_key() 3068 void *salt, *info; in syscall_cryp_derive_key() local [all …]
|
/optee_os/ta/pkcs11/src/ |
A D | pkcs11_token.c | 294 pad_str(info->slot_description, sizeof(info->slot_description)); in set_token_description() 336 set_token_description(&info); in entry_ck_slot_info() 338 pad_str(info.manufacturer_id, sizeof(info.manufacturer_id)); in entry_ck_slot_info() 391 pad_str(info.manufacturer_id, sizeof(info.manufacturer_id)); in entry_ck_token_info() 392 pad_str(info.model, sizeof(info.model)); in entry_ck_token_info() 399 TEE_MemMove(info.serial_number, sn, sizeof(info.serial_number)); in entry_ck_token_info() 400 pad_str(info.serial_number, sizeof(info.serial_number)); in entry_ck_token_info() 402 TEE_MemMove(info.label, token->db_main->label, sizeof(info.label)); in entry_ck_token_info() 408 TEE_MemMove(out->memref.buffer, &info, sizeof(info)); in entry_ck_token_info() 526 TEE_MemMove(out->memref.buffer, &info, sizeof(info)); in entry_ck_token_mecha_info() [all …]
|
/optee_os/core/drivers/ |
A D | stm32_uart.c | 136 struct dt_node_info info = { }; in stm32_uart_init_from_dt_node() local 140 _fdt_fill_device_info(fdt, &info, node); in stm32_uart_init_from_dt_node() 142 if (info.status == DT_STATUS_DISABLED) in stm32_uart_init_from_dt_node() 145 assert(info.reg != DT_INFO_INVALID_REG && in stm32_uart_init_from_dt_node() 146 info.reg_size != DT_INFO_INVALID_REG_SIZE); in stm32_uart_init_from_dt_node() 153 pd->base.pa = info.reg; in stm32_uart_init_from_dt_node() 154 pd->secure = (info.status == DT_STATUS_OK_SEC); in stm32_uart_init_from_dt_node() 169 MEM_AREA_IO_NSEC, info.reg_size); in stm32_uart_init_from_dt_node()
|
/optee_os/lib/libutee/arch/arm/ |
A D | user_ta_entry.c | 41 struct dl_phdr_info info; member 53 static int _init_iterate_phdr_cb(struct dl_phdr_info *info, in _init_iterate_phdr_cb() argument 64 qe->info = *info; in _init_iterate_phdr_cb() 70 static void _get_fn_array(struct dl_phdr_info *info, Elf_Sword tag_a, in _get_fn_array() argument 79 for (i = 0; i < info->dlpi_phnum; i++) { in _get_fn_array() 80 phdr = info->dlpi_phdr + i; in _get_fn_array() 84 dyn = (Elf_Dyn *)(phdr->p_vaddr + info->dlpi_addr); in _get_fn_array() 92 info->dlpi_addr); in _get_fn_array() 117 _get_fn_array(&qe->info, DT_INIT_ARRAY, DT_INIT_ARRAYSZ, &fn, in __utee_call_elf_init_fn() 133 static int _fini_iterate_phdr_cb(struct dl_phdr_info *info, in _fini_iterate_phdr_cb() argument [all …]
|
/optee_os/core/lib/libtomcrypt/src/misc/hkdf/ |
A D | hkdf.c | 38 int hkdf_expand(int hash_idx, const unsigned char *info, unsigned long infolen, in hkdf_expand() argument 61 if (info == NULL && infolen != 0) { in hkdf_expand() 71 if (info != NULL) { in hkdf_expand() 72 XMEMCPY(T + hashsize, info, infolen); in hkdf_expand() 110 const unsigned char *info, unsigned long infolen, in hkdf() argument 134 err = hkdf_expand(hash_idx, info, infolen, extracted, hashsize, out, outlen); in hkdf()
|
/optee_os/lib/libmbedtls/mbedtls/library/ |
A D | hkdf.c | 30 const unsigned char *info, size_t info_len, in mbedtls_hkdf() argument 41 info, info_len, okm, okm_len ); in mbedtls_hkdf() 80 size_t prk_len, const unsigned char *info, in mbedtls_hkdf_expand() argument 104 if( info == NULL ) in mbedtls_hkdf_expand() 106 info = (const unsigned char *) ""; in mbedtls_hkdf_expand() 156 ret = mbedtls_md_hmac_update( &ctx, info, info_len ); in mbedtls_hkdf_expand()
|
A D | pk.c | 138 if( info == NULL || ctx->pk_info != NULL ) in mbedtls_pk_setup() 141 if( ( ctx->pk_ctx = info->ctx_alloc_func() ) == NULL ) in mbedtls_pk_setup() 144 ctx->pk_info = info; in mbedtls_pk_setup() 173 if( ( ctx->pk_ctx = info->ctx_alloc_func() ) == NULL ) in mbedtls_pk_setup_opaque() 176 ctx->pk_info = info; in mbedtls_pk_setup_opaque() 195 const mbedtls_pk_info_t *info = &mbedtls_rsa_alt_info; in mbedtls_pk_setup_rsa_alt() local 201 if( ( ctx->pk_ctx = info->ctx_alloc_func() ) == NULL ) in mbedtls_pk_setup_rsa_alt() 204 ctx->pk_info = info; in mbedtls_pk_setup_rsa_alt() 263 if( info->rs_alloc_func == NULL || info->rs_free_func == NULL ) in pk_restart_setup() 266 if( ( ctx->rs_ctx = info->rs_alloc_func() ) == NULL ) in pk_restart_setup() [all …]
|