Exemple #1
0
 public static void Create()
 {
     INIFile.Write("settings", "did", "0000000000000000");
     INIFile.Write("settings", "firmver", "0.0.0-0");
     INIFile.Write("settings", "eid", "lp1");
     INIFile.Write("settings", "cert", Directory.GetCurrentDirectory() + "/nx_tls_client_cert.pfx");
 }
Exemple #2
0
        private void saveBut_Click(object sender, EventArgs e)
        {
            INIFile.Write("settings", "did", didText.Text);
            INIFile.Write("settings", "firmver", firmText.Text);
            INIFile.Write("settings", "eid", eidText.Text);
            INIFile.Write("settings", "cert", certText.Text);

            Close();
        }
Exemple #3
0
 public static void Create()
 {
     for (int i = 0; i < MAXKEYS; i++)
     {
         INIFile.Write("keys", "MK" + i.ToString("D2"), string.Empty);
     }
     INIFile.Write("keys", "keyseed", string.Empty);
     INIFile.Write("keys", "kekseed", string.Empty);
     INIFile.Write("keys", "akaeksrc", string.Empty);
     INIFile.Write("keys", "okaeksrc", string.Empty);
     INIFile.Write("keys", "skaeksrc", string.Empty);
     INIFile.Write("keys", "headkey", string.Empty);
 }
Exemple #4
0
        private void saveKeysBut_Click(object sender, EventArgs e)
        {
            int i = 0;

            foreach (var txt in mkTxts)
            {
                INIFile.Write("keys", "MK" + i.ToString("D2"), txt.Text);
                i++;
            }
            INIFile.Write("keys", "keyseed", keySrcTxt.Text);
            INIFile.Write("keys", "kekseed", kekSrcTxt.Text);
            INIFile.Write("keys", "akaeksrc", akaekTxt.Text);
            INIFile.Write("keys", "okaeksrc", okaekTxt.Text);
            INIFile.Write("keys", "skaeksrc", skaekTxt.Text);
            INIFile.Write("keys", "headkey", headKeyText.Text);
            Close();
        }