Lines Matching refs:template

35 /* Size of the template for creating key used for wrap/unwrap */
745 * first, get the master template of all the attributes
872 * The same template will be used for all wrapping/unwrapping keys all
885 CK_ATTRIBUTE template[WRAP_KEY_TEMPLATE_SIZE];
889 template[i].type = CKA_CLASS;
890 template[i].pValue = &objclass;
891 template[i].ulValueLen = sizeof (objclass);
895 template[i].type = CKA_KEY_TYPE;
896 template[i].pValue = &keytype;
897 template[i].ulValueLen = sizeof (keytype);
900 template[i].type = CKA_TOKEN;
901 template[i].pValue = &falsevalue;
902 template[i].ulValueLen = sizeof (falsevalue);
907 template[i].type = CKA_VALUE;
908 template[i].pValue = key_data;
909 template[i].ulValueLen = key_len;
912 template[i].type = CKA_WRAP;
913 template[i].pValue = &truevalue;
914 template[i].ulValueLen = sizeof (truevalue);
917 template[i].type = CKA_UNWRAP;
918 template[i].pValue = &truevalue;
919 template[i].ulValueLen = sizeof (truevalue);
923 template[i].type = CKA_MODULUS;
924 template[i].pValue = Modulus;
925 template[i].ulValueLen = sizeof (Modulus);
930 template[i].type = CKA_PUBLIC_EXPONENT;
931 template[i].pValue = PubExpo;
932 template[i].ulValueLen = sizeof (PubExpo);
935 template[i].type = CKA_WRAP;
936 template[i].pValue = &truevalue;
937 template[i].ulValueLen = sizeof (truevalue);
941 template[i].type = CKA_PRIVATE_EXPONENT;
942 template[i].pValue = PriExpo;
943 template[i].ulValueLen = sizeof (PriExpo);
946 template[i].type = CKA_UNWRAP;
947 template[i].pValue = &truevalue;
948 template[i].ulValueLen = sizeof (truevalue);
953 slot_session->hSession, template, i + 1, hObject);
961 * If the template required for creating the clone doesn't exist,
1269 * get the object class and key type for unwrap template
1602 * Create a clone template for the specified object.
1853 * If this call is for an object creation, look inside the template
1907 * If the template value for CKA_PRIVATE, CKA_SENSITIVE and/or CKA_TOKEN are
1967 * This function sets the CKA_TOKEN flag on a given object template depending
1971 * no keystore, then set the template to token = false; otherwise it's true.