summary refs log tree commit diff
path: root/crypto/src/cmp/CmpUtilities.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/cmp/CmpUtilities.cs')
-rw-r--r--crypto/src/cmp/CmpUtilities.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/cmp/CmpUtilities.cs b/crypto/src/cmp/CmpUtilities.cs
index d4e2c89bf..b1012d5b7 100644
--- a/crypto/src/cmp/CmpUtilities.cs
+++ b/crypto/src/cmp/CmpUtilities.cs
@@ -12,7 +12,7 @@ namespace Org.BouncyCastle.Cmp
             var digestAlgorithm = digestAlgorithmFinder.Find(signatureAlgorithm)
                 ?? throw new CmpException("cannot find digest algorithm from signature algorithm");
 
-            return X509.X509Utilities.CalculateDigest(digestAlgorithm.Algorithm, asn1Encodable);
+            return X509.X509Utilities.CalculateDigest(digestAlgorithm, asn1Encodable);
         }
     }
 }