summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--crypto/src/x509/AttributeCertificateHolder.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/crypto/src/x509/AttributeCertificateHolder.cs b/crypto/src/x509/AttributeCertificateHolder.cs
index 1df5b1a56..94ccf3232 100644
--- a/crypto/src/x509/AttributeCertificateHolder.cs
+++ b/crypto/src/x509/AttributeCertificateHolder.cs
@@ -251,9 +251,8 @@ namespace Org.BouncyCastle.X509
 					// TODO Default handler?
 					}
 
-					// TODO Shouldn't this be the other way around?
-					if (!Arrays.AreEqual(GetObjectDigest(), DigestUtilities.DoFinal(md)))
-						return false;
+					if (Arrays.AreEqual(GetObjectDigest(), DigestUtilities.DoFinal(md)))
+						return true;
 				}
 			}
 			catch (Exception)