Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 198 for alrgorithm (0.12 sec)

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

         * @param algorithms  The checksum algorithms to use, must not be {@code null}.
         * @return The calculated checksums, indexed by algorithms, never {@code null}.
         * @throws NullPointerException if passed in any parameter is {@code null}.
         */
        @Nonnull
        Map<ChecksumAlgorithm, String> calculate(@Nonnull byte[] data, @Nonnull Collection<ChecksumAlgorithm> algorithms);
    
        /**
    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/internal/smb2/nego/CompressionNegotiateContext.java

        /**
         * Validates if the compression algorithm is known.
         *
         * @param algorithm the algorithm to validate
         * @return true if the algorithm is known
         */
        private boolean isValidCompressionAlgorithm(int algorithm) {
            return algorithm == COMPRESSION_NONE || algorithm == COMPRESSION_LZ77 || algorithm == COMPRESSION_LZ77_HUFFMAN
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/compression/CompressionService.java

         *
         * @param algorithm the compression algorithm to check
         * @return true if the algorithm is supported
         */
        boolean isAlgorithmSupported(int algorithm);
    
        /**
         * Gets the list of supported compression algorithms.
         *
         * @return array of supported algorithm constants
         */
        int[] getSupportedAlgorithms();
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/CompressionInterceptor.kt

     */
    open class CompressionInterceptor(
      vararg val algorithms: DecompressionAlgorithm,
    ) : Interceptor {
      internal val acceptEncoding =
        algorithms
          .map {
            it.encoding
          }.joinToString(separator = ", ")
    
      override fun intercept(chain: Interceptor.Chain): Response =
        if (algorithms.isNotEmpty() && chain.request().header("Accept-Encoding") == null) {
          val request =
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Aug 01 06:04:22 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java

            }
        }
    
        @Nested
        @DisplayName("Encoding Tests")
        class EncodingTests {
    
            @Test
            @DisplayName("Should encode single hash algorithm with salt")
            void testEncodeSingleHashAlgoWithSalt() {
                int[] hashAlgos = { PreauthIntegrityNegotiateContext.HASH_ALGO_SHA512 };
                byte[] salt = { 0x01, 0x02, 0x03, 0x04 };
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 34K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/security/MessageDigestUtil.java

        public static MessageDigest getInstance(final String algorithm) {
            assertArgumentNotEmpty("algorithm", algorithm);
    
            try {
                return MessageDigest.getInstance(algorithm);
            } catch (final NoSuchAlgorithmException e) {
                throw new NoSuchAlgorithmRuntimeException(e);
            }
        }
    
        /**
         * Hashes the specified text using the given algorithm and converts it to a string.
         *
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/QuantilesAlgorithmTest.java

        for (QuantilesAlgorithm algorithm : NON_REFERENCE_ALGORITHMS) {
          Map<Integer, Double> quantiles = algorithm.multipleQuantiles(indexes, 100, dataset.clone());
          assertWithMessage("Wrong keys from " + algorithm).that(quantiles.keySet()).isEqualTo(indexes);
          for (int i : indexes) {
            assertWithMessage("Mismatch between %s and %s at %s", algorithm, REFERENCE_ALGORITHM, i)
                .that(quantiles.get(i))
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 28 01:26:26 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/compression/DefaultCompressionService.java

            }
        }
    
        @Override
        public byte[] decompress(byte[] compressedData, int algorithm) throws CIFSException {
            if (compressedData == null) {
                throw new CIFSException("Compressed data cannot be null");
            }
            return decompress(compressedData, 0, compressedData.length, algorithm);
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/PreauthIntegrityService.java

        /**
         * Gets the name of a hash algorithm.
         *
         * @param algorithm the algorithm constant
         * @return the algorithm name
         */
        public static String getHashAlgorithmName(int algorithm) {
            switch (algorithm) {
            case HASH_ALGO_SHA512:
                return "SHA-512";
            default:
                return "Unknown(0x" + Integer.toHexString(algorithm) + ")";
            }
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  10. cmd/bitrot.go

    	}
    	for algorithm := range bitrotAlgorithms {
    		if !algorithm.Available() {
    			continue
    		}
    
    		checksum, err := hex.DecodeString(checksums[algorithm])
    		if err != nil {
    			logger.Fatal(errSelfTestFailure, fmt.Sprintf("bitrot: failed to decode %v checksum %s for selftest: %v", algorithm, checksums[algorithm], err))
    		}
    		var (
    			hash = algorithm.New()
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Feb 26 19:26:13 UTC 2025
    - 7.7K bytes
    - Viewed (0)
Back to top