summary refs log tree commit diff
path: root/crypto/src/asn1/DerObjectIdentifier.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2024-03-08 19:09:32 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2024-03-08 19:09:32 +0700
commite915a3a8e4c11a54210d8df91e3c2386f968376b (patch)
tree77cf3bb8f561a93ade91365ed041b93bbefa01e3 /crypto/src/asn1/DerObjectIdentifier.cs
parentRefactoring (diff)
downloadBouncyCastle.NET-ed25519-e915a3a8e4c11a54210d8df91e3c2386f968376b.tar.xz
Add Asn1RelativeOid cache
Diffstat (limited to 'crypto/src/asn1/DerObjectIdentifier.cs')
-rw-r--r--crypto/src/asn1/DerObjectIdentifier.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/asn1/DerObjectIdentifier.cs b/crypto/src/asn1/DerObjectIdentifier.cs
index 04792cbdd..51acd232c 100644
--- a/crypto/src/asn1/DerObjectIdentifier.cs
+++ b/crypto/src/asn1/DerObjectIdentifier.cs
@@ -197,7 +197,7 @@ namespace Org.BouncyCastle.Asn1
 
         internal static DerObjectIdentifier CreatePrimitive(byte[] contents, bool clone)
         {
-            int index = Arrays.GetHashCode(contents);
+            uint index = (uint)Arrays.GetHashCode(contents);
 
             index ^= index >> 20;
             index ^= index >> 10;