Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for getDigestLength (0.23 sec)

  1. android/guava/src/com/google/common/hash/MessageDigestHashFunction.java

        this.bytes = prototype.getDigestLength();
        this.toString = checkNotNull(toString);
        this.supportsClone = supportsClone(prototype);
      }
    
      MessageDigestHashFunction(String algorithmName, int bytes, String toString) {
        this.toString = checkNotNull(toString);
        this.prototype = getMessageDigest(algorithmName);
        int maxLength = prototype.getDigestLength();
        checkArgument(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 25 20:32:46 GMT 2022
    - 5K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/hash/MessageDigestCreationBenchmark.java

        for (int i = 0; i < reps; i++) {
          retValue ^= MessageDigest.getInstance(algorithm).getDigestLength();
        }
        return retValue;
      }
    
      @Benchmark
      int clone(int reps) throws Exception {
        int retValue = 0;
        for (int i = 0; i < reps; i++) {
          retValue ^= ((MessageDigest) md.clone()).getDigestLength();
        }
        return retValue;
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.6K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/hash/MessageDigestCreationBenchmark.java

        for (int i = 0; i < reps; i++) {
          retValue ^= MessageDigest.getInstance(algorithm).getDigestLength();
        }
        return retValue;
      }
    
      @Benchmark
      int clone(int reps) throws Exception {
        int retValue = 0;
        for (int i = 0; i < reps; i++) {
          retValue ^= ((MessageDigest) md.clone()).getDigestLength();
        }
        return retValue;
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/hash/MessageDigestHashFunctionTest.java

          for (int bytes = 4; bytes <= digest.getDigestLength(); bytes++) {
            assertEquals(
                HashCode.fromBytes(Arrays.copyOf(digest.digest(input), bytes)),
                new MessageDigestHashFunction(algorithmName, bytes, algorithmName).hashBytes(input));
          }
          try {
            int maxSize = digest.getDigestLength();
            new MessageDigestHashFunction(algorithmName, maxSize + 1, algorithmName);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/hash/MessageDigestHashFunctionTest.java

          for (int bytes = 4; bytes <= digest.getDigestLength(); bytes++) {
            assertEquals(
                HashCode.fromBytes(Arrays.copyOf(digest.digest(input), bytes)),
                new MessageDigestHashFunction(algorithmName, bytes, algorithmName).hashBytes(input));
          }
          try {
            int maxSize = digest.getDigestLength();
            new MessageDigestHashFunction(algorithmName, maxSize + 1, algorithmName);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/util/HMACT64.java

                return md5.digest(buf, offset, len);
            } catch (Exception ex) {
                throw new IllegalStateException();
            }
        }
    
        protected int engineGetDigestLength() {
            return md5.getDigestLength();
        }
    
        protected void engineReset() {
            md5.reset();
            md5.update(ipad);
        }
    
        protected void engineUpdate(byte b) {
            md5.update(b);
        }
    
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 3.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/util/HMACT64.java

            }
            catch ( Exception ex ) {
                throw new IllegalStateException();
            }
        }
    
    
        @Override
        protected int engineGetDigestLength () {
            return this.md5.getDigestLength();
        }
    
    
        @Override
        protected void engineReset () {
            this.md5.reset();
            this.md5.update(this.ipad);
        }
    
    
        @Override
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 3.5K bytes
    - Viewed (0)
Back to top