Lines Matching refs:pTemplate
64 soft_gen_keyobject(CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, in soft_gen_keyobject() argument
83 rv = soft_build_key(pTemplate, ulCount, new_objp, class, key_type, in soft_gen_keyobject()
153 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey) in soft_genkey() argument
204 if (pTemplate[i].type == CKA_KEY_TYPE && in soft_genkey()
205 pTemplate[i].pValue != NULL) { in soft_genkey()
206 key_type = *((CK_KEY_TYPE*)pTemplate[i].pValue); in soft_genkey()
225 if (pTemplate[i].type == CKA_KEY_TYPE && in soft_genkey()
226 pTemplate[i].pValue != NULL) { in soft_genkey()
227 key_type = *((CK_KEY_TYPE*)pTemplate[i].pValue); in soft_genkey()
230 if (pTemplate[i].type == CKA_VALUE_LEN && in soft_genkey()
231 pTemplate[i].pValue != NULL) { in soft_genkey()
232 keylen = *((CK_ULONG*)pTemplate[i].pValue); in soft_genkey()
259 rv = soft_gen_keyobject(pTemplate, ulCount, &secret_key, session_p, in soft_genkey()
828 soft_object_t *basekey_p, CK_ATTRIBUTE_PTR pTemplate, in soft_derivekey() argument
849 rv = soft_gen_keyobject(pTemplate, ulAttributeCount, in soft_derivekey()
881 rv = soft_gen_keyobject(pTemplate, ulAttributeCount, in soft_derivekey()
949 rv = soft_gen_keyobject(pTemplate, ulAttributeCount, in soft_derivekey()
1040 basekey_p, pTemplate, ulAttributeCount, phKey)); in soft_derivekey()
1046 basekey_p, pTemplate, ulAttributeCount)); in soft_derivekey()
1055 if (pTemplate != NULL) in soft_derivekey()
1554 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulAttributeCount) in soft_unwrap_secret_len_check() argument
1576 if (pTemplate[i].type == CKA_VALUE_LEN && in soft_unwrap_secret_len_check()
1577 pTemplate[i].pValue != NULL) { in soft_unwrap_secret_len_check()
1628 CK_ULONG ulWrappedKeyLen, CK_ATTRIBUTE_PTR pTemplate, in soft_unwrapkey() argument
1641 if (pTemplate != NULL && ulAttributeCount != 0) { in soft_unwrapkey()
1643 if (pTemplate[i].type == CKA_CLASS) { in soft_unwrapkey()
1645 *((CK_OBJECT_CLASS *)pTemplate[i].pValue); in soft_unwrapkey()
1683 rv = soft_gen_keyobject(pTemplate, ulAttributeCount, in soft_unwrapkey()
1737 pMechanism->mechanism, pTemplate, ulAttributeCount); in soft_unwrapkey()