Lines Matching refs:template
56 * Create an template to improve HMAC performance later.
118 CK_ATTRIBUTE template[6];
138 template[0].type = CKA_CLASS;
139 template[0].pValue = &class;
140 template[0].ulValueLen = sizeof (class);
141 template[1].type = CKA_KEY_TYPE;
142 template[1].pValue = &keyType;
143 template[1].ulValueLen = sizeof (keyType);
144 template[2].type = CKA_TOKEN;
145 template[2].pValue = &false;
146 template[2].ulValueLen = sizeof (false);
147 template[3].type = CKA_ENCRYPT;
148 template[3].pValue = &true;
149 template[3].ulValueLen = sizeof (true);
150 template[4].type = CKA_DECRYPT;
151 template[4].pValue = &true;
152 template[4].ulValueLen = sizeof (true);
153 template[5].type = CKA_VALUE;
154 template[5].pValue = key->contents;
155 template[5].ulValueLen = key->length;
158 if ((rv = C_CreateObject(hSession, template,
159 sizeof(template)/sizeof(CK_ATTRIBUTE),