Home
last modified time | relevance | path

Searched refs:attributes (Results 1 – 25 of 31) sorted by relevance

12

/optee_os-3.20.0/ta/pkcs11/src/
A Dobject.c96 TEE_Free(obj->attributes); in cleanup_volatile_obj_ref()
181 obj->attributes = head; in create_obj_instance()
246 obj->attributes->attrs_size; in create_object()
259 obj->attributes, size, in create_object()
288 obj->attributes = NULL; in create_object()
466 TEE_Free(find_ctx->attributes); in release_find_obj_context()
603 if (!obj->attributes) { in entry_find_objects_init()
613 if (!obj->attributes || in entry_find_objects_init()
615 obj->attributes) || in entry_find_objects_init()
638 find_ctx->attributes = req_attrs; in entry_find_objects_init()
[all …]
A Dprocessing.c128 struct obj_attrs *attrs = obj->attributes; in get_object_key_bit_size()
652 obj->attributes); in entry_processing_init()
657 obj->attributes); in entry_processing_init()
743 obj->attributes); in entry_processing_step()
915 parent->attributes); in entry_processing_key()
943 parent->attributes, in entry_processing_key()
1201 wrapping_key->attributes); in entry_wrap_key()
1216 wrapping_key->attributes); in entry_wrap_key()
1220 switch (get_class(key->attributes)) { in entry_wrap_key()
1230 if (!get_bool(key->attributes, PKCS11_CKA_EXTRACTABLE)) { in entry_wrap_key()
[all …]
A Dobject.h29 struct obj_attrs *attributes; member
49 enum pkcs11_rc create_object(void *session, struct obj_attrs *attributes,
A Dprocessing_digest.c168 if (get_class(obj->attributes) != PKCS11_CKO_SECRET_KEY) in step_digest_operation()
171 key_type = get_key_type(obj->attributes); in step_digest_operation()
177 rc = get_attribute_ptr(obj->attributes, PKCS11_CKA_VALUE, in step_digest_operation()
A Dsub.mk1 srcs-y += attributes.c
A Dpersistent_token.c477 if (obj->attributes) in load_persistent_object_attributes()
524 obj->attributes = attr; in load_persistent_object_attributes()
540 TEE_Free(obj->attributes); in release_persistent_object_attributes()
541 obj->attributes = NULL; in release_persistent_object_attributes()
551 assert(obj && obj->attributes); in update_persistent_object_attributes()
561 size = sizeof(struct obj_attrs) + obj->attributes->attrs_size; in update_persistent_object_attributes()
563 res = TEE_WriteObjectData(hdl, obj->attributes, size); in update_persistent_object_attributes()
A Dpkcs11_attributes.c1892 rc = get_attribute(obj->attributes, PKCS11_CKA_SENSITIVE, in attribute_is_exportable()
1931 return get_bool(obj->attributes, attr->id); in attr_is_modifiable_secret_key()
1935 return !get_bool(obj->attributes, attr->id); in attr_is_modifiable_secret_key()
1989 return get_bool(obj->attributes, attr->id); in attr_is_modifiable_private_key()
1993 return !get_bool(obj->attributes, attr->id); in attr_is_modifiable_private_key()
2011 rc = get_attribute(obj->attributes, PKCS11_CKA_TRUSTED, in attr_is_modifiable_certificate()
2033 switch (get_certificate_type(obj->attributes)) { in attr_is_modifiable_certificate()
2079 return get_bool(obj->attributes, req_attr->id); in attribute_is_modifiable()
2123 class = get_class(obj->attributes); in check_attrs_against_modification()
2140 if (get_attribute_ptr(obj->attributes, cli_ref.id, NULL, in check_attrs_against_modification()
[all …]
A Dprocessing_ec.c348 assert(get_key_type(obj->attributes) == PKCS11_CKK_EC); in load_tee_ec_key_attrs()
350 switch (get_class(obj->attributes)) { in load_tee_ec_key_attrs()
653 assert(get_key_type(obj->attributes) == PKCS11_CKK_EC_EDWARDS); in load_tee_eddsa_key_attrs()
655 switch (get_class(obj->attributes)) { in load_tee_eddsa_key_attrs()
A Dpkcs11_helpers.c563 if (get_attribute_ptr(obj->attributes, PKCS11_CKA_EC_PARAMS, in pkcs2tee_load_attr()
578 if (get_attribute_ptr(obj->attributes, PKCS11_CKA_EC_POINT, in pkcs2tee_load_attr()
639 if (get_attribute_ptr(obj->attributes, pkcs11_id, &a_ptr, &a_size)) in pkcs2tee_load_attr()
664 rc = get_attribute_ptr(obj->attributes, pkcs11_id, &a_ptr, &a_size); in pkcs2tee_load_hashed_attr()
A Dprocessing_rsa.c516 assert(get_key_type(obj->attributes) == PKCS11_CKK_RSA); in load_tee_rsa_key_attrs()
518 switch (get_class(obj->attributes)) { in load_tee_rsa_key_attrs()
563 rc = get_attribute_ptr(obj->attributes, PKCS11_CKA_PRIME_1, in load_tee_rsa_key_attrs()
A Dprocessing_asymm.c164 enum pkcs11_class_id class = get_class(obj->attributes); in pkcs2tee_key_type()
165 enum pkcs11_key_type type = get_key_type(obj->attributes); in pkcs2tee_key_type()
276 enum pkcs11_class_id __maybe_unused class = get_class(obj->attributes); in load_tee_key()
277 enum pkcs11_key_type type = get_key_type(obj->attributes); in load_tee_key()
/optee_os-3.20.0/core/drivers/scmi-msg/
A Dcommon.h50 uint32_t attributes; member
61 uint32_t attributes; member
A Dvoltage_domain.h33 uint32_t attributes; member
44 uint32_t attributes; member
A Dclock.h44 uint32_t attributes; member
104 uint32_t attributes; member
A Dclock.c91 .attributes = SCMI_CLOCK_PROTOCOL_ATTRIBUTES(1, clk_count), in report_attributes()
108 .attributes = 0, in report_message_attributes()
154 return_values.attributes = plat_scmi_clock_get_state(msg->channel_id, in scmi_clock_attributes()
236 enable = in_args->attributes & SCMI_CLOCK_CONFIG_SET_ENABLE_MASK; in scmi_clock_config_set()
A Dbase.c40 .attributes = SCMI_BASE_PROTOCOL_ATTRIBUTES(protocol_count, 0), in report_attributes()
57 .attributes = 0, in report_message_attributes()
A Dreset_domain.h47 uint32_t attributes; member
A Dreset_domain.c62 .attributes = plat_scmi_rd_count(msg->channel_id), in report_attributes()
79 .attributes = 0, in report_message_attributes()
A Dvoltage_domain.c94 .attributes = domain_count, in report_attributes()
113 .attributes = 0, in report_message_attributes()
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
A Dpk.c157 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in mbedtls_pk_setup_opaque() local
164 if( PSA_SUCCESS != psa_get_key_attributes( key, &attributes ) ) in mbedtls_pk_setup_opaque()
166 type = psa_get_key_type( &attributes ); in mbedtls_pk_setup_opaque()
167 psa_reset_key_attributes( &attributes ); in mbedtls_pk_setup_opaque()
607 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in mbedtls_pk_wrap_as_opaque()
625 psa_set_key_type( &attributes, key_type ); in mbedtls_pk_wrap_as_opaque()
626 psa_set_key_bits( &attributes, bits ); in mbedtls_pk_wrap_as_opaque()
627 psa_set_key_usage_flags( &attributes, PSA_KEY_USAGE_SIGN_HASH ); in mbedtls_pk_wrap_as_opaque()
628 psa_set_key_algorithm( &attributes, PSA_ALG_ECDSA(hash_alg) ); in mbedtls_pk_wrap_as_opaque()
631 if( PSA_SUCCESS != psa_import_key( &attributes, d, d_len, key ) ) in mbedtls_pk_wrap_as_opaque()
A Dpk_wrap.c545 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in ecdsa_verify_wrap() local
574 psa_set_key_usage_flags( &attributes, PSA_KEY_USAGE_VERIFY_HASH ); in ecdsa_verify_wrap()
575 psa_set_key_algorithm( &attributes, psa_sig_md ); in ecdsa_verify_wrap()
577 status = psa_import_key( &attributes, in ecdsa_verify_wrap()
890 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in pk_opaque_get_bitlen() local
892 if( PSA_SUCCESS != psa_get_key_attributes( *key, &attributes ) ) in pk_opaque_get_bitlen()
895 bits = psa_get_key_bits( &attributes ); in pk_opaque_get_bitlen()
896 psa_reset_key_attributes( &attributes ); in pk_opaque_get_bitlen()
1012 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in pk_opaque_sign_wrap()
1025 status = psa_get_key_attributes( *key, &attributes ); in pk_opaque_sign_wrap()
[all …]
A Dpkwrite.c266 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in mbedtls_pk_write_pubkey_der() local
273 if( PSA_SUCCESS != psa_get_key_attributes( key_id, &attributes ) ) in mbedtls_pk_write_pubkey_der()
275 key_type = psa_get_key_type( &attributes ); in mbedtls_pk_write_pubkey_der()
276 bits = psa_get_key_bits( &attributes ); in mbedtls_pk_write_pubkey_der()
277 psa_reset_key_attributes( &attributes ); in mbedtls_pk_write_pubkey_der()
A Dcipher.c314 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in mbedtls_cipher_setkey() local
328 psa_set_key_type( &attributes, key_type ); in mbedtls_cipher_setkey()
334 psa_set_key_usage_flags( &attributes, in mbedtls_cipher_setkey()
337 psa_set_key_algorithm( &attributes, cipher_psa->alg ); in mbedtls_cipher_setkey()
339 status = psa_import_key( &attributes, key, key_bytelen, in mbedtls_cipher_setkey()
/optee_os-3.20.0/core/arch/arm/plat-totalcompute/fdts/
A Doptee_sp_manifest.dts33 attributes = <0x3>; /* read-write */
/optee_os-3.20.0/core/arch/arm/kernel/
A Dsecure_partition.c521 uint32_t attributes = 0; in handle_fdt_dev_regions() local
544 if (sp_dt_get_u32(fdt, subnode, "attributes", &attributes)) { in handle_fdt_dev_regions()
550 switch (attributes & SP_MANIFEST_ATTR_RWX) { in handle_fdt_dev_regions()
566 if (attributes & SP_MANIFEST_ATTR_NSEC) in handle_fdt_dev_regions()
686 uint32_t attributes = 0; in handle_fdt_mem_regions() local
727 if (sp_dt_get_u32(fdt, subnode, "attributes", &attributes)) { in handle_fdt_mem_regions()
733 switch (attributes & SP_MANIFEST_ATTR_RWX) { in handle_fdt_mem_regions()
754 if (attributes & SP_MANIFEST_ATTR_NSEC) { in handle_fdt_mem_regions()

Completed in 51 milliseconds

12