Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 176 for calculate (0.05 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/test/java/jcifs/util/CryptoTest.java

    import jcifs.BaseTest;
    
    /**
     * Test class for Crypto utility functionality
     */
    @DisplayName("Crypto Utility Tests")
    class CryptoTest extends BaseTest {
    
        @Test
        @DisplayName("Should calculate MD4 hash correctly")
        void testMD4Hash() {
            // Given
            String input = "Hello World";
            byte[] data = input.getBytes();
    
            // When
            MessageDigest md4 = Crypto.getMD4();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  9. cmd/streaming-signature-v4.go

    	// Calculate signature.
    	newSignature := getSignature(signingKey, stringToSign)
    
    	return newSignature
    }
    
    // getTrailerChunkSignature - get trailer chunk signature.
    func (cr *s3ChunkedReader) getTrailerChunkSignature() string {
    	hashedChunk := hex.EncodeToString(cr.chunkSHA256Writer.Sum(nil))
    
    	// Calculate string to sign.
    	alg := signV4ChunkedAlgorithmTrailer + "\n"
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Mar 30 00:56:02 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

            @Test
            @DisplayName("Should calculate size correctly with no data")
            void testSizeWithNoData() {
                request.setData(new byte[0], 0, 0);
                int expectedSize = ((Smb2Constants.SMB2_HEADER_LENGTH + 48 + 7) / 8) * 8;
                assertEquals(expectedSize, request.size());
            }
    
            @Test
            @DisplayName("Should calculate size correctly with data")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
Back to top