public HybridRsaAesConvertTextDialog(ActionType actionType, Cube.Secure.WinForms.Logic.RSA rsaCryptoProvider, AES aesCryptoProvider) { InitializeComponent(); this.actionType = actionType; this.rsaCryptoProvider = rsaCryptoProvider; this.aesCryptoProvider = aesCryptoProvider; this.actionBtn.Text = this.actionType == ActionType.Encrypt ? "Encrypt" : "Decrypt"; }
public SignFileDialog(string filePath, Cube.Secure.WinForms.Logic.RSA rsa) { InitializeComponent(); if (!string.IsNullOrEmpty(filePath)) { this.CalculateHashes(filePath); } this.rsa = rsa; }
public VerifyFileDialog(string filePath, Cube.Secure.WinForms.Logic.RSA rsa) { InitializeComponent(); if (!string.IsNullOrEmpty(filePath)) { this.CalculateHashes(filePath); var defaultSignatureFileName = this.GetSignatureDefaultFileName(filePath); if (File.Exists(defaultSignatureFileName)) { this.signatureTextBox.Text = defaultSignatureFileName; } } this.rsa = rsa; }