internal static DerObjectIdentifier FromOctetString(byte[] enc)
    {
        int hashCode = Arrays.GetHashCode(enc);
        int num      = hashCode & 0x3FF;

        lock (cache)
        {
            DerObjectIdentifier derObjectIdentifier = cache[num];
            if (derObjectIdentifier != null && Arrays.AreEqual(enc, derObjectIdentifier.GetBody()))
            {
                return(derObjectIdentifier);
            }
            return(cache[num] = new DerObjectIdentifier(enc));
        }
    }