Search Options

Results per page
Sort
Preferred Languages
Advance

Results 251 - 260 of 1,385 for 1byte (0.01 sec)

  1. src/test/java/jcifs/dcerpc/msrpc/netdfsTest.java

            byte[] encodeBuffer = new byte[1024];
            NdrBuffer dst = new NdrBuffer(encodeBuffer, 0);
            enumEx.encode_in(dst);
    
            // Simulate decode_out with null info and totalentries
            netdfs.NetrDfsEnumEx decodedEnumEx = new netdfs.NetrDfsEnumEx(null, 0, 0, null, null);
    
            // Manually encode the expected output for decode_out
            byte[] encodeBufferOut2 = new byte[1024];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/Smb3KeyDerivationTest.java

            byte[] testSessionKey = new byte[16];
            Arrays.fill(testSessionKey, (byte) 0xAA);
            byte[] testPreauth = new byte[64];
            Arrays.fill(testPreauth, (byte) 0xBB);
    
            // When
            byte[] signingKey300 = Smb3KeyDerivation.deriveSigningKey(Smb2Constants.SMB2_DIALECT_0300, testSessionKey, testPreauth);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/PreauthIntegrityTest.java

            // Calculate hash
            Method calcMethod = findMethod(transport.getClass(), "calculatePreauthHash", byte[].class, int.class, int.class, byte[].class);
            calcMethod.setAccessible(true);
    
            byte[] input = "test data".getBytes();
            byte[] oldHash = new byte[64];
    
            byte[] newHash = (byte[]) calcMethod.invoke(transport, input, 0, input.length, oldHash);
    
            assertNotNull(newHash);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/AndXServerMessageBlock.java

                andxCommand = (byte) 0xFF;
                andx = null;
    
                dst[start + ANDX_COMMAND_OFFSET] = (byte) 0xFF;
                dst[start + ANDX_RESERVED_OFFSET] = (byte) 0x00;
                //            dst[start + ANDX_OFFSET_OFFSET] = (byte)0x00;
                //            dst[start + ANDX_OFFSET_OFFSET + 1] = (byte)0x00;
                dst[start + ANDX_OFFSET_OFFSET] = (byte) 0xde;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java

            // Prepare test data with offset
            int offset = 10;
            String expectedFilename = "offsetfile.txt";
            byte[] buffer = new byte[200 + offset];
            byte[] dataBuffer = createValidBuffer(expectedFilename, "OFFSET~1.TXT", true);
            System.arraycopy(dataBuffer, 0, buffer, offset, dataBuffer.length);
    
            // Decode from offset
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/com/SmbComWriteAndX.java

            for (int i = 0; i < 4; i++) {
                dst[dstIndex++] = (byte) 0xFF;
            }
            SMBUtil.writeInt2(this.writeMode, dst, dstIndex);
            dstIndex += 2;
            SMBUtil.writeInt2(this.remaining, dst, dstIndex);
            dstIndex += 2;
            dst[dstIndex] = (byte) 0x00;
            dstIndex++;
            dst[dstIndex++] = (byte) 0x00;
            SMBUtil.writeInt2(this.dataLength, dst, dstIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/Smb2TransformHeaderTest.java

            assertEquals((byte) 0xFD, buffer[3]);
        }
    
        @Test
        @DisplayName("Should decode transform header from byte buffer")
        void testDecodeFromBuffer() {
            // Given
            byte[] buffer = new byte[52];
            int index = 0;
    
            // Protocol ID - 0xFD534D42 in little-endian
            buffer[index++] = (byte) 0x42;
            buffer[index++] = (byte) 0x4D;
            buffer[index++] = (byte) 0x53;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java

                // Given
                byte[] zeroKey = new byte[SOURCE_KEY_SIZE];
                byte[] maxKey = new byte[SOURCE_KEY_SIZE];
                Arrays.fill(maxKey, (byte) 0xFF);
                byte[] patternKey = new byte[SOURCE_KEY_SIZE];
                for (int i = 0; i < SOURCE_KEY_SIZE; i++) {
                    patternKey[i] = (byte) i;
                }
    
                // When & Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/util/Encdec.java

            dst[di] = (byte) (i & 0xFF);
            di++;
            dst[di++] = (byte) (i >> 8 & 0xFF);
            dst[di++] = (byte) (i >> 16 & 0xFF);
            dst[di] = (byte) (i >> 24 & 0xFF);
            return 4;
        }
    
        /* Decode integers
         */
    
        /**
         * Decodes a 16-bit unsigned integer from big-endian byte order.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponseTest.java

            byte[] buffer = new byte[50];
            int bufferIndex = 0;
    
            // SMB3 capabilities
            int testCapabilities = 0x0000002F; // DFS, LEASING, LARGE_MTU, MULTI_CHANNEL, PERSISTENT_HANDLES, DIRECTORY_LEASING
    
            // Random but realistic GUID
            byte[] testGuid = { (byte) 0x01, (byte) 0x23, (byte) 0x45, (byte) 0x67, (byte) 0x89, (byte) 0xAB, (byte) 0xCD, (byte) 0xEF,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
Back to top