Lines Matching refs:id
20 uint32_t id; member
29 { .id = (uint32_t)(_id), .size = (_sz), .string = #_id }
32 { .id = (uint32_t)(_id), .size = (_sz) }
104 uint32_t id; member
115 #define PKCS11_ID(_id) { .id = _id, .string = #_id }
117 #define PKCS11_ID(_id) { .id = _id }
120 #define ID2STR(id, table, prefix) \ argument
121 id2str(id, table, ARRAY_SIZE(table), prefix)
125 static const char *id2str(uint32_t id, const struct any_id *table, in id2str() argument
132 if (id != table[n].id) in id2str()
407 bool valid_pkcs11_attribute_id(uint32_t id, uint32_t size) in valid_pkcs11_attribute_id() argument
412 if (id == attr_ids[n].id) in valid_pkcs11_attribute_id()
420 enum pkcs11_attr_id id = attribute_id; in pkcs11_attr_is_type() local
422 switch (id) { in pkcs11_attr_is_type()
475 bool key_type_is_symm_key(uint32_t id) in key_type_is_symm_key() argument
477 enum pkcs11_key_type key_type = id; in key_type_is_symm_key()
494 bool key_type_is_asymm_key(uint32_t id) in key_type_is_asymm_key() argument
496 enum pkcs11_key_type key_type = id; in key_type_is_asymm_key()
714 const char *id2str_rc(uint32_t id) in id2str_rc() argument
716 return ID2STR(id, string_rc, "PKCS11_CKR_"); in id2str_rc()
719 const char *id2str_ta_cmd(uint32_t id) in id2str_ta_cmd() argument
721 return ID2STR(id, string_ta_cmd, NULL); in id2str_ta_cmd()
724 const char *id2str_slot_flag(uint32_t id) in id2str_slot_flag() argument
726 return ID2STR(id, string_slot_flags, "PKCS11_CKFS_"); in id2str_slot_flag()
729 const char *id2str_token_flag(uint32_t id) in id2str_token_flag() argument
731 return ID2STR(id, string_token_flags, "PKCS11_CKFT_"); in id2str_token_flag()
734 const char *id2str_session_flag(uint32_t id) in id2str_session_flag() argument
736 return ID2STR(id, string_session_flags, "PKCS11_CKFSS_"); in id2str_session_flag()
739 const char *id2str_session_state(uint32_t id) in id2str_session_state() argument
741 return ID2STR(id, string_session_state, "PKCS11_CKS_"); in id2str_session_state()
744 const char *id2str_attr(uint32_t id) in id2str_attr() argument
749 if (id == attr_ids[n].id) { in id2str_attr()
758 const char *id2str_class(uint32_t id) in id2str_class() argument
760 return ID2STR(id, string_class, "PKCS11_CKO_"); in id2str_class()
763 const char *id2str_type(uint32_t id, uint32_t class) in id2str_type() argument
766 enum pkcs11_key_type key_type = id; in id2str_type()
778 const char *id2str_key_type(uint32_t id) in id2str_key_type() argument
780 return ID2STR(id, string_key_type, "PKCS11_CKK_"); in id2str_key_type()
783 const char *id2str_certificate_type(uint32_t id) in id2str_certificate_type() argument
785 return ID2STR(id, string_certificate_type, "PKCS11_CKC_"); in id2str_certificate_type()
788 const char *id2str_attr_value(uint32_t id, size_t size, void *value) in id2str_attr_value() argument
795 if (pkcs11_attr2boolprop_shift(id) >= 0) in id2str_attr_value()
803 switch (id) { in id2str_attr_value()
815 const char *id2str_proc(uint32_t id) in id2str_proc() argument
817 const char *str = ID2STR(id, string_internal_processing, in id2str_proc()
823 return id2str_mechanism(id); in id2str_proc()
826 const char *id2str_function(uint32_t id) in id2str_function() argument
828 return ID2STR(id, string_functions, "PKCS11_FUNCTION_"); in id2str_function()