Lines Matching refs:pTemplate
106 is_secret_key_template(CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulAttributeCount)
110 if (pTemplate[i].type == CKA_CLASS &&
111 *(CK_OBJECT_CLASS *)(pTemplate[i].pValue) ==
142 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulAttributeCount,
150 if (pTemplate[i].type == CKA_KEY_TYPE) {
151 get_ulong_attr_from_template(&key_type, &pTemplate[i]);
171 if (pTemplate[i].type == CKA_VALUE_LEN) {
173 &pTemplate[i]);
208 pTemplate, ulAttributeCount))
247 key_gen_by_value(CK_MECHANISM_PTR pMechanism, CK_ATTRIBUTE_PTR pTemplate,
263 rv = get_key_len_from_template(pMechanism, pTemplate, ulCount,
274 newTemplate = grow_template(pTemplate, ulCount, attr_count);
366 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey)
391 if ((pTemplate == NULL) && (ulCount != 0)) {
416 rv = key_gen_by_value(pMechanism, pTemplate, ulCount, session_p,
424 rv = process_object_attributes(pTemplate, ulCount,
1746 CK_ULONG ulWrappedKeyLen, CK_ATTRIBUTE_PTR pTemplate,
1773 if ((pTemplate == NULL) && (ulAttributeCount != 0)) {
1809 (is_secret_key_template(pTemplate, ulAttributeCount))) {
1831 newTemplate = grow_template(pTemplate, ulAttributeCount,
1874 rv = process_object_attributes(pTemplate, ulAttributeCount,
2178 derive_key_by_value(CK_MECHANISM_PTR pMechanism, CK_ATTRIBUTE_PTR pTemplate,
2199 rv = get_key_len_from_template(pMechanism, pTemplate, ulAttributeCount,
2210 has_class = attribute_in_template(CKA_CLASS, pTemplate,
2217 newTemplate = grow_template(pTemplate, ulAttributeCount, attr_count);
2324 CK_OBJECT_HANDLE hBaseKey, CK_ATTRIBUTE_PTR pTemplate,
2351 if ((pTemplate == NULL && ulAttributeCount != 0) ||
2352 (pTemplate != NULL && ulAttributeCount == 0)) {
2384 rv = derive_key_by_value(pMechanism, pTemplate,
2392 rv = process_object_attributes(pTemplate, ulAttributeCount,