示例#1
0
        public DiffieHellmanGroupSha1(DiffieHellman algorithm)
        {
            Contract.Requires(algorithm != null);

            this.exchangeAlgorithm = algorithm;
            this.HashAlgorithm     = new SHA1CryptoServiceProvider();
        }
        public DiffieHellmanGroupSha1(DiffieHellman algorithm)
        {
            Contract.Requires(algorithm != null);

            _exchangeAlgorithm = algorithm;
            _hashAlgorithm = new SHA1CryptoServiceProvider();
        }