Home
last modified time | relevance | path

Searched refs:class (Results 1 – 12 of 12) sorted by relevance

/optee_os/ta/pkcs11/src/
H A Dattributes.h238 uint32_t class = 0; in get_class() local
239 uint32_t size = sizeof(class); in get_class()
241 if (get_attribute(head, PKCS11_CKA_CLASS, &class, &size)) in get_class()
244 return class; in get_class()
H A Dsanitize_object.c89 uint32_t class = 0; in sanitize_class_and_type() local
91 if (cli_ref.size != sizeof(class)) { in sanitize_class_and_type()
96 TEE_MemMove(&class, data, sizeof(class)); in sanitize_class_and_type()
99 class_found != class) { in sanitize_class_and_type()
105 class_found = class; in sanitize_class_and_type()
H A Dprocessing_asymm.c167 enum pkcs11_class_id class = get_class(obj->attributes); in pkcs2tee_key_type() local
170 switch (class) { in pkcs2tee_key_type()
175 TEE_Panic(class); in pkcs2tee_key_type()
181 if (class == PKCS11_CKO_PRIVATE_KEY) { in pkcs2tee_key_type()
194 if (class == PKCS11_CKO_PRIVATE_KEY) in pkcs2tee_key_type()
200 if (class == PKCS11_CKO_PRIVATE_KEY) in pkcs2tee_key_type()
300 enum pkcs11_class_id __maybe_unused class = get_class(obj->attributes); in load_tee_key() local
303 assert(class == PKCS11_CKO_PUBLIC_KEY || in load_tee_key()
304 class == PKCS11_CKO_PRIVATE_KEY); in load_tee_key()
311 class == PKCS11_CKO_PUBLIC_KEY) || in load_tee_key()
[all …]
H A Dpkcs11_helpers.c446 bool pkcs11_class_has_type(uint32_t class) in pkcs11_class_has_type() argument
448 enum pkcs11_class_id class_id = class; in pkcs11_class_has_type()
463 bool pkcs11_attr_class_is_key(uint32_t class) in pkcs11_attr_class_is_key() argument
465 enum pkcs11_class_id class_id = class; in pkcs11_attr_class_is_key()
778 const char *id2str_type(uint32_t id, uint32_t class) in id2str_type() argument
780 enum pkcs11_class_id class_id = class; in id2str_type()
H A Dpkcs11_attributes.c494 enum pkcs11_class_id class = PKCS11_CKO_UNDEFINED_ID; in create_storage_attributes() local
502 class = get_class(temp); in create_storage_attributes()
503 if (class == PKCS11_CKO_UNDEFINED_ID) { in create_storage_attributes()
508 rc = add_attribute(out, PKCS11_CKA_CLASS, &class, sizeof(uint32_t)); in create_storage_attributes()
1192 uint32_t class = PKCS11_UNDEFINED_ID; in create_attributes_from_template() local
1224 class = PKCS11_CKO_SECRET_KEY; in create_attributes_from_template()
1228 class = PKCS11_CKO_SECRET_KEY; in create_attributes_from_template()
1245 class = template_class; in create_attributes_from_template()
1249 class = template_class; in create_attributes_from_template()
1253 class = template_class; in create_attributes_from_template()
[all …]
H A Dpkcs11_helpers.h93 const char *id2str_type(uint32_t id, uint32_t class);
H A Dobject.c1135 enum pkcs11_class_id class = PKCS11_CKO_UNDEFINED_ID; in entry_copy_object() local
1208 class = get_class(obj->attributes); in entry_copy_object()
1210 if (class == PKCS11_CKO_SECRET_KEY || in entry_copy_object()
1211 class == PKCS11_CKO_PRIVATE_KEY) { in entry_copy_object()
/optee_os/core/crypto/
H A Dcrypto.c223 uint32_t class = TEE_ALG_GET_CLASS(algo); in crypto_cipher_get_block_size() local
225 if (class != TEE_OPERATION_CIPHER && class != TEE_OPERATION_MAC && in crypto_cipher_get_block_size()
226 class != TEE_OPERATION_AE) in crypto_cipher_get_block_size()
/optee_os/lib/libmbedtls/mbedtls/
H A DSECURITY.md114 protection against a class of attacks outside of the above described threat
H A DLICENSE193 file or class name and description of purpose be included on the
H A DChangeLog882 M-class CPUs (Cortex-M0, Cortex-M0+, Cortex-M1, Cortex-M23,
/optee_os/lib/libutils/compiler-rt/
H A DLICENSE.TXT189 file or class name and description of purpose be included on the