summary refs log tree commit diff
path: root/crypto/src/tsp
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-07-26 13:47:16 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-07-26 13:47:16 +0700
commit8ce8a4d09d8e6cfb29e8ecbb96a354a3eed9c321 (patch)
treec367281f28b5a082f32f1e0d77d6a22d6b7cd779 /crypto/src/tsp
parentCreate new API for algorithm finders (diff)
downloadBouncyCastle.NET-ed25519-8ce8a4d09d8e6cfb29e8ecbb96a354a3eed9c321.tar.xz
Refactor CMS helpers
Diffstat (limited to 'crypto/src/tsp')
-rw-r--r--crypto/src/tsp/TimeStampTokenGenerator.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/src/tsp/TimeStampTokenGenerator.cs b/crypto/src/tsp/TimeStampTokenGenerator.cs
index c2aae37e2..986ae33dd 100644
--- a/crypto/src/tsp/TimeStampTokenGenerator.cs
+++ b/crypto/src/tsp/TimeStampTokenGenerator.cs
@@ -187,8 +187,9 @@ namespace Org.BouncyCastle.Tsp
             //    throw new TspException("Can't find a SHA-1 implementation.", e);
             //}
 
-            string digestName = CmsSignedHelper.Instance.GetDigestAlgName(digestOID);
-            string signatureName = digestName + "with" + CmsSignedHelper.Instance.GetEncryptionAlgName(CmsSignedHelper.Instance.GetEncOid(key, digestOID));
+            string digestName = CmsSignedHelper.GetDigestAlgName(digestOID);
+            string signatureName = digestName + "with"
+                + CmsSignedHelper.GetEncryptionAlgName(CmsSignedHelper.GetEncOid(key, digestOID));
 
             Asn1SignatureFactory sigfact = new Asn1SignatureFactory(signatureName, key);
             return new SignerInfoGeneratorBuilder()