Lines Matching refs:template

266 soft_validate_attr(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum,  in soft_validate_attr()  argument
275 switch (template[i].type) { in soft_validate_attr()
277 *class = *((CK_OBJECT_CLASS*)template[i].pValue); in soft_validate_attr()
291 switch (template[i].type) { in soft_validate_attr()
312 rv = soft_lookup_attr(template[i].type); in soft_validate_attr()
446 soft_add_extra_attr(CK_ATTRIBUTE_PTR template, soft_object_t *object_p) in soft_add_extra_attr() argument
458 attrp->attr.type = template->type; in soft_add_extra_attr()
459 attrp->attr.ulValueLen = template->ulValueLen; in soft_add_extra_attr()
461 if ((template->pValue != NULL) && in soft_add_extra_attr()
462 (template->ulValueLen > 0)) { in soft_add_extra_attr()
464 attrp->attr.pValue = malloc(template->ulValueLen); in soft_add_extra_attr()
470 (void) memcpy(attrp->attr.pValue, template->pValue, in soft_add_extra_attr()
471 template->ulValueLen); in soft_add_extra_attr()
585 get_extra_attr_from_object(soft_object_t *object_p, CK_ATTRIBUTE_PTR template) in get_extra_attr_from_object() argument
589 CK_ATTRIBUTE_TYPE type = template->type; in get_extra_attr_from_object()
605 template->ulValueLen = 0; in get_extra_attr_from_object()
612 if (template->pValue == NULL) { in get_extra_attr_from_object()
613 template->ulValueLen = extra_attr->attr.ulValueLen; in get_extra_attr_from_object()
617 if (template->ulValueLen >= extra_attr->attr.ulValueLen) { in get_extra_attr_from_object()
622 (void) memcpy(template->pValue, extra_attr->attr.pValue, in get_extra_attr_from_object()
624 template->ulValueLen = extra_attr->attr.ulValueLen; in get_extra_attr_from_object()
631 template->ulValueLen = (CK_ULONG)-1; in get_extra_attr_from_object()
644 CK_ATTRIBUTE_PTR template) in set_extra_attr_to_object() argument
666 return (soft_add_extra_attr(template, object_p)); in set_extra_attr_to_object()
670 if ((template->pValue != NULL) && in set_extra_attr_to_object()
671 (template->ulValueLen > 0)) { in set_extra_attr_to_object()
672 if (template->ulValueLen > extra_attr->attr.ulValueLen) { in set_extra_attr_to_object()
681 extra_attr->attr.pValue = malloc(template->ulValueLen); in set_extra_attr_to_object()
688 extra_attr->attr.ulValueLen = template->ulValueLen; in set_extra_attr_to_object()
689 (void) memcpy(extra_attr->attr.pValue, template->pValue, in set_extra_attr_to_object()
690 template->ulValueLen); in set_extra_attr_to_object()
703 get_bigint_attr_from_template(biginteger_t *big, CK_ATTRIBUTE_PTR template) in get_bigint_attr_from_template() argument
706 if ((template->pValue != NULL) && in get_bigint_attr_from_template()
707 (template->ulValueLen > 0)) { in get_bigint_attr_from_template()
709 big->big_value = malloc(template->ulValueLen); in get_bigint_attr_from_template()
714 (void) memcpy(big->big_value, template->pValue, in get_bigint_attr_from_template()
715 template->ulValueLen); in get_bigint_attr_from_template()
716 big->big_value_len = template->ulValueLen; in get_bigint_attr_from_template()
731 get_bigint_attr_from_object(biginteger_t *big, CK_ATTRIBUTE_PTR template) in get_bigint_attr_from_object() argument
734 if (template->pValue == NULL) { in get_bigint_attr_from_object()
735 template->ulValueLen = big->big_value_len; in get_bigint_attr_from_object()
740 template->ulValueLen = 0; in get_bigint_attr_from_object()
744 if (template->ulValueLen >= big->big_value_len) { in get_bigint_attr_from_object()
749 (void) memcpy(template->pValue, big->big_value, in get_bigint_attr_from_object()
751 template->ulValueLen = big->big_value_len; in get_bigint_attr_from_object()
758 template->ulValueLen = (CK_ULONG)-1; in get_bigint_attr_from_object()
770 CK_ATTRIBUTE_PTR template) in get_bool_attr_from_object() argument
773 if (template->pValue == NULL) { in get_bool_attr_from_object()
774 template->ulValueLen = sizeof (CK_BBOOL); in get_bool_attr_from_object()
778 if (template->ulValueLen >= sizeof (CK_BBOOL)) { in get_bool_attr_from_object()
784 *((CK_BBOOL *)template->pValue) = B_TRUE; in get_bool_attr_from_object()
786 *((CK_BBOOL *)template->pValue) = B_FALSE; in get_bool_attr_from_object()
789 template->ulValueLen = sizeof (CK_BBOOL); in get_bool_attr_from_object()
796 template->ulValueLen = (CK_ULONG)-1; in get_bool_attr_from_object()
806 CK_ATTRIBUTE_PTR template) in set_bool_attr_to_object() argument
809 if (*(CK_BBOOL *)template->pValue) in set_bool_attr_to_object()
823 get_ulong_attr_from_object(CK_ULONG value, CK_ATTRIBUTE_PTR template) in get_ulong_attr_from_object() argument
826 if (template->pValue == NULL) { in get_ulong_attr_from_object()
827 template->ulValueLen = sizeof (CK_ULONG); in get_ulong_attr_from_object()
831 if (template->ulValueLen >= sizeof (CK_ULONG)) { in get_ulong_attr_from_object()
837 *(CK_ULONG_PTR)template->pValue = value; in get_ulong_attr_from_object()
838 template->ulValueLen = sizeof (CK_ULONG); in get_ulong_attr_from_object()
845 template->ulValueLen = (CK_ULONG)-1; in get_ulong_attr_from_object()
856 get_ulong_attr_from_template(CK_ULONG *value, CK_ATTRIBUTE_PTR template) in get_ulong_attr_from_template() argument
859 if (template->ulValueLen < sizeof (CK_ULONG)) in get_ulong_attr_from_template()
862 if (template->pValue != NULL) { in get_ulong_attr_from_template()
863 *value = *(CK_ULONG_PTR)template->pValue; in get_ulong_attr_from_template()
961 get_cert_attr_from_object(cert_attr_t *src, CK_ATTRIBUTE_PTR template) in get_cert_attr_from_object() argument
963 if (template->pValue == NULL) { in get_cert_attr_from_object()
964 template->ulValueLen = src->length; in get_cert_attr_from_object()
966 } else if (template->ulValueLen >= src->length) { in get_cert_attr_from_object()
971 (void) memcpy(template->pValue, src->value, src->length); in get_cert_attr_from_object()
972 template->ulValueLen = src->length; in get_cert_attr_from_object()
979 template->ulValueLen = (CK_ULONG)-1; in get_cert_attr_from_object()
985 string_attr_cleanup(CK_ATTRIBUTE_PTR template) in string_attr_cleanup() argument
987 freezero(template->pValue, template->ulValueLen); in string_attr_cleanup()
988 template->pValue = NULL; in string_attr_cleanup()
989 template->ulValueLen = 0; in string_attr_cleanup()
1205 soft_parse_common_attrs(CK_ATTRIBUTE_PTR template, uchar_t *object_type) in soft_parse_common_attrs() argument
1210 switch (template->type) { in soft_parse_common_attrs()
1216 if ((*(CK_BBOOL *)template->pValue) == B_TRUE) { in soft_parse_common_attrs()
1224 if ((*(CK_BBOOL *)template->pValue) == B_TRUE) { in soft_parse_common_attrs()
1273 soft_build_public_key_object(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, argument
1327 switch (template[i].type) {
1331 keytype = *((CK_KEY_TYPE*)template[i].pValue);
1345 rv = soft_add_extra_attr(&template[i],
1363 if (*(CK_BBOOL *)template[i].pValue)
1368 if (*(CK_BBOOL *)template[i].pValue)
1375 if (*(CK_BBOOL *)template[i].pValue)
1382 if (*(CK_BBOOL *)template[i].pValue)
1389 if (*(CK_BBOOL *)template[i].pValue)
1396 if (*(CK_BBOOL *)template[i].pValue)
1401 if ((*(CK_BBOOL *)template[i].pValue) == B_FALSE)
1418 &template[i]);
1438 &template[i]);
1446 &template[i]);
1454 &template[i]);
1462 &template[i]);
1470 if ((template[i].ulValueLen == 0) ||
1471 (template[i].pValue == NULL)) {
1478 &template[i]);
1486 &template[i]);
1494 &template[i]);
1501 rv = get_string_from_template(&param_tmp, &template[i]);
1509 &template[i]);
1515 rv = soft_parse_common_attrs(&template[i],
1839 soft_build_private_key_object(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, argument
1909 switch (template[i].type) {
1912 keytype = *((CK_KEY_TYPE*)template[i].pValue);
1926 rv = soft_add_extra_attr(&template[i],
1947 if (*(CK_BBOOL *)template[i].pValue)
1952 if (*(CK_BBOOL *)template[i].pValue)
1957 if (*(CK_BBOOL *)template[i].pValue) {
1964 if (*(CK_BBOOL *)template[i].pValue)
1971 if (*(CK_BBOOL *)template[i].pValue)
1978 if (*(CK_BBOOL *)template[i].pValue)
1985 if (*(CK_BBOOL *)template[i].pValue)
1992 if (*(CK_BBOOL *)template[i].pValue)
1999 if ((*(CK_BBOOL *)template[i].pValue) == B_FALSE)
2016 &template[i]);
2037 &template[i]);
2046 &template[i]);
2054 &template[i]);
2062 &template[i]);
2070 &template[i]);
2078 &template[i]);
2086 &template[i]);
2094 &template[i]);
2102 &template[i]);
2110 &template[i]);
2118 if ((template[i].ulValueLen == 0) ||
2119 (template[i].pValue == NULL)) {
2126 &template[i]);
2134 &template[i]);
2142 &template[i]);
2150 &template[i]);
2156 rv = soft_parse_common_attrs(&template[i],
2507 soft_build_secret_key_object(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, argument
2542 switch (template[i].type) {
2546 keytype = *((CK_KEY_TYPE*)template[i].pValue);
2557 rv = soft_add_extra_attr(&template[i],
2577 if (*(CK_BBOOL *)template[i].pValue)
2582 if (*(CK_BBOOL *)template[i].pValue)
2587 if (*(CK_BBOOL *)template[i].pValue)
2594 if (*(CK_BBOOL *)template[i].pValue)
2601 if (*(CK_BBOOL *)template[i].pValue)
2608 if (*(CK_BBOOL *)template[i].pValue)
2615 if (*(CK_BBOOL *)template[i].pValue)
2622 if (*(CK_BBOOL *)template[i].pValue)
2629 if (*(CK_BBOOL *)template[i].pValue)
2636 if ((*(CK_BBOOL *)template[i].pValue) == B_FALSE)
2643 if ((template[i].ulValueLen == 0) ||
2644 (template[i].pValue == NULL)) {
2655 &template[i]);
2663 &template[i]);
2671 &template[i]);
2677 rv = soft_parse_common_attrs(&template[i],
3162 soft_build_domain_parameters_object(CK_ATTRIBUTE_PTR template, argument
3195 switch (template[i].type) {
3199 keytype = *((CK_KEY_TYPE*)template[i].pValue);
3222 &template[i]);
3230 &template[i]);
3238 &template[i]);
3254 &template[i]);
3260 rv = soft_parse_common_attrs(&template[i],
3388 soft_build_certificate_object(CK_ATTRIBUTE_PTR template, argument
3411 switch (template[i].type) {
3414 *((CK_CERTIFICATE_TYPE*)template[i].pValue);
3459 switch (template[i].type) {
3463 &template[i]);
3468 &template[i]);
3474 &template[i]);
3481 rv = soft_add_extra_attr(&template[i],
3485 if ((*(CK_BBOOL *)template[i].pValue) ==
3494 &template[i], &object_type);
3500 switch (template[i].type) {
3504 &template[i]);
3509 &template[i]);
3514 &string_tmp, &template[i]);
3521 rv = soft_add_extra_attr(&template[i],
3526 if ((*(CK_BBOOL *)template[i].pValue) ==
3535 &template[i], &object_type);
3583 soft_build_object(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, argument
3590 if (template == NULL) {
3595 rv = soft_validate_attr(template, ulAttrNum, &class);
3610 rv = soft_build_public_key_object(template, ulAttrNum,
3615 rv = soft_build_private_key_object(template, ulAttrNum,
3620 rv = soft_build_secret_key_object(template, ulAttrNum,
3625 rv = soft_build_domain_parameters_object(template, ulAttrNum,
3630 rv = soft_build_certificate_object(template, ulAttrNum,
3651 soft_build_key(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, argument
3660 if ((template != NULL) && (ulAttrNum != 0)) {
3661 rv = soft_validate_attr(template, ulAttrNum, &temp_class);
3698 rv = soft_build_public_key_object(template, ulAttrNum,
3704 rv = soft_build_private_key_object(template, ulAttrNum,
3710 rv = soft_build_secret_key_object(template, ulAttrNum,
3722 rv = soft_build_domain_parameters_object(template, ulAttrNum,
3744 soft_get_common_attrs(soft_object_t *object_p, CK_ATTRIBUTE_PTR template, argument
3750 switch (template->type) {
3754 template));
3758 template->ulValueLen = sizeof (CK_BBOOL);
3759 if (template->pValue == NULL) {
3763 *((CK_BBOOL *)template->pValue) = B_TRUE;
3765 *((CK_BBOOL *)template->pValue) = B_FALSE;
3770 template->ulValueLen = sizeof (CK_BBOOL);
3771 if (template->pValue == NULL) {
3775 *((CK_BBOOL *)template->pValue) = B_TRUE;
3777 *((CK_BBOOL *)template->pValue) = B_FALSE;
3781 template->ulValueLen = sizeof (CK_BBOOL);
3782 if (template->pValue == NULL) {
3786 *((CK_BBOOL *)template->pValue) = B_FALSE;
3788 *((CK_BBOOL *)template->pValue) = B_TRUE;
3793 template));
3800 template->ulValueLen = (CK_ULONG)-1;
3812 soft_get_common_key_attrs(soft_object_t *object_p, CK_ATTRIBUTE_PTR template) argument
3815 switch (template->type) {
3819 template));
3828 template));
3833 LOCAL_BOOL_ON, template));
3837 DERIVE_BOOL_ON, template));
3841 template));
3855 CK_ATTRIBUTE_PTR template) argument
3861 switch (template->type) {
3869 template));
3874 ENCRYPT_BOOL_ON, template));
3878 VERIFY_BOOL_ON, template));
3882 VERIFY_RECOVER_BOOL_ON, template));
3886 WRAP_BOOL_ON, template));
3890 TRUSTED_BOOL_ON, template));
3899 OBJ_PUB_RSA_MOD(object_p), template));
3901 template->ulValueLen = (CK_ULONG)-1;
3908 OBJ_PUB_RSA_PUBEXPO(object_p), template));
3910 template->ulValueLen = (CK_ULONG)-1;
3917 OBJ_PUB_RSA_MOD_BITS(object_p), template));
3919 template->ulValueLen = (CK_ULONG)-1;
3927 OBJ_PUB_DSA_PRIME(object_p), template));
3931 OBJ_PUB_DH_PRIME(object_p), template));
3935 OBJ_PUB_DH942_PRIME(object_p), template));
3938 template->ulValueLen = (CK_ULONG)-1;
3946 OBJ_PUB_DSA_SUBPRIME(object_p), template));
3950 OBJ_PUB_DH942_SUBPRIME(object_p), template));
3953 template->ulValueLen = (CK_ULONG)-1;
3961 OBJ_PUB_DSA_BASE(object_p), template));
3965 OBJ_PUB_DH_BASE(object_p), template));
3969 OBJ_PUB_DH942_BASE(object_p), template));
3972 template->ulValueLen = (CK_ULONG)-1;
3978 OBJ_PUB_EC_POINT(object_p), template));
3984 OBJ_PUB_DSA_VALUE(object_p), template));
3988 OBJ_PUB_DH_VALUE(object_p), template));
3992 OBJ_PUB_DH942_VALUE(object_p), template));
3995 template->ulValueLen = (CK_ULONG)-1;
4006 rv = soft_get_common_key_attrs(object_p, template);
4008 rv = soft_get_common_attrs(object_p, template,
4028 CK_ATTRIBUTE_PTR template) argument
4043 switch (template->type) {
4051 template->ulValueLen = (CK_ULONG)-1;
4056 switch (template->type) {
4064 template));
4069 SENSITIVE_BOOL_ON, template));
4073 SECONDARY_AUTH_BOOL_ON, template));
4077 DECRYPT_BOOL_ON, template));
4081 SIGN_BOOL_ON, template));
4085 SIGN_RECOVER_BOOL_ON, template));
4089 UNWRAP_BOOL_ON, template));
4093 EXTRACTABLE_BOOL_ON, template));
4097 ALWAYS_SENSITIVE_BOOL_ON, template));
4101 NEVER_EXTRACTABLE_BOOL_ON, template));
4106 OBJ_PRI_RSA_MOD(object_p), template));
4108 template->ulValueLen = (CK_ULONG)-1;
4116 OBJ_PRI_RSA_PUBEXPO(object_p), template));
4118 template->ulValueLen = (CK_ULONG)-1;
4126 OBJ_PRI_RSA_PRIEXPO(object_p), template));
4128 template->ulValueLen = (CK_ULONG)-1;
4136 OBJ_PRI_RSA_PRIME1(object_p), template));
4138 template->ulValueLen = (CK_ULONG)-1;
4146 OBJ_PRI_RSA_PRIME2(object_p), template));
4148 template->ulValueLen = (CK_ULONG)-1;
4156 OBJ_PRI_RSA_EXPO1(object_p), template));
4158 template->ulValueLen = (CK_ULONG)-1;
4166 OBJ_PRI_RSA_EXPO2(object_p), template));
4168 template->ulValueLen = (CK_ULONG)-1;
4176 OBJ_PRI_RSA_COEF(object_p), template));
4178 template->ulValueLen = (CK_ULONG)-1;
4186 OBJ_PRI_DH_VAL_BITS(object_p), template));
4188 template->ulValueLen = (CK_ULONG)-1;
4197 OBJ_PRI_DSA_PRIME(object_p), template));
4201 OBJ_PRI_DH_PRIME(object_p), template));
4205 OBJ_PRI_DH942_PRIME(object_p), template));
4208 template->ulValueLen = (CK_ULONG)-1;
4216 OBJ_PRI_DSA_SUBPRIME(object_p), template));
4220 OBJ_PRI_DH942_SUBPRIME(object_p), template));
4223 template->ulValueLen = (CK_ULONG)-1;
4231 OBJ_PRI_DSA_BASE(object_p), template));
4235 OBJ_PRI_DH_BASE(object_p), template));
4239 OBJ_PRI_DH942_BASE(object_p), template));
4242 template->ulValueLen = (CK_ULONG)-1;
4250 OBJ_PRI_DSA_VALUE(object_p), template));
4254 OBJ_PRI_DH_VALUE(object_p), template));
4258 OBJ_PRI_DH942_VALUE(object_p), template));
4262 OBJ_PRI_EC_VALUE(object_p), template));
4265 template->ulValueLen = (CK_ULONG)-1;
4276 rv = soft_get_common_key_attrs(object_p, template);
4278 rv = soft_get_common_attrs(object_p, template,
4298 CK_ATTRIBUTE_PTR template) argument
4304 switch (template->type) {
4309 SENSITIVE_BOOL_ON, template));
4313 ENCRYPT_BOOL_ON, template));
4317 DECRYPT_BOOL_ON, template));
4321 SIGN_BOOL_ON, template));
4325 VERIFY_BOOL_ON, template));
4329 WRAP_BOOL_ON, template));
4333 UNWRAP_BOOL_ON, template));
4337 EXTRACTABLE_BOOL_ON, template));
4341 ALWAYS_SENSITIVE_BOOL_ON, template));
4345 NEVER_EXTRACTABLE_BOOL_ON, template));
4356 template->ulValueLen = (CK_ULONG)-1;
4370 if (template->type == CKA_VALUE_LEN) {
4373 template));
4377 template));
4380 template->ulValueLen = (CK_ULONG)-1;
4393 rv = soft_get_common_key_attrs(object_p, template);
4395 rv = soft_get_common_attrs(object_p, template,
4412 CK_ATTRIBUTE_PTR template) argument
4418 switch (template->type) {
4422 template));
4426 LOCAL_BOOL_ON, template));
4432 OBJ_DOM_DSA_PRIME(object_p), template));
4436 OBJ_DOM_DH_PRIME(object_p), template));
4440 OBJ_DOM_DH942_PRIME(object_p), template));
4443 template->ulValueLen = (CK_ULONG)-1;
4451 OBJ_DOM_DSA_SUBPRIME(object_p), template));
4455 OBJ_DOM_DH942_SUBPRIME(object_p), template));
4458 template->ulValueLen = (CK_ULONG)-1;
4466 OBJ_DOM_DSA_BASE(object_p), template));
4470 OBJ_DOM_DH_BASE(object_p), template));
4474 OBJ_DOM_DH942_BASE(object_p), template));
4477 template->ulValueLen = (CK_ULONG)-1;
4485 OBJ_DOM_DSA_PRIME_BITS(object_p), template));
4489 OBJ_DOM_DH_PRIME_BITS(object_p), template));
4493 OBJ_DOM_DH942_PRIME_BITS(object_p), template));
4496 template->ulValueLen = (CK_ULONG)-1;
4504 OBJ_DOM_DH942_SUBPRIME_BITS(object_p), template));
4507 template->ulValueLen = (CK_ULONG)-1;
4515 rv = soft_get_common_attrs(object_p, template,
4530 CK_ATTRIBUTE_PTR template) argument
4535 switch (template->type) {
4539 X509_CERT_SUBJECT(object_p), template));
4545 X509_CERT_VALUE(object_p), template));
4548 X509_ATTR_CERT_VALUE(object_p), template));
4554 X509_ATTR_CERT_OWNER(object_p), template));
4560 return (get_cert_attr_from_object(&src, template));
4563 TRUSTED_BOOL_ON, template));
4570 template));
4572 return (soft_get_common_attrs(object_p, template,
4585 CK_ATTRIBUTE_PTR template, boolean_t copy) argument
4589 switch (template->type) {
4609 template->type, template));
4616 template->type, template));
4622 template->type, template));
4625 object_p, template, copy));
4642 soft_get_attribute(soft_object_t *object_p, CK_ATTRIBUTE_PTR template) argument
4650 rv = soft_get_public_key_attribute(object_p, template);
4654 rv = soft_get_private_key_attribute(object_p, template);
4658 rv = soft_get_secret_key_attribute(object_p, template);
4662 rv = soft_get_domain_parameters_attribute(object_p, template);
4666 rv = soft_get_certificate_attribute(object_p, template);
4675 template->ulValueLen = (CK_ULONG)-1;
4685 CK_ATTRIBUTE_PTR template, boolean_t copy) argument
4690 switch (template->type) {
4694 if ((*(CK_BBOOL *)template->pValue) == B_TRUE) {
4707 if ((*(CK_BBOOL *)template->pValue) == B_TRUE) {
4733 if ((*(CK_BBOOL *)template->pValue) == TRUE)
4761 CK_ATTRIBUTE_PTR template, boolean_t copy) argument
4764 switch (template->type) {
4772 CKA_LABEL, template));
4776 CKA_ID, template));
4780 CKA_START_DATE, template));
4784 CKA_END_DATE, template));
4788 DERIVE_BOOL_ON, template));
4797 template, copy));
4812 CK_ATTRIBUTE_PTR template, boolean_t copy) argument
4816 switch (template->type) {
4820 CKA_SUBJECT, template));
4824 ENCRYPT_BOOL_ON, template));
4828 VERIFY_BOOL_ON, template));
4832 VERIFY_RECOVER_BOOL_ON, template));
4836 WRAP_BOOL_ON, template));
4865 template, copy));
4884 CK_ATTRIBUTE_PTR template, boolean_t copy) argument
4888 switch (template->type) {
4892 CKA_SUBJECT, template));
4898 if (((*(CK_BBOOL *)template->pValue) == B_FALSE) &&
4903 if (*(CK_BBOOL *)template->pValue)
4909 DECRYPT_BOOL_ON, template));
4913 SIGN_BOOL_ON, template));
4917 SIGN_RECOVER_BOOL_ON, template));
4921 UNWRAP_BOOL_ON, template));
4927 if ((*(CK_BBOOL *)template->pValue) &&
4932 if ((*(CK_BBOOL *)template->pValue) == B_FALSE)
4974 template, copy));
4992 CK_ATTRIBUTE_PTR template, boolean_t copy) argument
4996 switch (template->type) {
5002 if (((*(CK_BBOOL *)template->pValue) == B_FALSE) &&
5007 if (*(CK_BBOOL *)template->pValue)
5013 ENCRYPT_BOOL_ON, template));
5017 DECRYPT_BOOL_ON, template));
5021 SIGN_BOOL_ON, template));
5025 VERIFY_BOOL_ON, template));
5029 WRAP_BOOL_ON, template));
5033 UNWRAP_BOOL_ON, template));
5039 if ((*(CK_BBOOL *)template->pValue) &&
5044 if ((*(CK_BBOOL *)template->pValue) == B_FALSE)
5064 template, copy));
5087 soft_set_attribute(soft_object_t *object_p, CK_ATTRIBUTE_PTR template, argument
5097 rv = soft_set_public_key_attribute(object_p, template, copy);
5101 rv = soft_set_private_key_attribute(object_p, template, copy);
5105 rv = soft_set_secret_key_attribute(object_p, template, copy);
5109 switch (template->type) {
5117 CKA_LABEL, template));
5122 rv = soft_set_certificate_attribute(object_p, template, copy);
6475 CK_ULONG num_pclasses, CK_ATTRIBUTE *template, CK_ULONG num_attr) argument
6507 tmpl_attr = &(template[i]);