diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-01-25 18:55:36 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-01-25 18:55:36 +0700 |
commit | 427646f20a1f0cde2e3d7312f7e116480b0bc777 (patch) | |
tree | ca3090694d0a1155ff713ca3904d17549741fd99 /crypto/src/cms/OriginatorId.cs | |
parent | Add ISAP to the master branch (diff) | |
download | BouncyCastle.NET-ed25519-427646f20a1f0cde2e3d7312f7e116480b0bc777.tar.xz |
Cleanup Platform.Equals
Diffstat (limited to 'crypto/src/cms/OriginatorId.cs')
-rw-r--r-- | crypto/src/cms/OriginatorId.cs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crypto/src/cms/OriginatorId.cs b/crypto/src/cms/OriginatorId.cs index 5a3b7374d..6ae64c503 100644 --- a/crypto/src/cms/OriginatorId.cs +++ b/crypto/src/cms/OriginatorId.cs @@ -1,5 +1,3 @@ -using System; - using Org.BouncyCastle.Asn1.X509; using Org.BouncyCastle.Math; using Org.BouncyCastle.Utilities; @@ -44,7 +42,7 @@ namespace Org.BouncyCastle.Cms return false; return Arrays.AreEqual(SubjectKeyIdentifier, id.SubjectKeyIdentifier) - && Platform.Equals(SerialNumber, id.SerialNumber) + && Objects.Equals(SerialNumber, id.SerialNumber) && IssuersMatch(Issuer, id.Issuer); } } |