Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 195 for calculate (0.06 sec)

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

        @Nonnull
        Map<ChecksumAlgorithm, String> calculate(@Nonnull byte[] data, @Nonnull Collection<ChecksumAlgorithm> algorithms);
    
        /**
         * Calculates checksums for specified data.
         *
         * @param data        The content for which to calculate checksums, must not be {@code null}.
         * @param algorithms  The checksum algorithms to use, must not be {@code null}.
         * @return The calculated checksums, indexed by algorithms, never {@code null}.
    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/main/java/jcifs/pac/PacMac.java

        /**
         * Calculates a MAC using the ARCFOUR-HMAC-MD5 algorithm.
         * This method implements the Microsoft variant of the Kerberos ARCFOUR-HMAC-MD5 checksum.
         *
         * @param keyusage the Kerberos key usage number for this operation
         * @param key the encryption key to use for MAC calculation
         * @param data the data to calculate the MAC for
         * @return the calculated MAC bytes
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/rdma/RdmaStatistics.java

        /**
         * Calculate average send latency in microseconds
         *
         * @return average send latency
         */
        public double getAverageSendLatencyMicros() {
            long sends = rdmaSends.get();
            if (sends == 0) {
                return 0.0;
            }
            return totalSendTime.get() / (double) sends / 1000.0; // Convert to microseconds
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  4. cmd/update-notifier.go

    	line2InColor := fmt.Sprintf(msgLine2Fmt, color.CyanBold(updateString))
    
    	// calculate the rectangular box size.
    	maxContentWidth := max(line1Length, line2Length)
    
    	// termWidth is set to a default one to use when we are
    	// not able to calculate terminal width via OS syscalls
    	termWidth := 25
    	if width, err := pb.GetTerminalWidth(); err == nil {
    		termWidth = width
    	}
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sat Mar 09 03:07:08 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java

            @Test
            @DisplayName("Should calculate size for null ciphers")
            void testSizeWithNullCiphers() {
                EncryptionNegotiateContext context = new EncryptionNegotiateContext(mockConfig, null);
    
                assertEquals(4, context.size());
            }
    
            @Test
            @DisplayName("Should calculate size for empty ciphers")
            void testSizeWithEmptyCiphers() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  6. cmd/http-tracer.go

    			inputBytes += len(k) + len(v)
    		}
    
    		// Calculate node name
    		nodeName := r.Host
    		if globalIsDistErasure {
    			nodeName = globalLocalNodeName
    		}
    		if host, port, err := net.SplitHostPort(nodeName); err == nil {
    			if port == "443" || port == "80" {
    				nodeName = host
    			}
    		}
    
    		// Calculate reqPath
    		reqPath := r.URL.RawPath
    		if reqPath == "" {
    			reqPath = r.URL.Path
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Sep 24 17:13:00 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/util/HMACT64Test.java

            for (int i = keyLen; i < 64; i++) {
                ipad[i] = 0x36;
                opad[i] = 0x5c;
            }
    
            // Calculate inner hash
            md5.reset();
            md5.update(ipad);
            md5.update(data);
            byte[] innerHash = md5.digest();
    
            // Calculate outer hash
            md5.reset();
            md5.update(opad);
            return md5.digest(innerHash);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/indexer/DocBoostMatcher.java

        }
    
        /**
         * Calculates the boost value for the given document data using the boost expression.
         * The method evaluates the boost expression and converts the result to a float value.
         * Supports Integer, Long, Float, Double, and String representations of numbers.
         *
         * @param map the document data as a map of field names to values
         * @return the calculated boost value as a float, or 0.0f if evaluation fails
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java

            }
        }
    
        @Nested
        @DisplayName("Size Calculation Tests")
        class SizeCalculationTests {
    
            @Test
            @DisplayName("Should calculate size correctly with single lock")
            void testSizeWithSingleLock() {
                Smb2Lock[] singleLock = new Smb2Lock[] { new Smb2Lock(0L, 100L, Smb2Lock.SMB2_LOCKFLAG_EXCLUSIVE_LOCK) };
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/util/HMACT64Test.java

            for (int i = keyLen; i < 64; i++) {
                ipad[i] = 0x36;
                opad[i] = 0x5c;
            }
    
            // Calculate inner hash
            md5.reset();
            md5.update(ipad);
            md5.update(data);
            byte[] innerHash = md5.digest();
    
            // Calculate outer hash
            md5.reset();
            md5.update(opad);
            byte[] expectedResult = md5.digest(innerHash);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.6K bytes
    - Viewed (0)
Back to top