summary refs log tree commit diff
path: root/crypto/src/cms/CounterSignatureDigestCalculator.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/cms/CounterSignatureDigestCalculator.cs')
-rw-r--r--crypto/src/cms/CounterSignatureDigestCalculator.cs28
1 files changed, 0 insertions, 28 deletions
diff --git a/crypto/src/cms/CounterSignatureDigestCalculator.cs b/crypto/src/cms/CounterSignatureDigestCalculator.cs
deleted file mode 100644
index 6f8bf65a2..000000000
--- a/crypto/src/cms/CounterSignatureDigestCalculator.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-using System;
-
-using Org.BouncyCastle.Crypto;
-using Org.BouncyCastle.Security;
-
-namespace Org.BouncyCastle.Cms
-{
-	internal class CounterSignatureDigestCalculator
-		: IDigestCalculator
-	{
-		private readonly string alg;
-		private readonly byte[] data;
-
-		internal CounterSignatureDigestCalculator(
-			string	alg,
-			byte[]	data)
-		{
-			this.alg = alg;
-			this.data = data;
-		}
-
-		public byte[] GetDigest()
-		{
-			IDigest digest = CmsSignedHelper.Instance.GetDigestInstance(alg);
-			return DigestUtilities.DoFinal(digest, data);
-		}
-	}
-}