Lines Matching refs:template

35 /* Size of the template for creating key used for wrap/unwrap */
752 * first, get the master template of all the attributes
879 * The same template will be used for all wrapping/unwrapping keys all
892 CK_ATTRIBUTE template[WRAP_KEY_TEMPLATE_SIZE];
896 template[i].type = CKA_CLASS;
897 template[i].pValue = &objclass;
898 template[i].ulValueLen = sizeof (objclass);
902 template[i].type = CKA_KEY_TYPE;
903 template[i].pValue = &keytype;
904 template[i].ulValueLen = sizeof (keytype);
907 template[i].type = CKA_TOKEN;
908 template[i].pValue = &falsevalue;
909 template[i].ulValueLen = sizeof (falsevalue);
914 template[i].type = CKA_VALUE;
915 template[i].pValue = key_data;
916 template[i].ulValueLen = key_len;
919 template[i].type = CKA_WRAP;
920 template[i].pValue = &truevalue;
921 template[i].ulValueLen = sizeof (truevalue);
924 template[i].type = CKA_UNWRAP;
925 template[i].pValue = &truevalue;
926 template[i].ulValueLen = sizeof (truevalue);
930 template[i].type = CKA_MODULUS;
931 template[i].pValue = Modulus;
932 template[i].ulValueLen = sizeof (Modulus);
937 template[i].type = CKA_PUBLIC_EXPONENT;
938 template[i].pValue = PubExpo;
939 template[i].ulValueLen = sizeof (PubExpo);
942 template[i].type = CKA_WRAP;
943 template[i].pValue = &truevalue;
944 template[i].ulValueLen = sizeof (truevalue);
948 template[i].type = CKA_PRIVATE_EXPONENT;
949 template[i].pValue = PriExpo;
950 template[i].ulValueLen = sizeof (PriExpo);
953 template[i].type = CKA_UNWRAP;
954 template[i].pValue = &truevalue;
955 template[i].ulValueLen = sizeof (truevalue);
960 slot_session->hSession, template, i + 1, hObject);
968 * If the template required for creating the clone doesn't exist,
1276 * get the object class and key type for unwrap template
1611 * Create a clone template for the specified object.
1862 * If this call is for an object creation, look inside the template
1916 * If the template value for CKA_PRIVATE, CKA_SENSITIVE and/or CKA_TOKEN are
1976 * This function sets the CKA_TOKEN flag on a given object template depending
1980 * no keystore, then set the template to token = false; otherwise it's true.