Lines Matching refs:template
885 CK_ATTRIBUTE template[WRAP_KEY_TEMPLATE_SIZE]; in create_wrap_unwrap_key() local
889 template[i].type = CKA_CLASS; in create_wrap_unwrap_key()
890 template[i].pValue = &objclass; in create_wrap_unwrap_key()
891 template[i].ulValueLen = sizeof (objclass); in create_wrap_unwrap_key()
895 template[i].type = CKA_KEY_TYPE; in create_wrap_unwrap_key()
896 template[i].pValue = &keytype; in create_wrap_unwrap_key()
897 template[i].ulValueLen = sizeof (keytype); in create_wrap_unwrap_key()
900 template[i].type = CKA_TOKEN; in create_wrap_unwrap_key()
901 template[i].pValue = &falsevalue; in create_wrap_unwrap_key()
902 template[i].ulValueLen = sizeof (falsevalue); in create_wrap_unwrap_key()
907 template[i].type = CKA_VALUE; in create_wrap_unwrap_key()
908 template[i].pValue = key_data; in create_wrap_unwrap_key()
909 template[i].ulValueLen = key_len; in create_wrap_unwrap_key()
912 template[i].type = CKA_WRAP; in create_wrap_unwrap_key()
913 template[i].pValue = &truevalue; in create_wrap_unwrap_key()
914 template[i].ulValueLen = sizeof (truevalue); in create_wrap_unwrap_key()
917 template[i].type = CKA_UNWRAP; in create_wrap_unwrap_key()
918 template[i].pValue = &truevalue; in create_wrap_unwrap_key()
919 template[i].ulValueLen = sizeof (truevalue); in create_wrap_unwrap_key()
923 template[i].type = CKA_MODULUS; in create_wrap_unwrap_key()
924 template[i].pValue = Modulus; in create_wrap_unwrap_key()
925 template[i].ulValueLen = sizeof (Modulus); in create_wrap_unwrap_key()
930 template[i].type = CKA_PUBLIC_EXPONENT; in create_wrap_unwrap_key()
931 template[i].pValue = PubExpo; in create_wrap_unwrap_key()
932 template[i].ulValueLen = sizeof (PubExpo); in create_wrap_unwrap_key()
935 template[i].type = CKA_WRAP; in create_wrap_unwrap_key()
936 template[i].pValue = &truevalue; in create_wrap_unwrap_key()
937 template[i].ulValueLen = sizeof (truevalue); in create_wrap_unwrap_key()
941 template[i].type = CKA_PRIVATE_EXPONENT; in create_wrap_unwrap_key()
942 template[i].pValue = PriExpo; in create_wrap_unwrap_key()
943 template[i].ulValueLen = sizeof (PriExpo); in create_wrap_unwrap_key()
946 template[i].type = CKA_UNWRAP; in create_wrap_unwrap_key()
947 template[i].pValue = &truevalue; in create_wrap_unwrap_key()
948 template[i].ulValueLen = sizeof (truevalue); in create_wrap_unwrap_key()
953 slot_session->hSession, template, i + 1, hObject); in create_wrap_unwrap_key()