Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 67 for timing (0.03 sec)

  1. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java

                    double avgTime = timings.stream().mapToLong(Long::longValue).average().orElse(0.0);
                    long maxTime = timings.stream().mapToLong(Long::longValue).max().orElse(0L);
                    long minTime = timings.stream().mapToLong(Long::longValue).min().orElse(0L);
    
                    double variance = (maxTime - minTime) / avgTime;
                    // JVM timing in concurrent scenarios is inherently variable
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/security/http-basic-auth.md

        # Return some error
        ...
    ```
    
    But by using the `secrets.compare_digest()` it will be secure against a type of attacks called "timing attacks".
    
    ### Timing Attacks { #timing-attacks }
    
    But what's a "timing attack"?
    
    Let's imagine some attackers are trying to guess the username and password.
    
    And they send a request with a username `johndoe` and a password `love123`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

            return new EncryptionResult(ciphertext, authTag);
        }
    
        /**
         * Perform constant-time encryption to prevent timing attacks
         */
        private byte[] performConstantTimeEncryption(Cipher cipher, byte[] message) throws Exception {
            // Pad to fixed block size to prevent timing leaks
            int blockSize = cipher.getBlockSize();
            if (blockSize == 0)
                blockSize = 16; // GCM mode
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Request.kt

        /**
         * Attaches [tag] to the request using [T] as a key. Tags can be read from a request using
         * [Request.tag]. Use null to remove any existing tag assigned for [T].
         *
         * Use this API to attach timing, debugging, or other application data to a request so that
         * you may read it in interceptors, event listeners, or callbacks.
         */
        @JvmName("reifiedTag")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 13.1K bytes
    - Viewed (1)
  5. src/test/java/jcifs/util/ResourceManagerTest.java

            // Check for leaks
            resourceManager.checkForLeaks();
    
            Map<String, Object> stats = resourceManager.getStatistics();
            // The leak counter may or may not increment depending on GC timing
            assertNotNull(stats.get("totalLeaks"));
        }
    
        private void createLeakyResource() {
            TestResource resource = new TestResource("leaky");
            resourceManager.registerResource(resource);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/helper/CrawlerStatsHelper.java

    import jakarta.annotation.PreDestroy;
    
    /**
     * Helper class for managing crawler statistics and performance metrics.
     * This class provides functionality to track, record, and report statistics
     * about crawler operations including timing data, performance metrics, and
     * operational events. It uses an internal cache to maintain statistics
     * objects and provides methods to begin tracking, record events, and
     * finalize statistics collection.
     *
     */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/helper/DataIndexHelper.java

     *   <li>Thread pool management for crawler execution</li>
     *   <li>Session-based crawling with cleanup operations</li>
     *   <li>Old document deletion after successful crawling</li>
     *   <li>Crawling execution monitoring and timing</li>
     * </ul>
     */
    public class DataIndexHelper {
    
        /** Logger instance for this class */
        private static final Logger logger = LogManager.getLogger(DataIndexHelper.class);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/util/SecureCredentialStorage.java

     *
     * Features:
     * - Encrypts credentials at rest using AES-256-GCM
     * - Uses PBKDF2 for key derivation from master password
     * - Secure wiping of sensitive data
     * - Thread-safe operations
     * - Protection against timing attacks
     */
    public class SecureCredentialStorage implements AutoCloseable, Destroyable {
    
        private static final Logger log = LoggerFactory.getLogger(SecureCredentialStorage.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/rdma/RdmaErrorHandler.java

     * including retry logic and fallback mechanisms.
     */
    public class RdmaErrorHandler {
    
        private static final Logger log = LoggerFactory.getLogger(RdmaErrorHandler.class);
    
        // Retry and timing constants (in ms)
        private static final long MAX_RETRY_DELAY = 10000; // 10 seconds maximum delay
        private static final int MAX_BACKOFF_SHIFT = 4; // Maximum 16x multiplier
    
        private final RdmaStatistics statistics;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/rdma/RdmaStatistics.java

        private final AtomicLong connectionsActive = new AtomicLong();
        private final AtomicLong memoryRegionsAllocated = new AtomicLong();
        private final AtomicLong memoryRegionsActive = new AtomicLong();
    
        // Timing statistics (in nanoseconds)
        private final AtomicLong totalReadTime = new AtomicLong();
        private final AtomicLong totalWriteTime = new AtomicLong();
        private final AtomicLong totalSendTime = new AtomicLong();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 10.7K bytes
    - Viewed (0)
Back to top