示例#1
0
        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));
        }
示例#2
0
        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));
        }