Exemple #1
0
        public SignedStream(Stream inner, ISignatureCipher signAlgo, IDigest hashAlgo)
        {
            SecurityAssert.NotNull(inner);
            SecurityAssert.SAssert(inner.CanWrite);
            
            SecurityAssert.NotNull(signAlgo);
            SecurityAssert.NotNull(hashAlgo);

            InnerStream = inner;
            SignatureAlgorithm = signAlgo;
            HashAlgorithm = hashAlgo;
        }
Exemple #2
0
        public SignedStream(Stream inner, ISignatureCipher signAlgo, IDigest hashAlgo)
        {
            SecurityAssert.NotNull(inner);
            SecurityAssert.Assert(inner.CanWrite);

            InnerStream = inner;

            SecurityAssert.NotNull(signAlgo);
            SecurityAssert.NotNull(hashAlgo);

            SignatureAlgorithm = signAlgo;
            HashAlgorithm      = hashAlgo;
        }