summary refs log tree commit diff
path: root/crypto/src/cms/BaseDigestCalculator.cs
blob: 3dcbca75383ca576fac9a3feb3df7494369a79a9 (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
using System;

using Org.BouncyCastle.Utilities;

namespace Org.BouncyCastle.Cms
{
	internal class BaseDigestCalculator
		: IDigestCalculator
	{
		private readonly byte[] digest;

		internal BaseDigestCalculator(
			byte[] digest)
		{
			this.digest = digest;
		}

		public byte[] GetDigest()
		{
			return Arrays.Clone(digest);
		}
	}
}