Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for 0xFE (0.02 sec)

  1. src/main/java/jcifs/internal/util/SMBUtil.java

                (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00 };
    
        /**
         * SMB2 protocol header template with magic number 0xFE 'SMB'
         */
        public static final byte[] SMB2_HEADER = { (byte) 0xFE, (byte) 'S', (byte) 'M', (byte) 'B', // ProtocolId
                (byte) 64, (byte) 0x00, // StructureSize (LE)
                (byte) 0x00, (byte) 0x00, // CreditCharge (reserved 2.0.2)
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequestTest.java

            assertEquals(expectedSize, leaseContext.size());
        }
    
        @Test
        @DisplayName("Should set and get lease key")
        void testLeaseKeyAccessors() {
            byte[] newKeyBytes = new byte[] { (byte) 0xFF, (byte) 0xFE, (byte) 0xFD, (byte) 0xFC, (byte) 0xFB, (byte) 0xFA, (byte) 0xF9,
                    (byte) 0xF8, (byte) 0xF7, (byte) 0xF6, (byte) 0xF5, (byte) 0xF4, (byte) 0xF3, (byte) 0xF2, (byte) 0xF1, (byte) 0xF0 };
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java

                assertTrue(len > 0);
                assertEquals(0, testMessage.getHeaderStart());
                assertTrue(testMessage.getLength() > 0);
    
                // Verify SMB2 header
                assertEquals((byte) 0xFE, buffer[0]);
                assertEquals((byte) 'S', buffer[1]);
                assertEquals((byte) 'M', buffer[2]);
                assertEquals((byte) 'B', buffer[3]);
            }
    
            @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 39.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/util/Crypto.java

         *            7-byte "raw" DES key
         * @return 8-byte DES key with parity
         */
        static byte[] des7to8(final byte[] key) {
            final byte key8[] = new byte[8];
            key8[0] = (byte) (key[0] & 0xFE);
            key8[1] = (byte) (key[0] << 7 | (key[1] & 0xFF) >>> 1);
            key8[2] = (byte) (key[1] << 6 | (key[2] & 0xFF) >>> 2);
            key8[3] = (byte) (key[2] << 5 | (key[3] & 0xFF) >>> 3);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/util/ResponseDataUtilTest.java

            }
        }
    
        public void test_createResponseBodyFile_binaryContent() throws Exception {
            // Test with binary content
            byte[] binaryData = new byte[] { 0x00, 0x01, 0x02, (byte) 0xFF, (byte) 0xFE, (byte) 0xFD };
    
            ResponseData responseData = new ResponseData() {
                @Override
                public InputStream getResponseBody() {
                    return new ByteArrayInputStream(binaryData);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Nov 22 13:28:22 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoResponseTest.java

            byte[] buffer = new byte[1024];
            int bufferIndex = 0;
    
            // Prepare SMB2 header (64 bytes)
            // Protocol ID
            System.arraycopy(new byte[] { (byte) 0xFE, 'S', 'M', 'B' }, 0, buffer, bufferIndex, 4);
            // Header length
            SMBUtil.writeInt2(64, buffer, bufferIndex + 4);
            // Credit charge
            SMBUtil.writeInt2(1, buffer, bufferIndex + 6);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/util/SMBUtilTest.java

            assertEquals(68, SMBUtil.SMB2_HEADER.length);
    
            // Verify SMB2 header signature
            assertEquals((byte) 0xFE, SMBUtil.SMB2_HEADER[0]);
            assertEquals((byte) 'S', SMBUtil.SMB2_HEADER[1]);
            assertEquals((byte) 'M', SMBUtil.SMB2_HEADER[2]);
            assertEquals((byte) 'B', SMBUtil.SMB2_HEADER[3]);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponseTest.java

            // Random but realistic GUID
            byte[] testGuid = { (byte) 0x01, (byte) 0x23, (byte) 0x45, (byte) 0x67, (byte) 0x89, (byte) 0xAB, (byte) 0xCD, (byte) 0xEF,
                    (byte) 0xFE, (byte) 0xDC, (byte) 0xBA, (byte) 0x98, (byte) 0x76, (byte) 0x54, (byte) 0x32, (byte) 0x10 };
    
            // Security mode with signing required
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/util/ServerResponseValidator.java

                    throw new SmbException("Invalid SMB1 header size: " + structureSize);
                }
            }
            // Check SMB2/3 signature
            else if (protocolId == 0x424D53FE) { // 0xFE 'S' 'M' 'B'
                // SMB2/3
                if (structureSize != 64) {
                    failedValidations.incrementAndGet();
                    throw new SmbException("Invalid SMB2 header size: " + structureSize);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/netbios/NodeStatusResponseTest.java

            String name = "TESTFLAGS       ";
            System.arraycopy(name.getBytes("US-ASCII"), 0, src, srcIndex + 1, 16);
            src[srcIndex + 16] = 0x00; // hex code
            src[srcIndex + 17] = (byte) 0xFE; // All flags except one: 11111110
            // Bit 7: group (1)
            // Bits 6-5: owner node type (11 = 3)
            // Bit 4: being deleted (1)
            // Bit 3: in conflict (1)
            // Bit 2: active (1)
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
Back to top