Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for tagNo (0.01 sec)

  1. src/main/java/jcifs/pac/ASN1Util.java

                }
    
                tagNo = b & 0x7f;
    
                // X.690-0207 8.1.2.4.2
                // "c) bits 7 to 1 of the first subsequent octet shall not all be zero."
                if (0 == tagNo) {
                    throw new IOException("corrupted stream - invalid high tag number found");
                }
    
                while ((b & 0x80) != 0) {
                    if (tagNo >>> 24 != 0) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/pac/ASN1UtilTest.java

            int tagNo = ASN1Util.readTagNumber(s, 0x05);
            assertEquals(5, tagNo);
        }
    
        @Test
        void testReadTagNumber_HighTag() throws IOException {
            // High tag number (31)
            InputStream s = new ByteArrayInputStream(new byte[] { 0x1F });
            int tagNo = ASN1Util.readTagNumber(s, 0x1F);
            assertEquals(31, tagNo);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.4K bytes
    - Viewed (0)
Back to top