Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 1,352 for 1byte (1.4 sec)

  1. src/main/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDesc.java

            this.maxDataCount = 65536;
            this.maxSetupCount = (byte) 0x00;
        }
    
        @Override
        public int getPadding() {
            return 4;
        }
    
        @Override
        protected int writeSetupWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
        protected int writeParametersWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/compression/CompressionService.java

         *
         * @param data the data to compress
         * @param algorithm the compression algorithm to use
         * @return the compressed data
         * @throws CIFSException if compression fails
         */
        byte[] compress(byte[] data, int algorithm) throws CIFSException;
    
        /**
         * Compresses data using the specified algorithm with offset and length.
         *
         * @param data the data buffer
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

                request.setPadding((byte) 4);
                request.setReadFlags((byte) 0x02);
    
                // Update file ID
                byte[] newFileId = new byte[16];
                Arrays.fill(newFileId, (byte) 0xEF);
                request.setFileId(newFileId);
    
                // Write and verify
                byte[] buffer = new byte[256];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponseTest.java

            for (int i = 0; i < 24; i++) {
                assertEquals((byte) 0xAA, resumeKey[i], "Resume key byte " + i + " should be 0xAA");
            }
        }
    
        @Test
        @DisplayName("Test decode throws exception when length is too short")
        void testDecodeThrowsExceptionWhenLengthTooShort() {
            byte[] buffer = new byte[28];
    
            // Test with len = 23 (one byte too short)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/compression/DefaultCompressionService.java

        @Override
        public byte[] compress(byte[] data, int algorithm) throws CIFSException {
            if (data == null) {
                throw new CIFSException("Data cannot be null");
            }
            return compress(data, 0, data.length, algorithm);
        }
    
        @Override
        public byte[] compress(byte[] data, int offset, int length, int algorithm) throws CIFSException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoResponseTest.java

        @Test
        @DisplayName("Test decode method integration")
        void testDecodeMethodIntegration() throws Exception {
            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);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/pac/kerberos/KerberosRelevantAuthDataTest.java

            elementVector.add(new DERTaggedObject(0, new ASN1Integer(1))); // authType
            elementVector.add(new DERTaggedObject(1, new DEROctetString(new byte[] { 0x01, 0x02 }))); // authData
            authVector.add(new DERSequence(elementVector));
    
            byte[] token = new DERSequence(authVector).getEncoded();
            Map<Integer, KerberosKey> keys = new HashMap<>();
    
            // 2. WHEN
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/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
    - 17.4K bytes
    - Viewed (0)
  9. src/main/java/jcifs/netbios/NbtAddress.java

         * byte order: the highest order byte of the address is in getAddress()[0].
         *
         * @return a four byte array
         */
        public byte[] getAddress() {
            final byte[] addr = new byte[4];
            addr[0] = (byte) (this.address >>> 24 & 0xFF);
            addr[1] = (byte) (this.address >>> 16 & 0xFF);
            addr[2] = (byte) (this.address >>> 8 & 0xFF);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/NtlmPasswordAuthenticationTest.java

        }
    
        // Test constructor with external hashes
        @Test
        void testConstructorWithExternalHashes() {
            byte[] challenge = new byte[8];
            byte[] ansiHash = new byte[24];
            byte[] unicodeHash = new byte[24];
            NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication("DOMAIN", "user", challenge, ansiHash, unicodeHash);
            assertEquals("DOMAIN", auth.getDomain());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
Back to top