Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for 07 (0.01 sec)

  1. src/test/java/jcifs/internal/smb1/com/SmbComSetInformationResponseTest.java

            @DisplayName("Returns 0 with null array")
            void nullArray() {
                assertEquals(0, response.writeBytesWireFormat(null, 0));
            }
    
            @ParameterizedTest
            @ValueSource(ints = { 0, 7 })
            @DisplayName("Returns 0 with valid array and various indices")
            void nonNullArray(int idx) {
                byte[] arr = new byte[10];
                assertEquals(0, response.writeBytesWireFormat(arr, idx));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/Crypto.java

         * @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);
            key8[4] = (byte) (key[3] << 4 | (key[4] & 0xFF) >>> 4);
    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/smb1/trans/nt/FileNotifyInformationImplTest.java

        void testDecodeNonAlignedNextOffset() {
            byte[] buffer = new byte[100];
            // Write non-aligned next entry offset (not divisible by 4)
            SMBUtil.writeInt4(7, buffer, 0); // 7 is not aligned to 4 bytes
            SMBUtil.writeInt4(FileNotifyInformation.FILE_ACTION_ADDED, buffer, 4);
            SMBUtil.writeInt4(8, buffer, 8); // file name length
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/BufferCacheImplTest.java

            }
    
            @Test
            @DisplayName("Negative maxSize throws when allocating a new buffer")
            void negativeMaxSizeThrowsOnAllocation() {
                BufferCacheImpl impl = new BufferCacheImpl(0, -7);
                assertThrows(NegativeArraySizeException.class, impl::getBuffer);
            }
        }
    
        // Heterogeneous buffer sizes: cache should return exactly what was released
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/NtlmUtilTest.java

        void testE_blockSplitConsistency() throws ShortBufferException {
            // Arrange
            byte[] key14 = hex("01020304050607 11121314151617"); // two 7-byte chunks
            byte[] key7 = Arrays.copyOfRange(key14, 0, 7);
            byte[] data8 = NtlmUtil.S8;
            byte[] out14 = new byte[16];
            byte[] out7 = new byte[8];
    
            // Act
            NtlmUtil.E(key14, data8, out14);
            NtlmUtil.E(key7, data8, out7);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/FormBodyTest.kt

        assertThat(formEncode(4)).isEqualTo("%04")
        assertThat(formEncode(5)).isEqualTo("%05")
        assertThat(formEncode(6)).isEqualTo("%06")
        assertThat(formEncode(7)).isEqualTo("%07")
        assertThat(formEncode(8)).isEqualTo("%08")
        assertThat(formEncode(9)).isEqualTo("%09")
        // Browsers convert '\n' to '\r\n'
        assertThat(formEncode(10)).isEqualTo("%0A")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/NtlmUtil.java

            final byte[] key7 = new byte[7];
            final byte[] e8 = new byte[8];
    
            for (int i = 0; i < key.length / 7; i++) {
                System.arraycopy(key, i * 7, key7, 0, 7);
                final Cipher des = Crypto.getDES(key7);
                des.update(data, 0, data.length, e8);
                System.arraycopy(e8, 0, e, i * 8, 8);
            }
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/util/DES.java

            final int[] pc1m = new int[56];
            final int[] pcr = new int[56];
            final int[] kn = new int[32];
    
            for (j = 0; j < 56; ++j) {
                l = pc1[j];
                m = l & 07;
                pc1m[j] = (keyBlock[l >>> 3] & bytebit[m]) != 0 ? 1 : 0;
            }
    
            for (i = 0; i < 16; ++i) {
    
                if (encrypting) {
                    m = i << 1;
                } else {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  9. CHANGELOG.md

    Change Log
    ==========
    
    ## Version 4.x
    
    See [4.x Change log](https://square.github.io/okhttp/changelogs/changelog_4x/) for the stable version changelogs.
    
    ## Version 5.1.0
    
    _2025-07-07_
    
     *  New: `Response.peekTrailers()`. When we changed `Response.trailers()` to block instead of
        throwing in 5.0.0, we inadvertently removed the ability for callers to peek the trailers
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 19:32:33 UTC 2025
    - 31.6K bytes
    - Viewed (1)
  10. src/main/java/jcifs/smb1/Config.java

            String ver, pkgs;
    
            ver = System.getProperty("java.version");
            if (ver.startsWith("1.1.") || ver.startsWith("1.2.")) {
                throw new RuntimeException("jcifs.smb1-0.7.0b4+ requires Java 1.3 or above. You are running " + ver);
            }
            pkgs = System.getProperty("java.protocol.handler.pkgs");
            if (pkgs == null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.5K bytes
    - Viewed (0)
Back to top