Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 67 for hashFunction (0.25 sec)

  1. guava/src/com/google/common/hash/HashingOutputStream.java

      // be (optionally) be combined with another if needed (with something like
      // MultiplexingOutputStream).
      public HashingOutputStream(HashFunction hashFunction, OutputStream out) {
        super(checkNotNull(out));
        this.hasher = checkNotNull(hashFunction.newHasher());
      }
    
      @Override
      public void write(int b) throws IOException {
        hasher.putByte((byte) b);
        out.write(b);
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 2.6K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/hash/MessageDigestAlgorithmBenchmark.java

        SHA_256("SHA-256", Hashing.sha256()),
        SHA_384("SHA-384", Hashing.sha384()),
        SHA_512("SHA-512", Hashing.sha512());
    
        private final String algorithmName;
        private final HashFunction hashFn;
    
        Algorithm(String algorithmName, HashFunction hashFn) {
          this.algorithmName = algorithmName;
          this.hashFn = hashFn;
        }
    
        public MessageDigest getMessageDigest() {
          try {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.5K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/hash/MessageDigestAlgorithmBenchmark.java

        SHA_256("SHA-256", Hashing.sha256()),
        SHA_384("SHA-384", Hashing.sha384()),
        SHA_512("SHA-512", Hashing.sha512());
    
        private final String algorithmName;
        private final HashFunction hashFn;
    
        Algorithm(String algorithmName, HashFunction hashFn) {
          this.algorithmName = algorithmName;
          this.hashFn = hashFn;
        }
    
        public MessageDigest getMessageDigest() {
          try {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/hash/HashingInputStream.java

       * Creates an input stream that hashes using the given {@link HashFunction} and delegates all data
       * read from it to the underlying {@link InputStream}.
       *
       * <p>The {@link InputStream} should not be read from before or after the hand-off.
       */
      public HashingInputStream(HashFunction hashFunction, InputStream in) {
        super(checkNotNull(in));
        this.hasher = checkNotNull(hashFunction.newHasher());
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/hash/HashingOutputStream.java

      // be (optionally) be combined with another if needed (with something like
      // MultiplexingOutputStream).
      public HashingOutputStream(HashFunction hashFunction, OutputStream out) {
        super(checkNotNull(out));
        this.hasher = checkNotNull(hashFunction.newHasher());
      }
    
      @Override
      public void write(int b) throws IOException {
        hasher.putByte((byte) b);
        out.write(b);
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 2.6K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/internal/hash/DefaultChecksumService.java

            FileSystem fileSystem,
            FileTimeStampInspector fileTimeStampInspector,
            String name,
            HashFunction hashFunction,
            FileHasherStatistics.Collector statisticsCollector
        ) {
            return new CachingFileHasher(new ChecksumHasher(hashFunction), fileStore, stringInterner, fileTimeStampInspector, name + "-checksums", fileSystem, 1000, statisticsCollector);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Jun 04 22:23:37 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

      // From http://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#Mac
      private static final ImmutableTable<String, SecretKey, HashFunction> ALGORITHMS =
          new ImmutableTable.Builder<String, SecretKey, HashFunction>()
              .put("HmacMD5", MD5_KEY, Hashing.hmacMd5(MD5_KEY))
              .put("HmacSHA1", SHA1_KEY, Hashing.hmacSha1(SHA1_KEY))
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/AbstractCompositeHashFunction.java

    @ElementTypesAreNonnullByDefault
    abstract class AbstractCompositeHashFunction extends AbstractHashFunction {
    
      @SuppressWarnings("Immutable") // array not modified after creation
      final HashFunction[] functions;
    
      AbstractCompositeHashFunction(HashFunction... functions) {
        for (HashFunction function : functions) {
          checkNotNull(function);
        }
        this.functions = functions;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Oct 06 00:47:57 UTC 2021
    - 5.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/hash/AbstractHashFunction.java

    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Skeleton implementation of {@link HashFunction} in terms of {@link #newHasher()}.
     *
     * <p>TODO(lowasser): make public
     */
    @Immutable
    @ElementTypesAreNonnullByDefault
    abstract class AbstractHashFunction implements HashFunction {
      @Override
      public <T extends @Nullable Object> HashCode hashObject(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/hash/MessageDigestHashFunctionTest.java

      //  - For example, the "SHA-1" algorithm might be referred to as "SHA1".
      //  - The algorithm name is not case-sensitive.
      private static final ImmutableMap<String, HashFunction> ALGORITHMS =
          new ImmutableMap.Builder<String, HashFunction>()
              .put("MD5", Hashing.md5())
              .put("SHA", Hashing.sha1()) // Not the official name, but still works
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 4.2K bytes
    - Viewed (0)
Back to top