Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 176 for 0xa4 (0.02 sec)

  1. src/test/java/jcifs/pac/PacDataInputStreamTest.java

            // Little-endian 0x1234 -> 0x34 0x12
            byte[] data = new byte[] { 0x34, 0x12, 0x00, 0x00 };
            PacDataInputStream pdis = createInputStream(data);
            assertEquals((short) 0x1234, pdis.readShort());
        }
    
        @Test
        public void testReadInt() throws IOException {
            // Little-endian 0x12345678 -> 0x78 0x56 0x34 0x12
            byte[] data = new byte[] { 0x78, 0x56, 0x34, 0x12 };
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/ntlmssp/Type2MessageTest.java

     * Tests all constructors, parsing, and serialization functionality.
     */
    @DisplayName("Type2Message Comprehensive Tests")
    class Type2MessageTest {
    
        private static final byte[] TEST_CHALLENGE = new byte[] { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 };
        private static final String TEST_TARGET = "TEST_TARGET";
        private static final String TEST_DOMAIN = "TEST_DOMAIN";
        private static final String TEST_HOSTNAME = "TEST_HOSTNAME";
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 38.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationTest.java

            assertEquals(1 + expectedString.length + 1, used, "Expected exactly one command byte plus OEM string and NUL terminator");
            assertEquals(0x04, buffer[0] & 0xFF, "First byte must be SMB_COM_QUERY_INFORMATION type 0x04");
            // Verify that the string part ends with the null terminator
            assertArrayEquals(expectedString, subArray(buffer, 1, expectedString.length));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

            doAnswer(inv -> {
                byte[] b = inv.getArgument(0);
                int off = inv.getArgument(1);
                b[off] = 0x12;
                b[off + 1] = 0x34;
                return 2;
            }).when(raf).read(any(byte[].class), anyInt(), eq(2));
            assertEquals(0x1234, raf.readUnsignedShort());
            assertEquals((short) 0x1234, raf.readShort());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/hash/SipHashFunctionTest.java

      public void testCollisionsDueToIncorrectSignExtension() {
        byte[] col1 = new byte[] {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, (byte) 0x80};
        byte[] col2 = new byte[] {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, (byte) 0x81};
        byte[] col3 = new byte[] {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, (byte) 0xff};
    
        ImmutableSet<HashCode> hashCodes =
            ImmutableSet.of(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/SmbNegotiationTest.java

        private byte[] testResponseBuffer;
        private SmbNegotiation negotiation;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
            testRequestBuffer = new byte[] { 0x01, 0x02, 0x03, 0x04 };
            testResponseBuffer = new byte[] { 0x05, 0x06, 0x07, 0x08 };
            negotiation = new SmbNegotiation(mockRequest, mockResponse, testRequestBuffer, testResponseBuffer);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/util/ByteEncodableTest.java

            byte[] data = { 0x01, 0x02, 0x03, 0x04, 0x05 };
            ByteEncodable encodable = new ByteEncodable(data, 1, 3);
    
            // Verify size
            assertEquals(3, encodable.size(), "Size should be equal to the specified length");
        }
    
        @Test
        void testEncodeBasic() {
            // Test basic encoding
            byte[] data = { 0x01, 0x02, 0x03, 0x04, 0x05 };
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/util/SMBUtilTest.java

            assertEquals((byte) 0xCD, dst[6]);
            assertEquals((byte) 0xAB, dst[7]);
        }
    
        @Test
        void testWriteInt4() {
            byte[] dst = new byte[12];
    
            // Test with simple value
            SMBUtil.writeInt4(0x12345678L, dst, 0);
            assertEquals((byte) 0x78, dst[0]);
            assertEquals((byte) 0x56, dst[1]);
            assertEquals((byte) 0x34, dst[2]);
            assertEquals((byte) 0x12, dst[3]);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/MIENameTest.java

                    Arguments.of("too short header", new byte[] { 0x04, 0x01, 0x00 }, IllegalArgumentException.class),
    
                    // Wrong TOK_ID
                    Arguments.of("wrong TOK_ID", new byte[] { 0x00, 0x02, 0x00, 0x01 }, IllegalArgumentException.class),
    
                    // OID length claims more than available
                    Arguments.of("oid length exceeds buffer", new byte[] { 0x04, 0x01, 0x00, 0x10, 0x06 }, IllegalArgumentException.class),
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java

            void testConstructorWithConfigHashAlgosAndSalt() {
                int[] hashAlgos = { PreauthIntegrityNegotiateContext.HASH_ALGO_SHA512 };
                byte[] salt = { 0x01, 0x02, 0x03, 0x04 };
    
                PreauthIntegrityNegotiateContext context = new PreauthIntegrityNegotiateContext(mockConfig, hashAlgos, salt);
    
                assertNotNull(context);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 34K bytes
    - Viewed (0)
Back to top