- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 952 for lengths (0.82 sec)
-
src/test/java/jcifs/smb/MIENameTest.java
// OID length claims more than available Arguments.of("oid length exceeds buffer", new byte[] { 0x04, 0x01, 0x00, 0x10, 0x06 }, IllegalArgumentException.class), // Missing NAME_LEN (not enough bytes for 4-byte length) Arguments.of("missing NAME_LEN bytes", new byte[] { 0x04, 0x01, 0x00, (byte) der.length, der[0] },Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.6K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SigningDigest.java
* * @param data The data. * @param offset The starting offset at which the SMB header begins. * @param length The length of the SMB data starting at offset. */ void sign(final byte[] data, final int offset, final int length, final ServerMessageBlock request, final ServerMessageBlock response) { request.signSeq = signSequence; if (response != null) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 7.9K bytes - Viewed (0) -
src/test/java/jcifs/util/SecureKeyManagerTest.java
assertEquals(32, derived1.length, "Derived key should have correct length"); assertEquals(32, derived2.length, "Derived key should have correct length"); assertEquals(32, derived3.length, "Derived key should have correct length"); assertFalse(Arrays.equals(derived1, derived2), "Different labels should produce different keys");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponseTest.java
// Test with buffer and length larger than needed byte[] buffer = new byte[100]; // Fill test pattern for (int i = 0; i < buffer.length; i++) { buffer[i] = (byte) (i % 256); } int bytesConsumed = response.decode(buffer, 0, 50); assertEquals(28, bytesConsumed, "Should consume exactly 28 bytes regardless of extra length");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/NetServerEnum2ResponseTest.java
System.arraycopy(commentBytes, 0, buffer, commentOffset, commentBytes.length); buffer[commentOffset + commentBytes.length] = 0; commentOffset += commentBytes.length + 1; } // Read the data int bytesRead = response.readDataWireFormat(buffer, 0, buffer.length); // Verify results assertTrue(bytesRead > 0);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 25.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComNegotiateResponseTest.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/NtTransQuerySecurityDescTest.java
byte[] buf = new byte[10]; assertEquals(0, cmd.readSetupWireFormat(buf, 0, buf.length)); assertEquals(0, cmd.readParametersWireFormat(buf, 0, buf.length)); assertEquals(0, cmd.readDataWireFormat(buf, 0, buf.length)); } @ParameterizedTest @CsvSource({ "0, 0", // all zeros "-1, 2147483647", // negative fid, max positive security
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileIntegrationTest.java
out.write(testContent.getBytes("UTF-8")); } assertTrue(file.exists(), "File should exist after writing"); assertEquals(testContent.length(), file.length(), "File length should match content length"); // Read content back try (InputStream in = file.getInputStream()) { String readContent = new String(in.readAllBytes(), "UTF-8");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 56K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java
assertNotNull(context); assertArrayEquals(ciphers, context.getCiphers()); assertEquals(0, context.getCiphers().length); } @Test @DisplayName("Should create instance with default constructor") void testDefaultConstructor() { EncryptionNegotiateContext context = new EncryptionNegotiateContext();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/DcerpcPipeHandle.java
if (buf[0] != 5 || buf[1] != 0) { throw new IOException("Unexpected DCERPC PDU header"); } final int length = Encdec.dec_uint16le(buf, 8); if (length > getMaxRecv()) { throw new IOException("Unexpected fragment length: " + length); } while (off < length) { final int r = this.handle.recv(buf, off, length - off);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.6K bytes - Viewed (0)