Lines Matching refs:template
32 CK_ATTRIBUTE template[5];
40 template[0].type = CKA_CLASS;
41 template[0].pValue = &class;
42 template[0].ulValueLen = sizeof (class);
43 template[1].type = CKA_KEY_TYPE;
44 template[1].pValue = &keyType;
45 template[1].ulValueLen = sizeof (keyType);
46 template[2].type = CKA_TOKEN;
47 template[2].pValue = &false;
48 template[2].ulValueLen = sizeof (false);
49 template[3].type = CKA_ENCRYPT;
50 template[3].pValue = &true;
51 template[3].ulValueLen = sizeof (true);
52 template[4].type = CKA_VALUE;
53 template[4].pValue = key->contents;
54 template[4].ulValueLen = key->length;
57 if ((rv = C_CreateObject(session, template,
58 sizeof(template)/sizeof(CK_ATTRIBUTE),