| /optee_os/ta/pkcs11/src/ |
| H A D | processing_ec.c | 344 TEE_Attribute *attrs = NULL; in load_tee_ec_key_attrs() local 352 attrs = TEE_Malloc(3 * sizeof(TEE_Attribute), in load_tee_ec_key_attrs() 354 if (!attrs) in load_tee_ec_key_attrs() 357 if (pkcs2tee_load_attr(&attrs[count], TEE_ATTR_ECC_CURVE, in load_tee_ec_key_attrs() 361 if (pkcs2tee_load_attr(&attrs[count], in load_tee_ec_key_attrs() 366 if (pkcs2tee_load_attr(&attrs[count], in load_tee_ec_key_attrs() 377 attrs = TEE_Malloc(4 * sizeof(TEE_Attribute), in load_tee_ec_key_attrs() 379 if (!attrs) in load_tee_ec_key_attrs() 382 if (pkcs2tee_load_attr(&attrs[count], TEE_ATTR_ECC_CURVE, in load_tee_ec_key_attrs() 386 if (pkcs2tee_load_attr(&attrs[count], in load_tee_ec_key_attrs() [all …]
|
| H A D | processing_rsa.c | 538 TEE_Attribute *attrs = NULL; in load_tee_rsa_key_attrs() local 546 attrs = TEE_Malloc(2 * sizeof(TEE_Attribute), in load_tee_rsa_key_attrs() 548 if (!attrs) in load_tee_rsa_key_attrs() 551 if (pkcs2tee_load_attr(&attrs[count], TEE_ATTR_RSA_MODULUS, in load_tee_rsa_key_attrs() 555 if (pkcs2tee_load_attr(&attrs[count], in load_tee_rsa_key_attrs() 566 attrs = TEE_Malloc(8 * sizeof(TEE_Attribute), in load_tee_rsa_key_attrs() 568 if (!attrs) in load_tee_rsa_key_attrs() 571 if (pkcs2tee_load_attr(&attrs[count], TEE_ATTR_RSA_MODULUS, in load_tee_rsa_key_attrs() 575 if (pkcs2tee_load_attr(&attrs[count], in load_tee_rsa_key_attrs() 580 if (pkcs2tee_load_attr(&attrs[count], in load_tee_rsa_key_attrs() [all …]
|
| H A D | pkcs11_attributes.c | 240 uint32_t const *attrs, in set_mandatory_attributes() argument 250 if (get_attribute_ptr(temp, attrs[n], &value, &size)) in set_mandatory_attributes() 253 rc = add_attribute(out, attrs[n], value, size); in set_mandatory_attributes() 275 uint32_t const *attrs, in set_optional_attributes_with_def() argument 286 rc = get_attribute_ptr(temp, attrs[n], &value, &size); in set_optional_attributes_with_def() 289 rc = get_default_value(attrs[n], &value, &size); in set_optional_attributes_with_def() 298 rc = add_attribute(out, attrs[n], value, size); in set_optional_attributes_with_def() 308 uint32_t const *attrs, in set_attributes_opt_or_null() argument 311 return set_optional_attributes_with_def(out, temp, attrs, attrs_count, in set_attributes_opt_or_null() 317 uint32_t const *attrs, in set_optional_attributes() argument [all …]
|
| H A D | sanitize_object.c | 26 bool sanitize_consistent_class_and_type(struct obj_attrs *attrs) in sanitize_consistent_class_and_type() argument 28 switch (get_class(attrs)) { in sanitize_consistent_class_and_type() 33 return key_type_is_symm_key(get_key_type(attrs)); in sanitize_consistent_class_and_type() 35 return mechanism_is_valid(get_mechanism_type(attrs)); in sanitize_consistent_class_and_type() 38 return key_type_is_asymm_key(get_key_type(attrs)); in sanitize_consistent_class_and_type()
|
| H A D | sanitize_object.h | 17 bool sanitize_consistent_class_and_type(struct obj_attrs *attrs);
|
| H A D | processing.c | 135 struct obj_attrs *attrs = obj->attributes; in get_object_key_bit_size() local 137 switch (get_key_type(attrs)) { in get_object_key_bit_size() 146 if (get_attribute_ptr(attrs, PKCS11_CKA_VALUE, NULL, &a_size)) in get_object_key_bit_size() 151 if (get_attribute_ptr(attrs, PKCS11_CKA_MODULUS, NULL, &a_size)) in get_object_key_bit_size() 156 if (get_attribute_ptr(attrs, PKCS11_CKA_EC_PARAMS, in get_object_key_bit_size() 162 if (get_attribute_ptr(attrs, PKCS11_CKA_EC_POINT, NULL, in get_object_key_bit_size()
|
| H A D | attributes.h | 61 uint8_t attrs[]; member
|
| H A D | attributes.c | 251 unsigned char *ref_attr = ref->attrs; in attributes_match_reference() 286 unsigned char *ref_attr = ref->attrs; in attributes_match_add_reference()
|
| /optee_os/core/arch/riscv/kernel/ |
| H A D | sbi_mpxy_rpmi.c | 87 sizeof(channel->attrs) / in sbi_mpxy_rpmi_probe_channels() 89 &channel->attrs); in sbi_mpxy_rpmi_probe_channels() 96 if (channel->attrs.msg_proto_id != SBI_MPXY_MSGPROTO_RPMI_ID) { in sbi_mpxy_rpmi_probe_channels() 98 channel_id, channel->attrs.msg_proto_id); in sbi_mpxy_rpmi_probe_channels() 182 if (channel->attrs.msg_proto_id != SBI_MPXY_MSGPROTO_RPMI_ID) in sbi_mpxy_rpmi_send_data() 223 if (!(channel->attrs.capability & in sbi_mpxy_rpmi_send_data() 239 if (!(channel->attrs.capability & in sbi_mpxy_rpmi_send_data()
|
| /optee_os/lib/libutils/isoc/newlib/ |
| H A D | _ansi.h | 107 #define _ATTRIBUTE(attrs) __attribute__ (attrs) argument 109 #define _ATTRIBUTE(attrs) argument
|
| /optee_os/lib/libutee/ |
| H 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() 32 const __GP11_TEE_Attribute *attrs, in __utee_from_gp11_attr() argument 38 ua[n].attribute_id = attrs[n].attributeID; in __utee_from_gp11_attr() 39 if (attrs[n].attributeID & TEE_ATTR_FLAG_VALUE) { in __utee_from_gp11_attr() [all …]
|
| H A D | tee_api_private.h | 12 void __utee_from_attr(struct utee_attribute *ua, const TEE_Attribute *attrs, 15 const __GP11_TEE_Attribute *attrs,
|
| /optee_os/core/crypto/ |
| H A D | signed_hdr.c | 136 if (subkey->attrs[n].id == id) in find_attr() 137 return subkey->attrs + n; in find_attr() 183 const struct shdr_subkey_attr *attrs = subkey->attrs; in check_attrs() local 187 if (MUL_OVERFLOW(subkey->attr_count, sizeof(*attrs), &end) || in check_attrs() 193 if (ADD_OVERFLOW(attrs[n].offs, attrs[n].size, &end) || in check_attrs()
|
| /optee_os/core/arch/arm/kernel/ |
| H A D | spmc_sp_handler.c | 1140 uint16_t attrs = 0; in handle_mem_perm_get() local 1158 res = vm_get_prot(&sp_ctx->uctx, args->a1, SMALL_PAGE_SIZE, &attrs); in handle_mem_perm_get() 1166 if ((attrs & TEE_MATTR_URW) == TEE_MATTR_URW) in handle_mem_perm_get() 1168 else if (attrs & TEE_MATTR_UR) in handle_mem_perm_get() 1171 if ((attrs & TEE_MATTR_UX) == 0) in handle_mem_perm_get() 1187 uint16_t attrs = 0; in handle_mem_perm_set() local 1220 attrs = TEE_MATTR_UR; in handle_mem_perm_set() 1223 attrs = TEE_MATTR_URW; in handle_mem_perm_set() 1231 attrs |= TEE_MATTR_UX; in handle_mem_perm_set() 1235 res = vm_set_prot(&sp_ctx->uctx, args->a1, region_size, attrs); in handle_mem_perm_set()
|
| H A D | stmm_sp.c | 850 uint16_t attrs = 0; in spm_handle_get_mem_attr() local 862 res = vm_get_prot(&spc->uctx, va, SMALL_PAGE_SIZE, &attrs); in spm_handle_get_mem_attr() 866 if ((attrs & TEE_MATTR_URW) == TEE_MATTR_URW) in spm_handle_get_mem_attr() 868 else if ((attrs & TEE_MATTR_UR) == TEE_MATTR_UR) in spm_handle_get_mem_attr() 871 if (!(attrs & TEE_MATTR_UX)) in spm_handle_get_mem_attr()
|
| /optee_os/core/tee/ |
| H A D | tee_svc_cryp.c | 1730 uint32_t attr_count, TEE_Attribute *attrs) in copy_in_attrs() argument 1749 attrs[n].attributeID = usr_attrs_bbuf[n].attribute_id; in copy_in_attrs() 1750 if (attrs[n].attributeID & TEE_ATTR_FLAG_VALUE) { in copy_in_attrs() 1751 attrs[n].content.value.a = usr_attrs_bbuf[n].a; in copy_in_attrs() 1752 attrs[n].content.value.b = usr_attrs_bbuf[n].b; in copy_in_attrs() 1765 attrs[n].content.ref.buffer = (void *)buf; in copy_in_attrs() 1766 attrs[n].content.ref.length = len; in copy_in_attrs() 1783 const TEE_Attribute *attrs, in tee_svc_cryp_check_attr() argument 1827 attrs[n].attributeID, in tee_svc_cryp_check_attr() 1896 const TEE_Attribute *attrs, in tee_svc_cryp_obj_populate_type() argument [all …]
|
| /optee_os/core/include/ |
| H A D | signed_hdr.h | 121 } attrs[]; member
|
| /optee_os/core/arch/riscv/include/ |
| H A D | sbi_mpxy_rpmi.h | 87 struct sbi_mpxy_channel_attrs attrs; member
|
| /optee_os/core/include/tee/ |
| H A D | tee_svc_cryp.h | 26 struct utee_attribute *attrs, unsigned long attr_count);
|
| /optee_os/lib/libutee/include/ |
| H A D | utee_syscalls.h | 119 struct utee_attribute *attrs,
|
| H A D | tee_internal_api.h | 185 const TEE_Attribute *attrs, 188 const __GP11_TEE_Attribute *attrs,
|
| /optee_os/ta/pkcs11/include/ |
| H A D | pkcs11_ta.h | 1024 uint8_t attrs[]; member
|