Lines Matching refs:template
889 CK_ATTRIBUTE template[WRAP_KEY_TEMPLATE_SIZE]; in create_wrap_unwrap_key() local
893 template[i].type = CKA_CLASS; in create_wrap_unwrap_key()
894 template[i].pValue = &objclass; in create_wrap_unwrap_key()
895 template[i].ulValueLen = sizeof (objclass); in create_wrap_unwrap_key()
899 template[i].type = CKA_KEY_TYPE; in create_wrap_unwrap_key()
900 template[i].pValue = &keytype; in create_wrap_unwrap_key()
901 template[i].ulValueLen = sizeof (keytype); in create_wrap_unwrap_key()
904 template[i].type = CKA_TOKEN; in create_wrap_unwrap_key()
905 template[i].pValue = &falsevalue; in create_wrap_unwrap_key()
906 template[i].ulValueLen = sizeof (falsevalue); in create_wrap_unwrap_key()
911 template[i].type = CKA_VALUE; in create_wrap_unwrap_key()
912 template[i].pValue = key_data; in create_wrap_unwrap_key()
913 template[i].ulValueLen = key_len; in create_wrap_unwrap_key()
916 template[i].type = CKA_WRAP; in create_wrap_unwrap_key()
917 template[i].pValue = &truevalue; in create_wrap_unwrap_key()
918 template[i].ulValueLen = sizeof (truevalue); in create_wrap_unwrap_key()
921 template[i].type = CKA_UNWRAP; in create_wrap_unwrap_key()
922 template[i].pValue = &truevalue; in create_wrap_unwrap_key()
923 template[i].ulValueLen = sizeof (truevalue); in create_wrap_unwrap_key()
927 template[i].type = CKA_MODULUS; in create_wrap_unwrap_key()
928 template[i].pValue = Modulus; in create_wrap_unwrap_key()
929 template[i].ulValueLen = sizeof (Modulus); in create_wrap_unwrap_key()
934 template[i].type = CKA_PUBLIC_EXPONENT; in create_wrap_unwrap_key()
935 template[i].pValue = PubExpo; in create_wrap_unwrap_key()
936 template[i].ulValueLen = sizeof (PubExpo); in create_wrap_unwrap_key()
939 template[i].type = CKA_WRAP; in create_wrap_unwrap_key()
940 template[i].pValue = &truevalue; in create_wrap_unwrap_key()
941 template[i].ulValueLen = sizeof (truevalue); in create_wrap_unwrap_key()
945 template[i].type = CKA_PRIVATE_EXPONENT; in create_wrap_unwrap_key()
946 template[i].pValue = PriExpo; in create_wrap_unwrap_key()
947 template[i].ulValueLen = sizeof (PriExpo); in create_wrap_unwrap_key()
950 template[i].type = CKA_UNWRAP; in create_wrap_unwrap_key()
951 template[i].pValue = &truevalue; in create_wrap_unwrap_key()
952 template[i].ulValueLen = sizeof (truevalue); in create_wrap_unwrap_key()
957 slot_session->hSession, template, i + 1, hObject); in create_wrap_unwrap_key()