diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-07-26 13:28:56 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-07-26 13:28:56 +0700 |
commit | a69de14e882795cc0a0c4d1e7910e08044318626 (patch) | |
tree | 3a5ab7703d2e7b8ece047496986234322f6b7e37 /crypto/src/cms/CMSSignedHelper.cs | |
parent | Refactoring around algorithm finders (diff) | |
download | BouncyCastle.NET-ed25519-a69de14e882795cc0a0c4d1e7910e08044318626.tar.xz |
Create new API for algorithm finders
Diffstat (limited to 'crypto/src/cms/CMSSignedHelper.cs')
-rw-r--r-- | crypto/src/cms/CMSSignedHelper.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/src/cms/CMSSignedHelper.cs b/crypto/src/cms/CMSSignedHelper.cs index b7566c409..00b16dbc7 100644 --- a/crypto/src/cms/CMSSignedHelper.cs +++ b/crypto/src/cms/CMSSignedHelper.cs @@ -14,6 +14,7 @@ using Org.BouncyCastle.Asn1.X509; using Org.BouncyCastle.Asn1.X9; using Org.BouncyCastle.Crypto; using Org.BouncyCastle.Crypto.Parameters; +using Org.BouncyCastle.Operators.Utilities; using Org.BouncyCastle.Security; using Org.BouncyCastle.Utilities.Collections; using Org.BouncyCastle.X509; @@ -205,11 +206,11 @@ namespace Org.BouncyCastle.Cms } internal AlgorithmIdentifier FixDigestAlgID(AlgorithmIdentifier algID, - DefaultDigestAlgorithmIdentifierFinder digestAlgIDFinder) + IDigestAlgorithmFinder digestAlgorithmFinder) { var parameters = algID.Parameters; if (parameters == null || DerNull.Instance.Equals(parameters)) - return digestAlgIDFinder.Find(algID.Algorithm); + return digestAlgorithmFinder.Find(algID.Algorithm); return algID; } |