summary refs log tree commit diff
path: root/crypto/src/asn1
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-06-29 14:48:28 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-06-29 14:48:28 +0700
commitdfe15d07f82efdaa4cbd68b4180304b6e479c592 (patch)
tree227e73df84e77ac4b96ebfbe5cf37027aa04156c /crypto/src/asn1
parentCleanup NewLine handling (diff)
downloadBouncyCastle.NET-ed25519-dfe15d07f82efdaa4cbd68b4180304b6e479c592.tar.xz
Add Objects class
Diffstat (limited to 'crypto/src/asn1')
-rw-r--r--crypto/src/asn1/DERExternal.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/crypto/src/asn1/DERExternal.cs b/crypto/src/asn1/DERExternal.cs
index 1806b5296..9fba95165 100644
--- a/crypto/src/asn1/DERExternal.cs
+++ b/crypto/src/asn1/DERExternal.cs
@@ -156,9 +156,9 @@ namespace Org.BouncyCastle.Asn1
 
         protected override int Asn1GetHashCode()
 		{
-            return Platform.GetHashCode(this.directReference)
-                ^  Platform.GetHashCode(this.indirectReference)
-                ^  Platform.GetHashCode(this.dataValueDescriptor)
+            return Objects.GetHashCode(this.directReference)
+                ^  Objects.GetHashCode(this.indirectReference)
+                ^  Objects.GetHashCode(this.dataValueDescriptor)
                 ^  this.encoding
                 ^  this.externalContent.GetHashCode();
 		}
@@ -167,9 +167,9 @@ namespace Org.BouncyCastle.Asn1
 		{
 			DerExternal that = asn1Object as DerExternal;
             return null != that
-                && Platform.Equals(this.directReference, that.directReference)
-                && Platform.Equals(this.indirectReference, that.indirectReference)
-                && Platform.Equals(this.dataValueDescriptor, that.dataValueDescriptor)
+                && Equals(this.directReference, that.directReference)
+                && Equals(this.indirectReference, that.indirectReference)
+                && Equals(this.dataValueDescriptor, that.dataValueDescriptor)
                 && this.encoding == that.encoding
 				&& this.externalContent.Equals(that.externalContent);
 		}