private void button6_Click(object sender, EventArgs e) { /* decrypt the key using TGS key and get CS key */ f.printProcess("\n\nDecrypt Key CS using Key TGS (Scenario 13)", ncolor); textBox5.Text = secCol.getCharString(secCol.decryption(p.getCSKey(), tabCol, p.getTGSKey(), f)); p.setCSKey(secCol.getCharString(secCol.decryption(p.getCSKey(), tabCol, p.getTGSKey(), f))); button7.Enabled = true; button6.Enabled = false; mainPage.setFlag(13); }
private void button5_Click(object sender, EventArgs e) { /* Send the encrypted Key to Client * Send the key CS to Service Server (RSA SERVICE SERVER) * * 1. Get Encrypted key * 2, Set to TGS SERVER * 3. Set to Service Server * */ f.printProcess("\n\nSend Key CS to RSA server and Client (Scenario 12)", ncolor); sServer.setCSkey(textBox11.Text.ToString());//Send to RSA server p.setCSKey(textBox5.Text.ToString()); button5.Enabled = false; mainPage.setFlag(12); f.setFlag(4); }