/optee_os-3.20.0/ta/pkcs11/src/ |
A D | processing_ec.c | 344 TEE_Attribute *attrs = NULL; in load_tee_ec_key_attrs() local 354 if (!attrs) in load_tee_ec_key_attrs() 361 if (pkcs2tee_load_attr(&attrs[count], in load_tee_ec_key_attrs() 379 if (!attrs) in load_tee_ec_key_attrs() 412 *tee_attrs = attrs; in load_tee_ec_key_attrs() 415 TEE_Free(attrs); in load_tee_ec_key_attrs() 649 TEE_Attribute *attrs = NULL; in load_tee_eddsa_key_attrs() local 659 if (!attrs) in load_tee_eddsa_key_attrs() 675 if (!attrs) in load_tee_eddsa_key_attrs() 699 *tee_attrs = attrs; in load_tee_eddsa_key_attrs() [all …]
|
A D | processing_rsa.c | 511 TEE_Attribute *attrs = NULL; in load_tee_rsa_key_attrs() local 520 attrs = TEE_Malloc(2 * sizeof(TEE_Attribute), in load_tee_rsa_key_attrs() 522 if (!attrs) in load_tee_rsa_key_attrs() 525 if (pkcs2tee_load_attr(&attrs[count], TEE_ATTR_RSA_MODULUS, in load_tee_rsa_key_attrs() 529 if (pkcs2tee_load_attr(&attrs[count], in load_tee_rsa_key_attrs() 540 attrs = TEE_Malloc(8 * sizeof(TEE_Attribute), in load_tee_rsa_key_attrs() 542 if (!attrs) in load_tee_rsa_key_attrs() 549 if (pkcs2tee_load_attr(&attrs[count], in load_tee_rsa_key_attrs() 554 if (pkcs2tee_load_attr(&attrs[count], in load_tee_rsa_key_attrs() 603 *tee_attrs = attrs; in load_tee_rsa_key_attrs() [all …]
|
A D | pkcs11_attributes.c | 237 uint32_t const *attrs, in set_mandatory_attributes() argument 272 uint32_t const *attrs, in set_optional_attributes_with_def() argument 305 uint32_t const *attrs, in set_attributes_opt_or_null() argument 314 uint32_t const *attrs, in set_optional_attributes() argument 937 struct obj_attrs *attrs = NULL; in create_attributes_from_template() local 1167 switch (get_class(attrs)) { in create_attributes_from_template() 1196 rc = set_attribute(&attrs, in create_attributes_from_template() 1208 never_extract = !get_bool(attrs, in create_attributes_from_template() 1241 *out = attrs; in create_attributes_from_template() 1244 trace_attributes("object", attrs); in create_attributes_from_template() [all …]
|
A D | sanitize_object.h | 17 bool sanitize_consistent_class_and_type(struct obj_attrs *attrs);
|
A D | sanitize_object.c | 27 bool sanitize_consistent_class_and_type(struct obj_attrs *attrs) in sanitize_consistent_class_and_type() argument 29 switch (get_class(attrs)) { in sanitize_consistent_class_and_type() 34 return key_type_is_symm_key(get_key_type(attrs)); in sanitize_consistent_class_and_type() 36 return mechanism_is_valid(get_mechanism_type(attrs)); in sanitize_consistent_class_and_type() 39 return key_type_is_asymm_key(get_key_type(attrs)); in sanitize_consistent_class_and_type()
|
A D | attributes.h | 61 uint8_t attrs[]; member
|
A D | processing.c | 128 struct obj_attrs *attrs = obj->attributes; in get_object_key_bit_size() local 130 switch (get_key_type(attrs)) { in get_object_key_bit_size() 139 if (get_attribute_ptr(attrs, PKCS11_CKA_VALUE, NULL, &a_size)) in get_object_key_bit_size() 144 if (get_attribute_ptr(attrs, PKCS11_CKA_MODULUS, NULL, &a_size)) in get_object_key_bit_size() 149 if (get_attribute_ptr(attrs, PKCS11_CKA_EC_PARAMS, in get_object_key_bit_size() 155 if (get_attribute_ptr(attrs, PKCS11_CKA_EC_POINT, NULL, in get_object_key_bit_size()
|
A D | attributes.c | 252 unsigned char *ref_attr = ref->attrs; in attributes_match_reference() 283 unsigned char *ref_attr = ref->attrs; in attributes_match_add_reference()
|
/optee_os-3.20.0/lib/libutils/isoc/newlib/ |
A D | _ansi.h | 107 #define _ATTRIBUTE(attrs) __attribute__ (attrs) argument 109 #define _ATTRIBUTE(attrs) argument
|
/optee_os-3.20.0/core/crypto/ |
A D | signed_hdr.c | 121 if (subkey->attrs[n].id == id) in find_attr() 122 return subkey->attrs + n; in find_attr() 168 const struct shdr_subkey_attr *attrs = subkey->attrs; in check_attrs() local 172 if (MUL_OVERFLOW(subkey->attr_count, sizeof(*attrs), &end) || in check_attrs() 178 if (ADD_OVERFLOW(attrs[n].offs, attrs[n].size, &end) || in check_attrs()
|
/optee_os-3.20.0/lib/libutee/ |
A D | tee_api_objects.c | 14 void __utee_from_attr(struct utee_attribute *ua, const TEE_Attribute *attrs, in __utee_from_attr() argument 20 ua[n].attribute_id = attrs[n].attributeID; in __utee_from_attr() 21 if (attrs[n].attributeID & TEE_ATTR_FLAG_VALUE) { in __utee_from_attr() 22 ua[n].a = attrs[n].content.value.a; in __utee_from_attr() 23 ua[n].b = attrs[n].content.value.b; in __utee_from_attr() 25 ua[n].a = (uintptr_t)attrs[n].content.ref.buffer; in __utee_from_attr() 26 ua[n].b = attrs[n].content.ref.length; in __utee_from_attr() 285 const TEE_Attribute *attrs, in TEE_PopulateTransientObject() argument 292 __utee_check_attr_in_annotation(attrs, attrCount); in TEE_PopulateTransientObject() 306 __utee_from_attr(ua, attrs, attrCount); in TEE_PopulateTransientObject()
|
A D | tee_api_private.h | 12 void __utee_from_attr(struct utee_attribute *ua, const TEE_Attribute *attrs,
|
/optee_os-3.20.0/core/arch/arm/kernel/ |
A D | spmc_sp_handler.c | 910 uint16_t attrs = 0; in handle_mem_perm_get() local 928 res = vm_get_prot(&sp_ctx->uctx, args->a1, SMALL_PAGE_SIZE, &attrs); in handle_mem_perm_get() 936 if ((attrs & TEE_MATTR_URW) == TEE_MATTR_URW) in handle_mem_perm_get() 938 else if (attrs & TEE_MATTR_UR) in handle_mem_perm_get() 941 if ((attrs & TEE_MATTR_UX) == 0) in handle_mem_perm_get() 957 uint16_t attrs = 0; in handle_mem_perm_set() local 990 attrs = TEE_MATTR_UR; in handle_mem_perm_set() 993 attrs = TEE_MATTR_URW; in handle_mem_perm_set() 1001 attrs |= TEE_MATTR_UX; in handle_mem_perm_set() 1005 res = vm_set_prot(&sp_ctx->uctx, args->a1, region_size, attrs); in handle_mem_perm_set()
|
A D | stmm_sp.c | 504 uint16_t attrs = 0; in sp_svc_get_mem_attr() local 513 res = vm_get_prot(&spc->uctx, va, SMALL_PAGE_SIZE, &attrs); in sp_svc_get_mem_attr() 517 if (attrs & TEE_MATTR_UR) in sp_svc_get_mem_attr() 519 else if (attrs & TEE_MATTR_UW) in sp_svc_get_mem_attr() 522 if (attrs & TEE_MATTR_UX) in sp_svc_get_mem_attr()
|
/optee_os-3.20.0/core/tee/ |
A D | tee_svc_cryp.c | 1665 attrs[n].content.ref.length = len; in copy_in_attrs() 1680 const TEE_Attribute *attrs, in tee_svc_cryp_check_attr() argument 1724 attrs[n].attributeID, in tee_svc_cryp_check_attr() 1802 const TEE_Attribute *attrs, in tee_svc_cryp_obj_populate_type() argument 1815 attrs[n].attributeID, in tee_svc_cryp_obj_populate_type() 1903 TEE_Attribute *attrs = NULL; in syscall_cryp_obj_populate() local 1925 attrs = malloc(alloc_size); in syscall_cryp_obj_populate() 1926 if (!attrs) in syscall_cryp_obj_populate() 1930 attrs); in syscall_cryp_obj_populate() 1935 attrs, attr_count); in syscall_cryp_obj_populate() [all …]
|
/optee_os-3.20.0/core/include/ |
A D | signed_hdr.h | 121 } attrs[]; member
|
/optee_os-3.20.0/core/include/tee/ |
A D | tee_svc_cryp.h | 26 struct utee_attribute *attrs, unsigned long attr_count);
|
/optee_os-3.20.0/lib/libutee/include/ |
A D | utee_syscalls.h | 119 struct utee_attribute *attrs,
|
A D | tee_internal_api.h | 142 const TEE_Attribute *attrs,
|
/optee_os-3.20.0/ta/pkcs11/include/ |
A D | pkcs11_ta.h | 1005 uint8_t attrs[]; member
|