Search Options

Results per page
Sort
Preferred Languages
Advance

Results 311 - 320 of 952 for lengths (0.81 sec)

  1. src/test/java/jcifs/util/CryptoTest.java

            assertNotNull(random2);
            assertEquals(length, random1.length);
            assertEquals(length, random2.length);
            // Very unlikely to be equal
            assertNotEquals(new String(random1), new String(random2));
        }
    
        @Test
        @DisplayName("Should handle AES encryption operations")
        void testAESOperations() throws Exception {
            // Given
            byte[] key = new byte[16]; // 128-bit key
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java

                    dstIndex += str.length() * 2;
                    dst[dstIndex] = (byte) '\0';
                    dstIndex++;
                    dst[dstIndex++] = (byte) '\0';
                } else {
                    final byte[] b = str.getBytes(OEM_ENCODING);
                    System.arraycopy(b, 0, dst, dstIndex, b.length);
                    dstIndex += b.length;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/netbios/Lmhosts.java

                    ip = i = 0;
                    for (; i < data.length && c == '.'; i++) {
                        int b = 0x00;
    
                        for (; i < data.length && (c = data[i]) >= 48 && c <= 57; i++) {
                            b = b * 10 + c - '0';
                        }
                        ip = (ip << 8) + b;
                    }
                    while (i < data.length && Character.isWhitespace(data[i])) {
                        i++;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/storage/S3StorageClient.java

            String name = objectName;
            if (name.endsWith("/")) {
                name = name.substring(0, name.length() - 1);
            }
            final String[] values = name.split("/");
            if (values.length == 0) {
                return StringUtil.EMPTY;
            }
            return values[values.length - 1];
        }
    
        /**
         * Encodes an object name to a URL-safe base64 string.
         *
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 13 02:21:17 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/netbios/LmhostsTest.java

                            int offset = inv.getArgument(1);
                            int length = inv.getArgument(2);
                            int remaining = includeContent.length - index[0];
                            if (remaining <= 0) {
                                return -1;
                            }
                            int toRead = Math.min(length, remaining);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateRequest.java

            int negotitateContextOffsetOffset = 0;
            if (this.negotiateContexts == null || this.negotiateContexts.length == 0) {
                SMBUtil.writeInt8(0, dst, dstIndex);
            } else {
                negotitateContextOffsetOffset = dstIndex;
                SMBUtil.writeInt2(this.negotiateContexts.length, dst, dstIndex + 4);
                SMBUtil.writeInt2(0, dst, dstIndex + 6);
            }
            dstIndex += 8;
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeResponseTest.java

            byte[] buffer = new byte[offset + notificationData.length];
            System.arraycopy(notificationData, 0, buffer, offset, notificationData.length);
    
            int result = response.readParametersWireFormat(buffer, offset, notificationData.length);
    
            assertTrue(result > 0);
            List<FileNotifyInformation> notifications = response.getNotifyInformation();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/com/ServerDataTest.java

            byte[] largeKey = new byte[256];
            for (int i = 0; i < largeKey.length; i++) {
                largeKey[i] = (byte) (i % 256);
            }
            serverData.encryptionKey = largeKey;
            serverData.encryptionKeyLength = largeKey.length;
    
            assertEquals(256, serverData.encryptionKey.length);
            assertEquals(256, serverData.encryptionKeyLength);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/com/SmbComSessionSetupAndX.java

                System.arraycopy(this.blob, 0, dst, dstIndex, this.blob.length);
                dstIndex += this.blob.length;
            } else {
                System.arraycopy(this.lmHash, 0, dst, dstIndex, this.lmHash.length);
                dstIndex += this.lmHash.length;
                System.arraycopy(this.ntHash, 0, dst, dstIndex, this.ntHash.length);
                dstIndex += this.ntHash.length;
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/TransTransactNamedPipeResponseTest.java

            byte[] buffer = new byte[10];
            int len = 10;
            int result = response.readDataWireFormat(buffer, 0, len);
            assertEquals(len, result, "readDataWireFormat should return the length when pipeIn is null.");
        }
    
        /**
         * Tests the readDataWireFormat method when the pipe has a valid input stream.
         */
        @Test
        void testReadDataWireFormat_withPipeIn() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
Back to top