Lines Matching refs:template
1272 CK_ATTRIBUTE template[] = {
1278 template[0].pValue = &class;
1279 template[1].pValue = &keyType;
1280 template[2].pValue = &true;
1286 template[3].ulValueLen = 24;
1288 template[3].ulValueLen = 8;
1290 template[3].pValue = keybuf;
1294 template[3].pValue = enckey;
1314 rv = C_CreateObject(enc_context->hSession, template,
1315 sizeof (template)/sizeof (template[0]), &enc_context->hKey);
1353 template[2].type = CKA_DECRYPT;
1362 template[3].pValue = deckey;
1365 rv = C_CreateObject(dec_context->hSession, template,
1366 sizeof (template)/sizeof (template[0]), &dec_context->hKey);