Home
last modified time | relevance | path

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

123

/titanic_41/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dkey.c299 CK_BBOOL found; in key_object_check_required_attributes()
329 sizeof (CK_BBOOL)); in key_object_set_default_attributes()
331 sizeof (CK_BBOOL)); in key_object_set_default_attributes()
356 derive_attr->ulValueLen = sizeof (CK_BBOOL); in key_object_set_default_attributes()
359 *(CK_BBOOL *)derive_attr->pValue = FALSE; in key_object_set_default_attributes()
362 local_attr->ulValueLen = sizeof (CK_BBOOL); in key_object_set_default_attributes()
364 *(CK_BBOOL *)local_attr->pValue = FALSE; in key_object_set_default_attributes()
431 sizeof (CK_BBOOL)); in publ_key_set_default_attributes()
433 sizeof (CK_BBOOL)); in publ_key_set_default_attributes()
435 sizeof (CK_BBOOL)); in publ_key_set_default_attributes()
[all …]
H A Dtpmtok_int.h276 CK_BBOOL multi;
277 CK_BBOOL active;
289 CK_BBOOL multi;
290 CK_BBOOL active;
299 CK_BBOOL multi; // is this a multi - part operation?
300 CK_BBOOL recover; // are we in recover mode?
301 CK_BBOOL active;
313 CK_BBOOL find_active;
344 CK_BBOOL is_private;
345 CK_BBOOL is_session_obj;
[all …]
H A Dobject.c313 CK_BBOOL class_given = FALSE; in object_create()
314 CK_BBOOL subclass_given = FALSE; in object_create()
315 CK_BBOOL flag; in object_create()
375 flag = *(CK_BBOOL *)attr->pValue; in object_create()
390 flag = *(CK_BBOOL *)attr->pValue; in object_create()
432 CK_BBOOL found; in object_copy()
563 CK_BBOOL
575 CK_BBOOL
579 CK_BBOOL modifiable; in object_is_modifiable()
580 CK_BBOOL found; in object_is_modifiable()
[all …]
H A Dhwf_obj.c299 CK_BBOOL found; in hwf_object_check_required_attributes()
315 CK_BBOOL found; in clock_check_required_attributes()
331 CK_BBOOL found; in counter_check_required_attributes()
429 sizeof (CK_BBOOL)); in counter_set_default_attributes()
431 sizeof (CK_BBOOL)); in counter_set_default_attributes()
445 hasreset_attr->ulValueLen = sizeof (CK_BBOOL); in counter_set_default_attributes()
448 *(CK_BBOOL *)hasreset_attr->pValue = FALSE; in counter_set_default_attributes()
452 resetoninit_attr->ulValueLen = sizeof (CK_BBOOL); in counter_set_default_attributes()
455 *(CK_BBOOL *)resetoninit_attr->pValue = FALSE; in counter_set_default_attributes()
H A Dkey_mgr.c29 static CK_BBOOL true = TRUE, false = FALSE;
73 CK_BBOOL flag; in key_mgr_generate_key_pair()
170 flag = *(CK_BBOOL *)attr->pValue; in key_mgr_generate_key_pair()
173 sizeof (CK_BBOOL), &new_attr); in key_mgr_generate_key_pair()
189 flag = *(CK_BBOOL *)attr->pValue; in key_mgr_generate_key_pair()
192 sizeof (CK_BBOOL), &new_attr); in key_mgr_generate_key_pair()
197 *(CK_BBOOL *)new_attr->pValue = false; in key_mgr_generate_key_pair()
233 CK_BBOOL length_only, in key_mgr_wrap_key()
247 CK_BBOOL flag; in key_mgr_wrap_key()
268 flag = *(CK_BBOOL *)attr->pValue; in key_mgr_wrap_key()
[all …]
H A Dobj_mgr.c307 CK_BBOOL sess_obj, priv_obj; in check_object_access()
367 CK_BBOOL priv_obj, sess_obj; in object_mgr_add()
550 CK_BBOOL priv_obj; in object_mgr_copy()
551 CK_BBOOL sess_obj; in object_mgr_copy()
696 CK_BBOOL priv_obj; in object_mgr_create_skel()
697 CK_BBOOL sess_obj; in object_mgr_create_skel()
755 CK_BBOOL sess_obj; in object_mgr_create_final()
756 CK_BBOOL priv_obj; in object_mgr_create_final()
873 CK_BBOOL sess_obj; in object_mgr_destroy_object()
874 CK_BBOOL priv_obj; in object_mgr_destroy_object()
[all …]
H A Dtemplate.c420 CK_BBOOL
545 CK_BBOOL found; in template_check_required_base_attributes()
556 CK_BBOOL
846 CK_BBOOL
852 CK_BBOOL found; in template_get_class()
948 CK_BBOOL
954 CK_BBOOL val; in template_check_exportability()
964 val = *(CK_BBOOL *)attr->pValue; in template_check_exportability()
1032 sizeof (CK_BBOOL)); in template_set_default_common_attributes()
1034 sizeof (CK_BBOOL)); in template_set_default_common_attributes()
[all …]
H A Ddecr_mgr.c43 CK_BBOOL flag; in decr_mgr_init()
64 flag = *(CK_BBOOL *)attr->pValue; in decr_mgr_init()
80 flag = *(CK_BBOOL *)(attr->pValue); in decr_mgr_init()
161 CK_BBOOL length_only, in decr_mgr_decrypt()
H A Dencr_mgr.c41 CK_BBOOL flag; in encr_mgr_init()
63 flag = *(CK_BBOOL *)attr->pValue; in encr_mgr_init()
79 flag = *(CK_BBOOL *)attr->pValue; in encr_mgr_init()
160 CK_BBOOL length_only, in encr_mgr_encrypt()
H A Dsign_mgr.c34 CK_BBOOL recover_mode, in sign_mgr_init()
42 CK_BBOOL flag; in sign_mgr_init()
60 flag = *(CK_BBOOL *)attr->pValue; in sign_mgr_init()
251 CK_BBOOL length_only, in sign_mgr_sign()
333 CK_BBOOL length_only, in sign_mgr_sign_final()
359 CK_BBOOL length_only, in sign_mgr_sign_recover()
H A Dloadsave.c688 CK_BBOOL flag = FALSE; in save_public_token_object()
718 total_len = cleartxt_len + sizeof (UINT32) + sizeof (CK_BBOOL); in save_public_token_object()
748 CK_BBOOL flag; in save_private_token_object()
832 total_len = sizeof (UINT32) + sizeof (CK_BBOOL) + (UINT32)ciphertxt_len; in save_private_token_object()
837 (void) fwrite(&flag, sizeof (CK_BBOOL), 1, fp); in save_private_token_object()
867 CK_BBOOL priv; in load_public_token_objects()
905 (void) fread(&priv, sizeof (CK_BBOOL), 1, fp2); in load_public_token_objects()
911 size = size - sizeof (UINT32) - sizeof (CK_BBOOL); in load_public_token_objects()
948 CK_BBOOL priv; in load_private_token_objects()
983 (void) fread(&priv, sizeof (CK_BBOOL), 1, fp2); in load_private_token_objects()
[all …]
H A Dmech_rsa.c176 CK_BBOOL length_only, in rsa_pkcs_encrypt()
186 CK_BBOOL flag; in rsa_pkcs_encrypt()
219 CK_BBOOL length_only, in rsa_pkcs_decrypt()
229 CK_BBOOL flag; in rsa_pkcs_decrypt()
263 CK_BBOOL length_only, in rsa_pkcs_sign()
273 CK_BBOOL flag; in rsa_pkcs_sign()
317 CK_BBOOL flag; in rsa_pkcs_verify()
346 CK_BBOOL length_only, in rsa_pkcs_verify_recover()
356 CK_BBOOL flag; in rsa_pkcs_verify_recover()
389 CK_BBOOL length_only, in rsa_hash_pkcs_sign()
[all …]
H A Dsess_mgr.c342 CK_BBOOL user_session = FALSE; in session_mgr_new()
343 CK_BBOOL so_session = FALSE; in session_mgr_new()
344 CK_BBOOL pkcs_locked = TRUE; in session_mgr_new()
345 CK_BBOOL sess_locked = TRUE; in session_mgr_new()
440 CK_BBOOL
468 CK_BBOOL
497 CK_BBOOL
526 CK_BBOOL
765 CK_BBOOL length_only, in session_mgr_get_op_state()
1208 CK_BBOOL
[all …]
H A Dverify_mgr.c34 CK_BBOOL recover_mode, in verify_mgr_init()
41 CK_BBOOL flag; in verify_mgr_init()
64 flag = *(CK_BBOOL *)attr->pValue; in verify_mgr_init()
336 CK_BBOOL length_only, in verify_mgr_verify_recover()
H A Dcert.c308 CK_BBOOL found; in cert_check_required_attributes()
352 CK_BBOOL found; in cert_x509_check_required_attributes()
H A Dnew_host.c51 CK_BBOOL
680 CK_BBOOL length_only = FALSE; in SC_GetOperationState()
1232 CK_BBOOL length_only = FALSE; in SC_Encrypt()
1279 CK_BBOOL length_only = FALSE;
1324 CK_BBOOL length_only = FALSE;
1415 CK_BBOOL length_only = FALSE; in SC_Decrypt()
1505 CK_BBOOL length_only = FALSE; in SC_Digest()
1624 CK_BBOOL length_only = FALSE; in SC_DigestFinal()
1713 CK_BBOOL length_only = FALSE; in SC_Sign()
1796 CK_BBOOL length_only = FALSE; in SC_SignFinal()
[all …]
/titanic_41/usr/src/lib/pkcs11/libpkcs11/common/
H A DmetaAttrMasters.h83 { { CKA_TOKEN, NULL, sizeof (CK_BBOOL) }, \
86 { { CKA_PRIVATE, NULL, sizeof (CK_BBOOL) }, \
89 { { CKA_MODIFIABLE, NULL, sizeof (CK_BBOOL) }, \
102 { { CKA_TRUSTED, NULL, sizeof (CK_BBOOL) }, \
121 { { CKA_DERIVE, NULL, sizeof (CK_BBOOL) }, \
124 { { CKA_LOCAL, NULL, sizeof (CK_BBOOL) }, \
142 { { CKA_ENCRYPT, NULL, sizeof (CK_BBOOL) }, \
145 { { CKA_VERIFY, NULL, sizeof (CK_BBOOL) }, \
148 { { CKA_VERIFY_RECOVER, NULL, sizeof (CK_BBOOL) }, \
151 { { CKA_WRAP, NULL, sizeof (CK_BBOOL) }, \
[all …]
H A DmetaAttrManager.c413 case (sizeof (CK_BBOOL)): in get_master_attributes_by_type()
678 CK_BBOOL *value = attributes[i].pValue; in get_template_boolean()
708 CK_ULONG num_attributes, boolean_t local, CK_BBOOL *value) in set_template_boolean()
717 *((CK_BBOOL *)attributes[i].pValue) = *value; in set_template_boolean()
/titanic_41/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelAttributeUtil.c639 template->ulValueLen = sizeof (CK_BBOOL); in get_bool_attr_from_object()
643 if (template->ulValueLen >= sizeof (CK_BBOOL)) { in get_bool_attr_from_object()
649 *((CK_BBOOL *)template->pValue) = B_TRUE; in get_bool_attr_from_object()
651 *((CK_BBOOL *)template->pValue) = B_FALSE; in get_bool_attr_from_object()
654 template->ulValueLen = sizeof (CK_BBOOL); in get_bool_attr_from_object()
674 if (*(CK_BBOOL *)template->pValue) in set_bool_attr_to_object()
942 if ((*(CK_BBOOL *)template->pValue) == TRUE) { in kernel_parse_common_attrs()
948 if ((*(CK_BBOOL *)template->pValue) == TRUE) { in kernel_parse_common_attrs()
963 if ((*(CK_BBOOL *)template->pValue) == FALSE) { in kernel_parse_common_attrs()
1084 if (*(CK_BBOOL *)template[i].pValue) in kernel_build_public_key_object()
[all …]
H A DkernelGlobal.h87 CK_BBOOL *);
91 CK_BBOOL *);
H A DkernelUtil.c777 caddr_t *obj_attrs, CK_BBOOL *is_token_obj) in process_object_attributes()
847 *(CK_BBOOL *)pTemplate[i].pValue; in process_object_attributes()
947 CK_BBOOL pri_value, token_value; in create_new_tobj_in_lib()
985 is_pri_obj = *(CK_BBOOL *)pTemplate[0].pValue; in create_new_tobj_in_lib()
986 is_token_obj = *(CK_BBOOL *)pTemplate[1].pValue; in create_new_tobj_in_lib()
1190 CK_BBOOL *is_pri_obj) in get_cka_private_value()
1195 CK_BBOOL pri_value; in get_cka_private_value()
1204 obj_attr.oa_value_len = sizeof (CK_BBOOL); in get_cka_private_value()
1219 *is_pri_obj = *(CK_BBOOL *)obj_attr.oa_value; in get_cka_private_value()
H A DkernelKeys.c254 CK_BBOOL is_token_obj = FALSE; in key_gen_by_value()
373 CK_BBOOL is_pri_obj; in C_GenerateKey()
374 CK_BBOOL is_token_obj = FALSE; in C_GenerateKey()
525 CK_BBOOL is_token_obj1 = FALSE; in key_gen_rsa_by_value()
526 CK_BBOOL is_token_obj2 = FALSE; in key_gen_rsa_by_value()
859 CK_BBOOL is_token_obj1 = FALSE; in key_gen_dh_by_value()
860 CK_BBOOL is_token_obj2 = FALSE; in key_gen_dh_by_value()
1143 CK_BBOOL is_token_obj1 = FALSE; in key_gen_ec_by_value()
1144 CK_BBOOL is_token_obj2 = FALSE; in key_gen_ec_by_value()
1413 CK_BBOOL is_pri_obj1; in C_GenerateKeyPair()
[all …]
/titanic_41/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftAttributeUtil.c773 template->ulValueLen = sizeof (CK_BBOOL); in get_bool_attr_from_object()
777 if (template->ulValueLen >= sizeof (CK_BBOOL)) { in get_bool_attr_from_object()
783 *((CK_BBOOL *)template->pValue) = B_TRUE; in get_bool_attr_from_object()
785 *((CK_BBOOL *)template->pValue) = B_FALSE; in get_bool_attr_from_object()
788 template->ulValueLen = sizeof (CK_BBOOL); in get_bool_attr_from_object()
808 if (*(CK_BBOOL *)template->pValue) in set_bool_attr_to_object()
1227 if ((*(CK_BBOOL *)template->pValue) == B_TRUE) { in soft_parse_common_attrs()
1235 if ((*(CK_BBOOL *)template->pValue) == B_TRUE) { in soft_parse_common_attrs()
1374 if (*(CK_BBOOL *)template[i].pValue)
1379 if (*(CK_BBOOL *)template[i].pValue)
[all …]
/titanic_41/usr/src/cmd/cmd-crypto/pktool/
H A Dcommon.h77 extern CK_BBOOL pk_false;
78 extern CK_BBOOL pk_true;
/titanic_41/usr/src/lib/libkmf/libkmf/common/
H A Dpk11keys.c195 CK_BBOOL ckToken = 0; in PKCS_CreatePublicKey()
196 CK_BBOOL ckPrivate = 0; in PKCS_CreatePublicKey()
200 CK_BBOOL ckDerive = CK_FALSE; in PKCS_CreatePublicKey()
203 CK_BBOOL ckEncrypt = 1; in PKCS_CreatePublicKey()
204 CK_BBOOL ckVerify = 1; in PKCS_CreatePublicKey()
206 CK_BBOOL ckVerifyRecover = CK_FALSE; in PKCS_CreatePublicKey()
207 CK_BBOOL ckWrap = CK_FALSE; in PKCS_CreatePublicKey()

123