Exemple #1
0
        public override IKeyAgreement DiffieHellmanModp14(IExchangeKey privateKey)
        {
            if (privateKey != null)
            {
                BCryptDiffieHellman.Import(privateKey);
            }

            return(DiffieHellmanModp14());
        }
Exemple #2
0
        public override IKeyAgreement DiffieHellmanModp2(IExchangeKey privateKey)
        {
            if (privateKey != null)
            {
                return(BCryptDiffieHellman.Import(privateKey));
            }

            return(this.DiffieHellmanModp2());
        }