/titanic_44/usr/src/lib/pkcs11/pkcs11_kernel/common/ |
H A D | kernelAttributeUtil.c | 648 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 D | kernelObjectUtil.c | 118 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 D | kernelObject.c | 247 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 D | kernelKeys.c | 477 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 D | kernelVerify.c | 73 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 D | kernelSign.c | 73 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 D | kernelUtil.c | 1009 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 D | kernelEncrypt.c | 74 if (key_p->is_lib_obj && !(key_p->bool_attr_mask & ENCRYPT_BOOL_ON)) { in C_EncryptInit()
|
H A D | kernelDecrypt.c | 50 if (key_p->is_lib_obj && !(key_p->bool_attr_mask & DECRYPT_BOOL_ON)) { in kernel_decrypt_init()
|
H A D | kernelObject.h | 195 uint64_t bool_attr_mask; member
|
/titanic_44/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softKeys.c | 158 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 D | softKeysUtil.c | 300 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 D | softAttributeUtil.c | 782 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 D | softObjectUtil.c | 116 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 D | softVerify.c | 64 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 D | softSign.c | 64 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 D | softKeystore.h | 48 uint64_t bool_attr_mask; member
|
H A D | softDecrypt.c | 63 if (!(key_p->bool_attr_mask & DECRYPT_BOOL_ON)) { in C_DecryptInit()
|
H A D | softEncrypt.c | 63 if (!(key_p->bool_attr_mask & ENCRYPT_BOOL_ON)) { in C_EncryptInit()
|
H A D | softBlowfishCrypt.c | 78 if (!(key_p->bool_attr_mask & SENSITIVE_BOOL_ON)) { in soft_blowfish_crypt_init_common()
|
H A D | softObject.c | 451 if (object_p->bool_attr_mask & NOT_MODIFIABLE_BOOL_ON) { in C_SetAttributeValue()
|
H A D | softKeystore.c | 351 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 D | softAESCrypt.c | 83 if (!(key_p->bool_attr_mask & SENSITIVE_BOOL_ON)) { in soft_aes_crypt_init_common()
|
H A D | softDESCrypt.c | 91 if (!(key_p->bool_attr_mask & SENSITIVE_BOOL_ON)) { in soft_des_crypt_init_common()
|
H A D | softObject.h | 302 uint64_t bool_attr_mask; /* see below */ member
|