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

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

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