Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 129 for calculating (0.05 sec)

  1. api/maven-api-core/src/main/java/org/apache/maven/api/services/ChecksumAlgorithmService.java

            /**
             * Returns the algorithm end result as string, never {@code null}. After invoking this method, this instance should
             * be discarded and not reused. For new checksum calculation you have to get new instance.
             */
            @Nonnull
            String checksum();
        }
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jul 10 20:52:34 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java

                response.readDataWireFormat(buffer, 0, 0);
            });
        }
    
        @Test
        @DisplayName("Test readDataWireFormat preserves buffer index calculation")
        void testReadDataWireFormatBufferIndexCalculation() throws Exception {
            byte[] buffer = createValidSecurityDescriptorBuffer();
            int startIndex = 10;
    
            // Prepare buffer with offset
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java

            // When
            int size = request.size();
    
            // Then
            // Verify size includes SMB2_HEADER_LENGTH
            assertTrue(size >= Smb2Constants.SMB2_HEADER_LENGTH);
    
            // The actual calculation: (SMB2_HEADER_LENGTH + 4 + 7) & ~7
            int expectedBase = Smb2Constants.SMB2_HEADER_LENGTH + 4;
            int expectedAligned = (expectedBase + 7) & ~7;
            assertEquals(expectedAligned, size);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/math/PairedStatsAccumulator.java

          return;
        }
    
        xStats.addAll(values.xStats());
        if (yStats.count() == 0) {
          sumOfProductsOfDeltas = values.sumOfProductsOfDeltas();
        } else {
          // This is a generalized version of the calculation in add(double, double) above. Note that
          // non-finite inputs will have sumOfProductsOfDeltas = NaN, so non-finite values will result
          // in NaN naturally.
          sumOfProductsOfDeltas +=
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:36:11 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

                // Create valid signature using HmacSHA256
                Mac mac = Mac.getInstance("HmacSHA256");
                mac.init(new SecretKeySpec(sessionKey, "HmacSHA256"));
    
                // Zero signature field for calculation
                for (int i = 0; i < SIGNATURE_LENGTH; i++) {
                    data[SIGNATURE_OFFSET + i] = 0;
                }
    
                mac.update(data, 0, data.length);
                byte[] signature = mac.doFinal();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 43.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/PreauthIntegrityService.java

         * @param messageData the message data to hash
         * @param hashAlgorithm the hash algorithm to use
         * @return the new hash
         * @throws CIFSException if hash calculation fails
         */
        private byte[] calculateHash(byte[] previousHash, byte[] messageData, int hashAlgorithm) throws CIFSException {
            try {
                MessageDigest digest;
                switch (hashAlgorithm) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java

                for (int i = 0; i < cipherCount; i++) {
                    assertEquals(i + 1, context.getCiphers()[i]);
                }
            }
        }
    
        @Nested
        @DisplayName("Size Calculation Tests")
        class SizeCalculationTests {
    
            @Test
            @DisplayName("Should calculate size for null ciphers")
            void testSizeWithNullCiphers() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/AllocInfoTest.java

                }
            }
        }
    
        @Nested
        @DisplayName("Usage Pattern Tests")
        class UsagePatternTests {
    
            @Test
            @DisplayName("Should support percentage calculation pattern")
            void shouldSupportPercentageCalculationPattern() {
                // Given
                TestAllocInfo allocInfo = new TestAllocInfo(1000L, 250L);
    
                // When - calculate percentage free
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/witness/WitnessClient.java

        private static final long BASE_POLL_INTERVAL = 1000;
        private static final long BASE_ERROR_DELAY = 1000;
        private static final int MAX_FAILURE_LIMIT = 5; // Limit failures for backoff calculation
    
        private final InetAddress witnessServer;
        private final int port;
        private final CIFSContext context;
        private final ConcurrentHashMap<String, WitnessRegistration> registrations;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java

            });
    
            assertTrue(exception.getMessage().contains("Security buffer extends beyond available data"));
        }
    
        /**
         * Test integer overflow protection in security buffer offset calculation.
         */
        @Test
        public void testSecurityBufferIntegerOverflow() {
            byte[] buffer = createBasicNegotiateResponseBuffer();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
Back to top