diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-07-31 15:53:27 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-07-31 15:53:27 +0700 |
commit | 2651fec7d98b5cadda4a0dde84ace5cc36ef0f7b (patch) | |
tree | 71eb282028505e680e434fa6ed7bbf424c904dc1 | |
parent | Add API TODOs (diff) | |
download | BouncyCastle.NET-ed25519-2651fec7d98b5cadda4a0dde84ace5cc36ef0f7b.tar.xz |
Fix conditional
-rw-r--r-- | crypto/src/x509/AttributeCertificateHolder.cs | 5 |
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) |