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; }
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; }