blob: 103b45cac02c5f8046e3bdadd61aaf66a7598a7f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
using System;
using Org.BouncyCastle.Crypto;
using Org.BouncyCastle.Utilities.IO;
namespace Org.BouncyCastle.Cms
{
internal class DigOutputStream
: BaseOutputStream
{
private readonly IDigest dig;
internal DigOutputStream(IDigest dig)
{
this.dig = dig;
}
public override void WriteByte(byte b)
{
dig.Update(b);
}
public override void Write(byte[] b, int off, int len)
{
dig.BlockUpdate(b, off, len);
}
}
}
|