- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for differences (0.22 sec)
-
src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java
try { // Measure timing for differences at different positions long timeStart = measureEqualsTime(baseAuth, startAuth, TIMING_ITERATIONS); long timeMiddle = measureEqualsTime(baseAuth, middleAuth, TIMING_ITERATIONS); long timeEnd = measureEqualsTime(baseAuth, endAuth, TIMING_ITERATIONS); // Calculate relative timing differencesRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ServerMessageBlock2Request.java
// Log the size mismatch for debugging but don't throw exception // This can occur due to padding alignment differences between size8() and pad8() if (log.isDebugEnabled()) { log.debug("Size calculation mismatch: expected {} but got {} (difference: {})", exp, actual, actual - exp); } } return len; } /** * {@inheritDoc}
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Mon Aug 25 14:34:10 UTC 2025 - 7.2K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacLogonInfoTest.java
PacDataInputStream pacStream = new PacDataInputStream(bais); Date date = pacStream.readFiletime(); assertNotNull(date); // The date should be around 1970 (allowing for some conversion differences) assertTrue(date.getYear() + 1900 >= 1969 && date.getYear() + 1900 <= 1971); } @Test @DisplayName("Test invalid FILETIME handling") void testInvalidFiletime() throws Exception {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.3K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java
/** * Performs constant-time comparison of two char arrays to prevent timing attacks. * This method always compares the full length of both arrays, regardless of when * differences are found, making the execution time independent of the position * of differing characters. * * @param a first char array to compare * @param b second char array to compareRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 30.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileIntegrationTest.java
long testTime = System.currentTimeMillis() - 3600000; file.setLastModified(testTime); long retrievedTime = file.lastModified(); // Allow for reasonable precision differences assertTrue(Math.abs(retrievedTime - testTime) < 10000, "Set timestamp should be approximately correct"); } // ========== Path and URL Operations ========== @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 56K bytes - Viewed (0) -
pom.xml
</difference> <difference> <className>jcifs/Configuration</className> <differenceType>7012</differenceType> <method>java.lang.String getGuestPassword()</method> </difference> <difference> <className>jcifs/SmbResource</className> <differenceType>7012</differenceType> <method>void setFileTimes(long, long, long)</method> </difference> </ignored>
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Mon Aug 25 14:34:10 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/witness/WitnessRegistrationTest.java
} @Test void testHeartbeatUpdate() throws InterruptedException { long initialTime = registration.getLastHeartbeat(); Thread.sleep(50); // Ensure sufficient time difference registration.updateHeartbeat(); // After update, should not be expired with long timeout assertFalse(registration.isExpired(60000)); // Verify heartbeat was actually updatedRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 09:06:40 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacDataInputStreamTest.java
data[7] = (byte) (high >> 24); PacDataInputStream pdis = createInputStream(data); Date date = pdis.readFiletime(); assertNotNull(date); // Allow for a small difference due to precision loss assertEquals(time / 1000, date.getTime() / 1000); // Test with null date (0x7fffffff ffffffff)
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 9.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbFile.java
* may also refer to servers and workgroups. If the resource is a file or * directory the methods of <code>SmbFile</code> follow the behavior of * the well known {@link java.io.File} class. One fundamental difference * is the usage of a URL scheme [1] to specify the target file or * directory. SmbFile URLs have the following syntax: * * <blockquote><pre>
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 112.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFile.java
* may also refer to servers and workgroups. If the resource is a file or * directory the methods of <code>SmbFile</code> follow the behavior of * the well known {@link java.io.File} class. One fundamental difference * is the usage of a URL scheme [1] to specify the target file or * directory. SmbFile URLs have the following syntax: * * <blockquote> * * <pre>
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 103.2K bytes - Viewed (0)