public override byte[] DecryptData(byte[] p_data) { if (NeedToGenerateKey()) { CreateKeyPair(KeySizeValue); } ElGamalDecryptor x_enc = new ElGamalDecryptor(o_key_struct); return(x_enc.ProcessData(p_data)); }
public override byte[] DecryptData(byte[] p_data) { if (NeedToGenerateKey()) { // we need to create a new key before we can export CreateKeyPair(KeySizeValue); } // encrypt the data ElGamalDecryptor x_enc = new ElGamalDecryptor(o_key_struct); return(x_enc.ProcessData(p_data)); }