Lines Matching refs:template
265 soft_validate_attr(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum,
274 switch (template[i].type) {
276 *class = *((CK_OBJECT_CLASS*)template[i].pValue);
290 switch (template[i].type) {
311 rv = soft_lookup_attr(template[i].type);
447 soft_add_extra_attr(CK_ATTRIBUTE_PTR template, soft_object_t *object_p)
459 attrp->attr.type = template->type;
460 attrp->attr.ulValueLen = template->ulValueLen;
462 if ((template->pValue != NULL) &&
463 (template->ulValueLen > 0)) {
465 attrp->attr.pValue = malloc(template->ulValueLen);
471 (void) memcpy(attrp->attr.pValue, template->pValue,
472 template->ulValueLen);
580 * (if the specified attribute type is found), and copy it to a template.
581 * Note the type of the attribute to be copied is specified by the template,
582 * and the storage is pre-allocated for the atrribute value in the template
586 get_extra_attr_from_object(soft_object_t *object_p, CK_ATTRIBUTE_PTR template)
590 CK_ATTRIBUTE_TYPE type = template->type;
606 template->ulValueLen = 0;
613 if (template->pValue == NULL) {
614 template->ulValueLen = extra_attr->attr.ulValueLen;
618 if (template->ulValueLen >= extra_attr->attr.ulValueLen) {
623 (void) memcpy(template->pValue, extra_attr->attr.pValue,
625 template->ulValueLen = extra_attr->attr.ulValueLen;
632 template->ulValueLen = (CK_ULONG)-1;
645 CK_ATTRIBUTE_PTR template)
667 return (soft_add_extra_attr(template, object_p));
671 if ((template->pValue != NULL) &&
672 (template->ulValueLen > 0)) {
673 if (template->ulValueLen > extra_attr->attr.ulValueLen) {
680 extra_attr->attr.pValue = malloc(template->ulValueLen);
687 extra_attr->attr.ulValueLen = template->ulValueLen;
688 (void) memcpy(extra_attr->attr.pValue, template->pValue,
689 template->ulValueLen);
699 * Copy the big integer attribute value from template to a biginteger_t struct.
702 get_bigint_attr_from_template(biginteger_t *big, CK_ATTRIBUTE_PTR template)
705 if ((template->pValue != NULL) &&
706 (template->ulValueLen > 0)) {
708 big->big_value = malloc(template->ulValueLen);
713 (void) memcpy(big->big_value, template->pValue,
714 template->ulValueLen);
715 big->big_value_len = template->ulValueLen;
727 * object to a template.
730 get_bigint_attr_from_object(biginteger_t *big, CK_ATTRIBUTE_PTR template)
733 if (template->pValue == NULL) {
734 template->ulValueLen = big->big_value_len;
739 template->ulValueLen = 0;
743 if (template->ulValueLen >= big->big_value_len) {
748 (void) memcpy(template->pValue, big->big_value,
750 template->ulValueLen = big->big_value_len;
757 template->ulValueLen = (CK_ULONG)-1;
765 * specified attribute to the template.
769 CK_ATTRIBUTE_PTR template)
772 if (template->pValue == NULL) {
773 template->ulValueLen = sizeof (CK_BBOOL);
777 if (template->ulValueLen >= sizeof (CK_BBOOL)) {
783 *((CK_BBOOL *)template->pValue) = B_TRUE;
785 *((CK_BBOOL *)template->pValue) = B_FALSE;
788 template->ulValueLen = sizeof (CK_BBOOL);
795 template->ulValueLen = (CK_ULONG)-1;
805 CK_ATTRIBUTE_PTR template)
808 if (*(CK_BBOOL *)template->pValue)
819 * template.
822 get_ulong_attr_from_object(CK_ULONG value, CK_ATTRIBUTE_PTR template)
825 if (template->pValue == NULL) {
826 template->ulValueLen = sizeof (CK_ULONG);
830 if (template->ulValueLen >= sizeof (CK_ULONG)) {
836 *(CK_ULONG_PTR)template->pValue = value;
837 template->ulValueLen = sizeof (CK_ULONG);
844 template->ulValueLen = (CK_ULONG)-1;
851 * Copy the CK_ULONG data type attribute value from a template to the
855 get_ulong_attr_from_template(CK_ULONG *value, CK_ATTRIBUTE_PTR template)
858 if (template->ulValueLen < sizeof (CK_ULONG))
861 if (template->pValue != NULL) {
862 *value = *(CK_ULONG_PTR)template->pValue;
959 * Copy the certificate attribute information to the template.
960 * If the template attribute is not big enough, set the ulValueLen=-1
964 get_cert_attr_from_object(cert_attr_t *src, CK_ATTRIBUTE_PTR template)
966 if (template->pValue == NULL) {
967 template->ulValueLen = src->length;
969 } else if (template->ulValueLen >= src->length) {
974 (void) memcpy(template->pValue, src->value, src->length);
975 template->ulValueLen = src->length;
982 template->ulValueLen = (CK_ULONG)-1;
988 string_attr_cleanup(CK_ATTRIBUTE_PTR template)
991 if (template->pValue) {
992 free(template->pValue);
993 template->pValue = NULL;
994 template->ulValueLen = 0;
1212 * value to indicate if the supplied template specifies a valid attribute
1216 soft_parse_common_attrs(CK_ATTRIBUTE_PTR template, uchar_t *object_type)
1221 switch (template->type) {
1227 if ((*(CK_BBOOL *)template->pValue) == B_TRUE) {
1235 if ((*(CK_BBOOL *)template->pValue) == B_TRUE) {
1269 * - Parse the object's template, and when an error is detected such as
1284 soft_build_public_key_object(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum,
1338 switch (template[i].type) {
1342 keytype = *((CK_KEY_TYPE*)template[i].pValue);
1356 rv = soft_add_extra_attr(&template[i],
1374 if (*(CK_BBOOL *)template[i].pValue)
1379 if (*(CK_BBOOL *)template[i].pValue)
1386 if (*(CK_BBOOL *)template[i].pValue)
1393 if (*(CK_BBOOL *)template[i].pValue)
1400 if (*(CK_BBOOL *)template[i].pValue)
1407 if (*(CK_BBOOL *)template[i].pValue)
1412 if ((*(CK_BBOOL *)template[i].pValue) == B_FALSE)
1425 * Copyin big integer attribute from template
1429 &template[i]);
1449 &template[i]);
1457 &template[i]);
1465 &template[i]);
1473 &template[i]);
1481 if ((template[i].ulValueLen == 0) ||
1482 (template[i].pValue == NULL)) {
1489 &template[i]);
1497 &template[i]);
1505 &template[i]);
1512 rv = get_string_from_template(¶m_tmp, &template[i]);
1520 &template[i]);
1526 rv = soft_parse_common_attrs(&template[i],
1555 * The key type specified in the template does not
1638 * if not not specified in attribute template.
1835 * - Parse the object's template, and when an error is detected such as
1850 soft_build_private_key_object(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum,
1920 switch (template[i].type) {
1923 keytype = *((CK_KEY_TYPE*)template[i].pValue);
1937 rv = soft_add_extra_attr(&template[i],
1958 if (*(CK_BBOOL *)template[i].pValue)
1963 if (*(CK_BBOOL *)template[i].pValue)
1968 if (*(CK_BBOOL *)template[i].pValue) {
1975 if (*(CK_BBOOL *)template[i].pValue)
1982 if (*(CK_BBOOL *)template[i].pValue)
1989 if (*(CK_BBOOL *)template[i].pValue)
1996 if (*(CK_BBOOL *)template[i].pValue)
2003 if (*(CK_BBOOL *)template[i].pValue)
2010 if ((*(CK_BBOOL *)template[i].pValue) == B_FALSE)
2023 * Copyin big integer attribute from template
2027 &template[i]);
2048 &template[i]);
2057 &template[i]);
2065 &template[i]);
2073 &template[i]);
2081 &template[i]);
2089 &template[i]);
2097 &template[i]);
2105 &template[i]);
2113 &template[i]);
2121 &template[i]);
2129 if ((template[i].ulValueLen == 0) ||
2130 (template[i].pValue == NULL)) {
2137 &template[i]);
2145 &template[i]);
2153 &template[i]);
2161 &template[i]);
2167 rv = soft_parse_common_attrs(&template[i],
2194 * template, so we use the implied key type based on
2201 /* If still unspecified, template is incomplete */
2208 * The key type specified in the template does not
2221 * specified from the attribute template (keytype), it is
2502 * - Parse the object's template, and when an error is detected such as
2518 soft_build_secret_key_object(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum,
2553 switch (template[i].type) {
2557 keytype = *((CK_KEY_TYPE*)template[i].pValue);
2568 rv = soft_add_extra_attr(&template[i],
2588 if (*(CK_BBOOL *)template[i].pValue)
2593 if (*(CK_BBOOL *)template[i].pValue)
2598 if (*(CK_BBOOL *)template[i].pValue)
2605 if (*(CK_BBOOL *)template[i].pValue)
2612 if (*(CK_BBOOL *)template[i].pValue)
2619 if (*(CK_BBOOL *)template[i].pValue)
2626 if (*(CK_BBOOL *)template[i].pValue)
2633 if (*(CK_BBOOL *)template[i].pValue)
2640 if (*(CK_BBOOL *)template[i].pValue)
2647 if ((*(CK_BBOOL *)template[i].pValue) == B_FALSE)
2654 if ((template[i].ulValueLen == 0) ||
2655 (template[i].pValue == NULL)) {
2662 * Copyin attribute from template
2666 &template[i]);
2674 &template[i]);
2682 &template[i]);
2688 rv = soft_parse_common_attrs(&template[i],
2703 * template. Otherwise, returns error.
2715 * template, so we use the implied key type based on
2722 * The key type specified in the template
2733 * match the one found in the template.
2749 * specified from the attribute template (keytype), it is
3163 * - Parse the object's template, and when an error is detected such as
3173 soft_build_domain_parameters_object(CK_ATTRIBUTE_PTR template,
3206 switch (template[i].type) {
3210 keytype = *((CK_KEY_TYPE*)template[i].pValue);
3229 * Copyin big integer attribute from template
3233 &template[i]);
3241 &template[i]);
3249 &template[i]);
3265 &template[i]);
3271 rv = soft_parse_common_attrs(&template[i],
3393 * - Parse the object's template, and when an error is detected such as
3399 soft_build_certificate_object(CK_ATTRIBUTE_PTR template,
3422 switch (template[i].type) {
3425 *((CK_CERTIFICATE_TYPE*)template[i].pValue);
3470 switch (template[i].type) {
3474 &template[i]);
3479 &template[i]);
3485 &template[i]);
3492 rv = soft_add_extra_attr(&template[i],
3496 if ((*(CK_BBOOL *)template[i].pValue) ==
3505 &template[i], &object_type);
3511 switch (template[i].type) {
3515 &template[i]);
3520 &template[i]);
3525 &string_tmp, &template[i]);
3532 rv = soft_add_extra_attr(&template[i],
3537 if ((*(CK_BBOOL *)template[i].pValue) ==
3546 &template[i], &object_type);
3581 * Validate the attribute types in the object's template. Then,
3583 * the object specified in the template.
3594 soft_build_object(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum,
3601 if (template == NULL) {
3605 /* Validate the attribute type in the template. */
3606 rv = soft_validate_attr(template, ulAttrNum, &class);
3621 rv = soft_build_public_key_object(template, ulAttrNum,
3626 rv = soft_build_private_key_object(template, ulAttrNum,
3631 rv = soft_build_secret_key_object(template, ulAttrNum,
3636 rv = soft_build_domain_parameters_object(template, ulAttrNum,
3641 rv = soft_build_certificate_object(template, ulAttrNum,
3656 * Validate the attribute types in the object's template. Then,
3658 * the object specified in the template.
3662 soft_build_key(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum,
3670 /* Validate the attribute type in the template. */
3671 if ((template != NULL) && (ulAttrNum != 0)) {
3672 rv = soft_validate_attr(template, ulAttrNum, &temp_class);
3679 * the class from the template ("temp_class") is not specified,
3688 /* If object class is still not specified, template is incomplete. */
3692 /* Class should match if specified in both parameters and template. */
3709 rv = soft_build_public_key_object(template, ulAttrNum,
3715 rv = soft_build_private_key_object(template, ulAttrNum,
3721 rv = soft_build_secret_key_object(template, ulAttrNum,
3733 rv = soft_build_domain_parameters_object(template, ulAttrNum,
3755 soft_get_common_attrs(soft_object_t *object_p, CK_ATTRIBUTE_PTR template,
3761 switch (template->type) {
3765 template));
3769 template->ulValueLen = sizeof (CK_BBOOL);
3770 if (template->pValue == NULL) {
3774 *((CK_BBOOL *)template->pValue) = B_TRUE;
3776 *((CK_BBOOL *)template->pValue) = B_FALSE;
3781 template->ulValueLen = sizeof (CK_BBOOL);
3782 if (template->pValue == NULL) {
3786 *((CK_BBOOL *)template->pValue) = B_TRUE;
3788 *((CK_BBOOL *)template->pValue) = B_FALSE;
3792 template->ulValueLen = sizeof (CK_BBOOL);
3793 if (template->pValue == NULL) {
3797 *((CK_BBOOL *)template->pValue) = B_FALSE;
3799 *((CK_BBOOL *)template->pValue) = B_TRUE;
3804 template));
3811 template->ulValueLen = (CK_ULONG)-1;
3823 soft_get_common_key_attrs(soft_object_t *object_p, CK_ATTRIBUTE_PTR template)
3826 switch (template->type) {
3830 template));
3839 template));
3844 LOCAL_BOOL_ON, template));
3848 DERIVE_BOOL_ON, template));
3852 template));
3866 CK_ATTRIBUTE_PTR template)
3872 switch (template->type) {
3880 template));
3885 ENCRYPT_BOOL_ON, template));
3889 VERIFY_BOOL_ON, template));
3893 VERIFY_RECOVER_BOOL_ON, template));
3897 WRAP_BOOL_ON, template));
3901 TRUSTED_BOOL_ON, template));
3910 OBJ_PUB_RSA_MOD(object_p), template));
3912 template->ulValueLen = (CK_ULONG)-1;
3919 OBJ_PUB_RSA_PUBEXPO(object_p), template));
3921 template->ulValueLen = (CK_ULONG)-1;
3928 OBJ_PUB_RSA_MOD_BITS(object_p), template));
3930 template->ulValueLen = (CK_ULONG)-1;
3938 OBJ_PUB_DSA_PRIME(object_p), template));
3942 OBJ_PUB_DH_PRIME(object_p), template));
3946 OBJ_PUB_DH942_PRIME(object_p), template));
3949 template->ulValueLen = (CK_ULONG)-1;
3957 OBJ_PUB_DSA_SUBPRIME(object_p), template));
3961 OBJ_PUB_DH942_SUBPRIME(object_p), template));
3964 template->ulValueLen = (CK_ULONG)-1;
3972 OBJ_PUB_DSA_BASE(object_p), template));
3976 OBJ_PUB_DH_BASE(object_p), template));
3980 OBJ_PUB_DH942_BASE(object_p), template));
3983 template->ulValueLen = (CK_ULONG)-1;
3989 OBJ_PUB_EC_POINT(object_p), template));
3995 OBJ_PUB_DSA_VALUE(object_p), template));
3999 OBJ_PUB_DH_VALUE(object_p), template));
4003 OBJ_PUB_DH942_VALUE(object_p), template));
4006 template->ulValueLen = (CK_ULONG)-1;
4017 rv = soft_get_common_key_attrs(object_p, template);
4019 rv = soft_get_common_attrs(object_p, template,
4039 CK_ATTRIBUTE_PTR template)
4054 switch (template->type) {
4062 template->ulValueLen = (CK_ULONG)-1;
4067 switch (template->type) {
4075 template));
4080 SENSITIVE_BOOL_ON, template));
4084 SECONDARY_AUTH_BOOL_ON, template));
4088 DECRYPT_BOOL_ON, template));
4092 SIGN_BOOL_ON, template));
4096 SIGN_RECOVER_BOOL_ON, template));
4100 UNWRAP_BOOL_ON, template));
4104 EXTRACTABLE_BOOL_ON, template));
4108 ALWAYS_SENSITIVE_BOOL_ON, template));
4112 NEVER_EXTRACTABLE_BOOL_ON, template));
4117 OBJ_PRI_RSA_MOD(object_p), template));
4119 template->ulValueLen = (CK_ULONG)-1;
4127 OBJ_PRI_RSA_PUBEXPO(object_p), template));
4129 template->ulValueLen = (CK_ULONG)-1;
4137 OBJ_PRI_RSA_PRIEXPO(object_p), template));
4139 template->ulValueLen = (CK_ULONG)-1;
4147 OBJ_PRI_RSA_PRIME1(object_p), template));
4149 template->ulValueLen = (CK_ULONG)-1;
4157 OBJ_PRI_RSA_PRIME2(object_p), template));
4159 template->ulValueLen = (CK_ULONG)-1;
4167 OBJ_PRI_RSA_EXPO1(object_p), template));
4169 template->ulValueLen = (CK_ULONG)-1;
4177 OBJ_PRI_RSA_EXPO2(object_p), template));
4179 template->ulValueLen = (CK_ULONG)-1;
4187 OBJ_PRI_RSA_COEF(object_p), template));
4189 template->ulValueLen = (CK_ULONG)-1;
4197 OBJ_PRI_DH_VAL_BITS(object_p), template));
4199 template->ulValueLen = (CK_ULONG)-1;
4208 OBJ_PRI_DSA_PRIME(object_p), template));
4212 OBJ_PRI_DH_PRIME(object_p), template));
4216 OBJ_PRI_DH942_PRIME(object_p), template));
4219 template->ulValueLen = (CK_ULONG)-1;
4227 OBJ_PRI_DSA_SUBPRIME(object_p), template));
4231 OBJ_PRI_DH942_SUBPRIME(object_p), template));
4234 template->ulValueLen = (CK_ULONG)-1;
4242 OBJ_PRI_DSA_BASE(object_p), template));
4246 OBJ_PRI_DH_BASE(object_p), template));
4250 OBJ_PRI_DH942_BASE(object_p), template));
4253 template->ulValueLen = (CK_ULONG)-1;
4261 OBJ_PRI_DSA_VALUE(object_p), template));
4265 OBJ_PRI_DH_VALUE(object_p), template));
4269 OBJ_PRI_DH942_VALUE(object_p), template));
4273 OBJ_PRI_EC_VALUE(object_p), template));
4276 template->ulValueLen = (CK_ULONG)-1;
4287 rv = soft_get_common_key_attrs(object_p, template);
4289 rv = soft_get_common_attrs(object_p, template,
4309 CK_ATTRIBUTE_PTR template)
4315 switch (template->type) {
4320 SENSITIVE_BOOL_ON, template));
4324 ENCRYPT_BOOL_ON, template));
4328 DECRYPT_BOOL_ON, template));
4332 SIGN_BOOL_ON, template));
4336 VERIFY_BOOL_ON, template));
4340 WRAP_BOOL_ON, template));
4344 UNWRAP_BOOL_ON, template));
4348 EXTRACTABLE_BOOL_ON, template));
4352 ALWAYS_SENSITIVE_BOOL_ON, template));
4356 NEVER_EXTRACTABLE_BOOL_ON, template));
4367 template->ulValueLen = (CK_ULONG)-1;
4381 if (template->type == CKA_VALUE_LEN) {
4384 template));
4388 template));
4391 template->ulValueLen = (CK_ULONG)-1;
4404 rv = soft_get_common_key_attrs(object_p, template);
4406 rv = soft_get_common_attrs(object_p, template,
4423 CK_ATTRIBUTE_PTR template)
4429 switch (template->type) {
4433 template));
4437 LOCAL_BOOL_ON, template));
4443 OBJ_DOM_DSA_PRIME(object_p), template));
4447 OBJ_DOM_DH_PRIME(object_p), template));
4451 OBJ_DOM_DH942_PRIME(object_p), template));
4454 template->ulValueLen = (CK_ULONG)-1;
4462 OBJ_DOM_DSA_SUBPRIME(object_p), template));
4466 OBJ_DOM_DH942_SUBPRIME(object_p), template));
4469 template->ulValueLen = (CK_ULONG)-1;
4477 OBJ_DOM_DSA_BASE(object_p), template));
4481 OBJ_DOM_DH_BASE(object_p), template));
4485 OBJ_DOM_DH942_BASE(object_p), template));
4488 template->ulValueLen = (CK_ULONG)-1;
4496 OBJ_DOM_DSA_PRIME_BITS(object_p), template));
4500 OBJ_DOM_DH_PRIME_BITS(object_p), template));
4504 OBJ_DOM_DH942_PRIME_BITS(object_p), template));
4507 template->ulValueLen = (CK_ULONG)-1;
4515 OBJ_DOM_DH942_SUBPRIME_BITS(object_p), template));
4518 template->ulValueLen = (CK_ULONG)-1;
4526 rv = soft_get_common_attrs(object_p, template,
4541 CK_ATTRIBUTE_PTR template)
4546 switch (template->type) {
4550 X509_CERT_SUBJECT(object_p), template));
4556 X509_CERT_VALUE(object_p), template));
4559 X509_ATTR_CERT_VALUE(object_p), template));
4565 X509_ATTR_CERT_OWNER(object_p), template));
4571 return (get_cert_attr_from_object(&src, template));
4574 TRUSTED_BOOL_ON, template));
4581 template));
4583 return (soft_get_common_attrs(object_p, template,
4596 CK_ATTRIBUTE_PTR template, boolean_t copy)
4600 switch (template->type) {
4620 template->type, template));
4627 template->type, template));
4633 template->type, template));
4636 object_p, template, copy));
4653 soft_get_attribute(soft_object_t *object_p, CK_ATTRIBUTE_PTR template)
4661 rv = soft_get_public_key_attribute(object_p, template);
4665 rv = soft_get_private_key_attribute(object_p, template);
4669 rv = soft_get_secret_key_attribute(object_p, template);
4673 rv = soft_get_domain_parameters_attribute(object_p, template);
4677 rv = soft_get_certificate_attribute(object_p, template);
4686 template->ulValueLen = (CK_ULONG)-1;
4696 CK_ATTRIBUTE_PTR template, boolean_t copy)
4701 switch (template->type) {
4705 if ((*(CK_BBOOL *)template->pValue) == B_TRUE) {
4718 if ((*(CK_BBOOL *)template->pValue) == B_TRUE) {
4744 if ((*(CK_BBOOL *)template->pValue) == TRUE)
4772 CK_ATTRIBUTE_PTR template, boolean_t copy)
4775 switch (template->type) {
4783 CKA_LABEL, template));
4787 CKA_ID, template));
4791 CKA_START_DATE, template));
4795 CKA_END_DATE, template));
4799 DERIVE_BOOL_ON, template));
4808 template, copy));
4823 CK_ATTRIBUTE_PTR template, boolean_t copy)
4827 switch (template->type) {
4831 CKA_SUBJECT, template));
4835 ENCRYPT_BOOL_ON, template));
4839 VERIFY_BOOL_ON, template));
4843 VERIFY_RECOVER_BOOL_ON, template));
4847 WRAP_BOOL_ON, template));
4876 template, copy));
4895 CK_ATTRIBUTE_PTR template, boolean_t copy)
4899 switch (template->type) {
4903 CKA_SUBJECT, template));
4909 if (((*(CK_BBOOL *)template->pValue) == B_FALSE) &&
4914 if (*(CK_BBOOL *)template->pValue)
4920 DECRYPT_BOOL_ON, template));
4924 SIGN_BOOL_ON, template));
4928 SIGN_RECOVER_BOOL_ON, template));
4932 UNWRAP_BOOL_ON, template));
4938 if ((*(CK_BBOOL *)template->pValue) &&
4943 if ((*(CK_BBOOL *)template->pValue) == B_FALSE)
4985 template, copy));
5003 CK_ATTRIBUTE_PTR template, boolean_t copy)
5007 switch (template->type) {
5013 if (((*(CK_BBOOL *)template->pValue) == B_FALSE) &&
5018 if (*(CK_BBOOL *)template->pValue)
5024 ENCRYPT_BOOL_ON, template));
5028 DECRYPT_BOOL_ON, template));
5032 SIGN_BOOL_ON, template));
5036 VERIFY_BOOL_ON, template));
5040 WRAP_BOOL_ON, template));
5044 UNWRAP_BOOL_ON, template));
5050 if ((*(CK_BBOOL *)template->pValue) &&
5055 if ((*(CK_BBOOL *)template->pValue) == B_FALSE)
5075 template, copy));
5098 soft_set_attribute(soft_object_t *object_p, CK_ATTRIBUTE_PTR template,
5108 rv = soft_set_public_key_attribute(object_p, template, copy);
5112 rv = soft_set_private_key_attribute(object_p, template, copy);
5116 rv = soft_set_secret_key_attribute(object_p, template, copy);
5120 switch (template->type) {
5128 CKA_LABEL, template));
5133 rv = soft_set_certificate_attribute(object_p, template, copy);
5138 * If the template specifies a value of an attribute
6352 * attributes on template .
6355 * of these attributes are in the template, make a list of classes
6485 CK_ULONG num_pclasses, CK_ATTRIBUTE *template, CK_ULONG num_attr)
6517 tmpl_attr = &(template[i]);
7051 * this case, it only matches the template's
7052 * attribute if the template's value length