summary refs log tree commit diff
path: root/crypto
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-07-31 15:53:27 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-07-31 15:53:27 +0700
commit2651fec7d98b5cadda4a0dde84ace5cc36ef0f7b (patch)
tree71eb282028505e680e434fa6ed7bbf424c904dc1 /crypto
parentAdd API TODOs (diff)
downloadBouncyCastle.NET-ed25519-2651fec7d98b5cadda4a0dde84ace5cc36ef0f7b.tar.xz
Fix conditional
Diffstat (limited to 'crypto')
-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)