Exemplo n.º 1
0
        public DiffieHellmanGroupSha1(DiffieHellman algorithm)
        {
            Contract.Requires(algorithm != null);

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

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