Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 91 for 512 (0.01 sec)

  1. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

            void testDataOffsetCalculation() {
                byte[] data = new byte[50];
                Arrays.fill(data, (byte) 0xAB);
                request.setData(data, 0, data.length);
    
                byte[] buffer = new byte[512];
                Arrays.fill(buffer, (byte) 0);
    
                int startIndex = 100;
                request.writeBytesWireFormat(buffer, startIndex);
    
                // Verify data is at correct position
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/Crypto.java

                throw new CIFSUnsupportedCryptoException(e);
            }
        }
    
        /**
         * Get a SHA-512 message digest instance.
         * @return SHA512 digest instance
         */
        public static MessageDigest getSHA512() {
            try {
                return MessageDigest.getInstance("SHA-512");
            } catch (final NoSuchAlgorithmException e) {
                throw new CIFSUnsupportedCryptoException(e);
            }
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java

            // Test decode method
            byte[] buffer = new byte[512];
            int bufferIndex = 0;
            int expectedDecodeLength = 128;
            when(response.decode(buffer, bufferIndex)).thenReturn(expectedDecodeLength);
            assertEquals(expectedDecodeLength, response.decode(buffer, bufferIndex));
    
            // Test encode method
            byte[] dst = new byte[512];
            int dstIndex = 0;
            int expectedEncodeLength = 64;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.3K bytes
    - Viewed (0)
  4. fuzzing/fuzzingserver-expected.txt

    "3.7 OK"
    "4.1.1 OK"
    "4.1.2 OK"
    "4.1.3 NON-STRICT"
    "4.1.4 NON-STRICT"
    "4.1.5 OK"
    "4.2.1 OK"
    "4.2.2 OK"
    "4.2.3 NON-STRICT"
    "4.2.4 OK"
    "4.2.5 OK"
    "5.1 OK"
    "5.10 OK"
    "5.11 OK"
    "5.12 OK"
    "5.13 OK"
    "5.14 OK"
    "5.15 OK"
    "5.16 OK"
    "5.17 OK"
    "5.18 OK"
    "5.19 OK"
    "5.2 OK"
    "5.20 OK"
    "5.3 OK"
    "5.4 OK"
    "5.5 OK"
    "5.6 OK"
    "5.7 OK"
    "5.8 OK"
    "5.9 OK"
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Mar 26 02:01:32 UTC 2019
    - 6.7K bytes
    - Viewed (1)
  5. src/test/java/jcifs/util/HexdumpTest.java

            assertEquals(2048, result.length()); // 1024 bytes * 2 chars
    
            // Test partial conversion
            String partial = Hexdump.toHexString(data, 512, 256);
            assertEquals(512, partial.length()); // 256 bytes * 2 chars
            assertTrue(partial.startsWith("00010203")); // 512 % 256 = 0, so starts at 0
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java

        }
    
        @Test
        @DisplayName("Should read valid single notification from wire format")
        void testReadSingleNotification() throws Exception {
            // Given
            byte[] buffer = new byte[512];
            int offset = 0;
    
            // Set header start position for the response
            setHeaderStart(response, 64);
    
            // Write structure header (9 bytes)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContext.java

        /**
         * Context type
         */
        public static final int NEGO_CTX_PREAUTH_TYPE = 0x1;
    
        /**
         * SHA-512
         */
        public static final int HASH_ALGO_SHA512 = 0x1;
    
        private int[] hashAlgos;
        private byte[] salt;
    
        /**
         * Constructs a preauth integrity negotiate context with the specified parameters.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans2/Trans2FindNext2Test.java

            assertNotNull(trans2FindNext2);
    
            // Verify parameters are written correctly
            byte[] buffer = new byte[512];
            int written = trans2FindNext2.writeParametersWireFormat(buffer, 0);
    
            assertEquals(sid, SMBUtil.readInt2(buffer, 0));
            assertEquals(batchCount, SMBUtil.readInt2(buffer, 2));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java

                getHeaderStartMethod.setAccessible(true);
    
                // Create a buffer and write
                byte[] buffer = new byte[512];
                int bytesWritten = request.writeBytesWireFormat(buffer, 64);
    
                // Verify structure size
                assertEquals(41, SMBUtil.readInt2(buffer, 64));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java

            when(mockInfo.encode(any(byte[].class), anyInt())).thenReturn(infoSize);
            when(mockInfo.size()).thenReturn(infoSize);
            request.setInfo(mockInfo);
    
            byte[] buffer = new byte[512];
            int bytesWritten = request.writeBytesWireFormat(buffer, 64);
    
            // Verify buffer length field contains the info size
            int bufferLength = SMBUtil.readInt4(buffer, 68);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
Back to top