Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 203 for 0102 (2.51 sec)

  1. src/main/java/jcifs/smb1/util/DES.java

            return clearText;
        }
    
        // Tables, permutations, S-boxes, etc.
    
        private static byte[] bytebit =
                { (byte) 0x80, (byte) 0x40, (byte) 0x20, (byte) 0x10, (byte) 0x08, (byte) 0x04, (byte) 0x02, (byte) 0x01 };
        private static int[] bigbyte = { 0x800000, 0x400000, 0x200000, 0x100000, 0x080000, 0x040000, 0x020000, 0x010000, 0x008000, 0x004000,
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/NetServerEnum2Test.java

            int result = netServerEnum2.readSetupWireFormat(buffer, 0, 10);
            assertEquals(0, result);
        }
    
        /**
         * Test the readParametersWireFormat method.
         */
        @Test
        void testReadParametersWireFormat() {
            byte[] buffer = new byte[10];
            int result = netServerEnum2.readParametersWireFormat(buffer, 0, 10);
            assertEquals(0, result);
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/NetShareEnumResponseTest.java

            // Manually set parameters that would be read by readParametersWireFormat
            response.numEntries = 2;
            byte[] params = { 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x02, 0x00 };
            response.readParametersWireFormat(params, 0, params.length);
    
            // Data block: 2 entries
            byte[] data = new byte[100];
            // Entry 1: SHARE1, type 0 (Disk), remark "Remark 1"
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbComNegotiate.java

     */
    
    package jcifs.smb1.smb1;
    
    import java.io.UnsupportedEncodingException;
    
    class SmbComNegotiate extends ServerMessageBlock {
    
        private static final String DIALECTS = "\u0002NT LM 0.12\u0000";
    
        SmbComNegotiate() {
            command = SMB_COM_NEGOTIATE;
            flags2 = DEFAULT_FLAGS2;
        }
    
        @Override
        int writeParameterWordsWireFormat(final byte[] dst, final int dstIndex) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/spnego/NegTokenInitTest.java

            int flags = NegTokenInit.DELEGATION | NegTokenInit.MUTUAL_AUTHENTICATION | NegTokenInit.INTEGRITY;
            byte[] mechToken = new byte[] { 0x01, 0x02, 0x03 };
            byte[] mic = new byte[] { (byte) 0xFE, 0x55 };
    
            NegTokenInit init = new NegTokenInit(mechs, flags, mechToken, mic);
            byte[] bytes = init.toByteArray();
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationResponseTest.java

         */
        @Test
        void testReadSetupWireFormat() {
            byte[] buffer = new byte[10];
            // The method should not read anything and return 0
            assertEquals(0, response.readSetupWireFormat(buffer, 0, 10), "readSetupWireFormat should return 0.");
        }
    
        /**
         * Test for the readParametersWireFormat method.
         * It should always return 0.
         */
        @Test
        void testReadParametersWireFormat() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java

                when(mockConfig.isRequireSecureNegotiate()).thenReturn(true);
                when(mockDigest.verify(buffer, 0, 100, 0, echoResponse)).thenReturn(false);
    
                boolean result = echoResponse.verifySignature(buffer, 0, 100);
    
                assertTrue(result);
                assertFalse(echoResponse.isVerifyFailed());
                verify(mockDigest).verify(buffer, 0, 100, 0, echoResponse);
            }
    
            @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/SmbComNegotiateTest.java

            assertTrue(result.contains("wordCount=0"), "String should contain wordCount=0");
            assertTrue(result.contains("dialects=NT LM 0.12]"), "String should contain dialects=NT LM 0.12]");
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/lease/Smb2LeaseState.java

        /**
         * Read caching lease (R)
         */
        public static final int SMB2_LEASE_READ_CACHING = 0x01;
    
        /**
         * Handle caching lease (H)
         */
        public static final int SMB2_LEASE_HANDLE_CACHING = 0x02;
    
        /**
         * Write caching lease (W)
         */
        public static final int SMB2_LEASE_WRITE_CACHING = 0x04;
    
        /**
         * Read and Handle caching (RH)
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/fscc/FileInformationTest.java

            byte[] buffer = new byte[100];
    
            // Define behavior
            when(mockFileInfo.decode(buffer, 0, 100)).thenReturn(8);
    
            // Test decode
            int decoded = mockFileInfo.decode(buffer, 0, 100);
            assertEquals(8, decoded);
    
            // Verify interaction
            verify(mockFileInfo).decode(buffer, 0, 100);
        }
    
        /**
         * Test FileInformation as Encodable
         */
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
Back to top