Home
last modified time | relevance | path

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

/titanic_41/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelAttributeUtil.c648 if (object_p->bool_attr_mask & bool_flag) { in get_bool_attr_from_object()
675 object_p->bool_attr_mask |= bool_flag; in set_bool_attr_to_object()
677 object_p->bool_attr_mask &= ~bool_flag; in set_bool_attr_to_object()
1316 new_object->bool_attr_mask = attr_mask; in kernel_build_public_key_object()
1785 new_object->bool_attr_mask = attr_mask; in kernel_build_private_key_object()
2101 new_object->bool_attr_mask = attr_mask; in kernel_build_secret_key_object()
2226 if (object_p->bool_attr_mask & PRIVATE_BOOL_ON) { in kernel_get_common_attrs()
2238 if ((object_p->bool_attr_mask) & MODIFIABLE_BOOL_ON) in kernel_get_common_attrs()
2476 if ((object_p->bool_attr_mask & SENSITIVE_BOOL_ON) || in kernel_get_private_key_attribute()
2477 !(object_p->bool_attr_mask & EXTRACTABLE_BOOL_ON)) { in kernel_get_private_key_attribute()
[all …]
H A DkernelObjectUtil.c118 new_objp->bool_attr_mask = old_object->bool_attr_mask; in kernel_copy_object()
196 old_object->bool_attr_mask = new_object->bool_attr_mask; in kernel_merge_object()
278 new_objp->bool_attr_mask |= PRIVATE_BOOL_ON; in kernel_add_object()
280 new_objp->bool_attr_mask &= ~PRIVATE_BOOL_ON; in kernel_add_object()
283 new_objp->bool_attr_mask |= TOKEN_BOOL_ON; in kernel_add_object()
285 new_objp->bool_attr_mask &= ~TOKEN_BOOL_ON; in kernel_add_object()
901 if (objp->bool_attr_mask & PRIVATE_BOOL_ON) { in kernel_cleanup_pri_objects_in_slot()
926 if (objp->bool_attr_mask & PRIVATE_BOOL_ON) { in kernel_cleanup_pri_objects_in_slot()
H A DkernelObject.c247 new_object->bool_attr_mask |= PRIVATE_BOOL_ON; in C_CopyObject()
249 new_object->bool_attr_mask &= ~PRIVATE_BOOL_ON; in C_CopyObject()
252 new_object->bool_attr_mask |= TOKEN_BOOL_ON; in C_CopyObject()
254 new_object->bool_attr_mask &= ~TOKEN_BOOL_ON; in C_CopyObject()
333 (object_p->bool_attr_mask & TOKEN_BOOL_ON)) { in C_DestroyObject()
343 if (!(object_p->bool_attr_mask & TOKEN_BOOL_ON)) in C_DestroyObject()
366 if (object_p->bool_attr_mask & TOKEN_BOOL_ON) { in C_DestroyObject()
563 (object_p->bool_attr_mask & TOKEN_BOOL_ON)) { in C_SetAttributeValue()
H A DkernelKeys.c477 new_objp->bool_attr_mask |= PRIVATE_BOOL_ON; in C_GenerateKey()
479 new_objp->bool_attr_mask &= ~PRIVATE_BOOL_ON; in C_GenerateKey()
482 new_objp->bool_attr_mask |= TOKEN_BOOL_ON; in C_GenerateKey()
484 new_objp->bool_attr_mask &= ~TOKEN_BOOL_ON; in C_GenerateKey()
1589 new_pub_objp->bool_attr_mask |= PRIVATE_BOOL_ON; in C_GenerateKeyPair()
1591 new_pub_objp->bool_attr_mask &= ~PRIVATE_BOOL_ON; in C_GenerateKeyPair()
1594 new_pub_objp->bool_attr_mask |= TOKEN_BOOL_ON; in C_GenerateKeyPair()
1596 new_pub_objp->bool_attr_mask &= ~TOKEN_BOOL_ON; in C_GenerateKeyPair()
1611 new_pri_objp->bool_attr_mask |= PRIVATE_BOOL_ON; in C_GenerateKeyPair()
1613 new_pri_objp->bool_attr_mask &= ~PRIVATE_BOOL_ON; in C_GenerateKeyPair()
[all …]
H A DkernelVerify.c73 if (key_p->is_lib_obj && !(key_p->bool_attr_mask & VERIFY_BOOL_ON)) { in C_VerifyInit()
495 (key_p->bool_attr_mask & VERIFY_RECOVER_BOOL_ON))) { in C_VerifyRecoverInit()
H A DkernelSign.c73 if (key_p->is_lib_obj && !(key_p->bool_attr_mask & SIGN_BOOL_ON)) { in C_SignInit()
539 (key_p->bool_attr_mask & SIGN_RECOVER_BOOL_ON))) { in C_SignRecoverInit()
H A DkernelUtil.c1009 objp->bool_attr_mask |= TOKEN_BOOL_ON; in create_new_tobj_in_lib()
1011 objp->bool_attr_mask |= PRIVATE_BOOL_ON; in create_new_tobj_in_lib()
1013 objp->bool_attr_mask &= ~PRIVATE_BOOL_ON; in create_new_tobj_in_lib()
H A DkernelEncrypt.c74 if (key_p->is_lib_obj && !(key_p->bool_attr_mask & ENCRYPT_BOOL_ON)) { in C_EncryptInit()
H A DkernelDecrypt.c50 if (key_p->is_lib_obj && !(key_p->bool_attr_mask & DECRYPT_BOOL_ON)) { in kernel_decrypt_init()
H A DkernelObject.h195 uint64_t bool_attr_mask; member
/titanic_41/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftKeys.c158 if (!(wrappingkey_p->bool_attr_mask & WRAP_BOOL_ON)) { in C_WrapKey()
164 if (!(wrappingkey_p->bool_attr_mask & ENCRYPT_BOOL_ON)) { in C_WrapKey()
173 if (!(hkey_p->bool_attr_mask & EXTRACTABLE_BOOL_ON)) { in C_WrapKey()
264 if (!(unwrappingkey_p->bool_attr_mask & UNWRAP_BOOL_ON)) { in C_UnwrapKey()
270 if (!(unwrappingkey_p->bool_attr_mask & DECRYPT_BOOL_ON)) { in C_UnwrapKey()
353 if (!(basekey_p->bool_attr_mask & DERIVE_BOOL_ON)) { in C_DeriveKey()
H A DsoftKeysUtil.c300 secret_key->bool_attr_mask |= DERIVE_BOOL_ON; in soft_genkey()
498 private_key->bool_attr_mask |= DERIVE_BOOL_ON; in soft_genkey_pair()
502 private_key->bool_attr_mask |= DERIVE_BOOL_ON; in soft_genkey_pair()
1105 if (newkey->bool_attr_mask & SENSITIVE_BOOL_ON) { in soft_derive_enforce_flags()
1109 if (newkey->bool_attr_mask & EXTRACTABLE_BOOL_ON) { in soft_derive_enforce_flags()
1114 if (!basekey->bool_attr_mask & ALWAYS_SENSITIVE_BOOL_ON) { in soft_derive_enforce_flags()
1119 newkey->bool_attr_mask &= ~ALWAYS_SENSITIVE_BOOL_ON; in soft_derive_enforce_flags()
1127 newkey->bool_attr_mask |= ALWAYS_SENSITIVE_BOOL_ON; in soft_derive_enforce_flags()
1129 newkey->bool_attr_mask &= ~ALWAYS_SENSITIVE_BOOL_ON; in soft_derive_enforce_flags()
1134 if (!basekey->bool_attr_mask & NEVER_EXTRACTABLE_BOOL_ON) { in soft_derive_enforce_flags()
[all …]
H A DsoftAttributeUtil.c782 if (object_p->bool_attr_mask & bool_flag) { in get_bool_attr_from_object()
809 object_p->bool_attr_mask |= bool_flag; in set_bool_attr_to_object()
811 object_p->bool_attr_mask &= ~bool_flag; in set_bool_attr_to_object()
1799 new_object->bool_attr_mask = attr_mask;
2457 new_object->bool_attr_mask = attr_mask;
3135 new_object->bool_attr_mask = attr_mask;
3563 new_object->bool_attr_mask = attr_mask;
3796 if ((object_p->bool_attr_mask) & NOT_MODIFIABLE_BOOL_ON)
4051 if ((object_p->bool_attr_mask & SENSITIVE_BOOL_ON) ||
4052 !(object_p->bool_attr_mask & EXTRACTABLE_BOOL_ON)) {
[all …]
H A DsoftObjectUtil.c116 new_objp->bool_attr_mask = old_object->bool_attr_mask; in soft_copy_object()
218 old_object->bool_attr_mask = new_object->bool_attr_mask; in soft_merge_object()
1072 old->bool_attr_mask = new->bool_attr_mask; in soft_copy_to_old_object()
H A DsoftVerify.c64 if (!(key_p->bool_attr_mask & VERIFY_BOOL_ON)) { in C_VerifyInit()
292 if (!(key_p->bool_attr_mask & VERIFY_RECOVER_BOOL_ON)) { in C_VerifyRecoverInit()
H A DsoftSign.c64 if (!(key_p->bool_attr_mask & SIGN_BOOL_ON)) { in C_SignInit()
321 if (!(key_p->bool_attr_mask & SIGN_RECOVER_BOOL_ON)) { in C_SignRecoverInit()
H A DsoftKeystore.h48 uint64_t bool_attr_mask; member
H A DsoftDecrypt.c63 if (!(key_p->bool_attr_mask & DECRYPT_BOOL_ON)) { in C_DecryptInit()
H A DsoftEncrypt.c63 if (!(key_p->bool_attr_mask & ENCRYPT_BOOL_ON)) { in C_EncryptInit()
H A DsoftBlowfishCrypt.c78 if (!(key_p->bool_attr_mask & SENSITIVE_BOOL_ON)) { in soft_blowfish_crypt_init_common()
H A DsoftObject.c451 if (object_p->bool_attr_mask & NOT_MODIFIABLE_BOOL_ON) { in C_SetAttributeValue()
H A DsoftKeystore.c351 hdr.bool_attr_mask = SWAP64(obj->bool_attr_mask); in soft_keystore_pack_obj()
444 obj->bool_attr_mask = SWAP64(hdr->bool_attr_mask); in soft_keystore_unpack_obj()
H A DsoftAESCrypt.c83 if (!(key_p->bool_attr_mask & SENSITIVE_BOOL_ON)) { in soft_aes_crypt_init_common()
H A DsoftDESCrypt.c91 if (!(key_p->bool_attr_mask & SENSITIVE_BOOL_ON)) { in soft_des_crypt_init_common()
H A DsoftObject.h302 uint64_t bool_attr_mask; /* see below */ member