Lines Matching defs:type
38 #define ENCODE_ATTR(type, value, len) { \
39 cur_attr->oa_type = type; \
155 #define MECH_HASH(type) (((uintptr_t)type) % KMECH_HASHTABLE_SIZE)
163 kmech_hash_insert(CK_MECHANISM_TYPE type, crypto_mech_type_t kmech)
172 h = MECH_HASH(type);
173 elem->type = type;
178 if (type == cur->type) {
193 kernel_mech(CK_MECHANISM_TYPE type, crypto_mech_type_t *k_number)
207 h = MECH_HASH(type);
209 if (type == elem->type) {
215 if (type >= CKM_VENDOR_DEFINED) {
216 (void) snprintf(buf, sizeof (buf), "%#lx", type);
219 string = pkcs11_mech2str(type);
247 (void) kmech_hash_insert(type, *k_number);
658 tmp.type = CKA_EC_PARAMS;
677 cur_attr->oa_type = tmp.type;
730 tmp.type = CKA_EC_PARAMS;
749 cur_attr->oa_type = tmp.type;
802 switch (pTemplate[i].type) {
820 cur_attr->oa_type = pTemplate[i].type;
839 (pTemplate[i].type == CKA_TOKEN)) {
889 if (pTemplate[i].type != cur_attr->oa_type) {
890 /* The attribute type doesn't match, this is bad. */
959 pTemplate[0].type = CKA_PRIVATE;
962 pTemplate[1].type = CKA_TOKEN;
1227 get_mechanism_info(kernel_slot_t *pslot, CK_MECHANISM_TYPE type,
1237 if (type >= CKM_VENDOR_DEFINED) {
1239 (void) snprintf(buf, sizeof (buf), "%#lx", type);
1242 string = pkcs11_mech2str(type);