diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2024-03-08 19:09:32 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2024-03-08 19:09:32 +0700 |
commit | e915a3a8e4c11a54210d8df91e3c2386f968376b (patch) | |
tree | 77cf3bb8f561a93ade91365ed041b93bbefa01e3 /crypto/src/asn1/DerObjectIdentifier.cs | |
parent | Refactoring (diff) | |
download | BouncyCastle.NET-ed25519-e915a3a8e4c11a54210d8df91e3c2386f968376b.tar.xz |
Add Asn1RelativeOid cache
Diffstat (limited to 'crypto/src/asn1/DerObjectIdentifier.cs')
-rw-r--r-- | crypto/src/asn1/DerObjectIdentifier.cs | 2 |
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; |