Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 8 of 8 for getDigestLength (0.1 seconds)

  1. 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;
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 1.6K bytes
    - Click Count (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;
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 1.6K bytes
    - Click Count (0)
  3. src/test/java/jcifs/util/HMACT64Test.java

                mockedCrypto.when(Crypto::getMD5).thenReturn(mockMd5);
                when(mockMd5.getDigestLength()).thenReturn(16); // MD5 digest length is 16
                HMACT64 hmac = new HMACT64(TEST_KEY);
                assertEquals(16, hmac.engineGetDigestLength());
                verify(mockMd5, times(1)).getDigestLength();
            }
        }
    
        @Test
        void testEngineDigest() throws NoSuchAlgorithmException {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.6K bytes
    - Click Count (0)
  4. src/main/java/jcifs/util/HMACT64.java

            } catch (final 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
        protected void engineUpdate(final byte b) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb1/util/HMACT64.java

            } catch (final Exception ex) {
                throw new IllegalStateException();
            }
        }
    
        @Override
        protected int engineGetDigestLength() {
            return md5.getDigestLength();
        }
    
        @Override
        protected void engineReset() {
            md5.reset();
            md5.update(ipad);
        }
    
        @Override
        protected void engineUpdate(final byte b) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  6. 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));
        }
        int maxSize = digest.getDigestLength();
        assertThrows(
            IllegalArgumentException.class,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 4.9K bytes
    - Click Count (0)
  7. 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(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Feb 13 17:34:21 GMT 2025
    - 4.9K bytes
    - Click Count (0)
  8. 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));
        }
        int maxSize = digest.getDigestLength();
        assertThrows(
            IllegalArgumentException.class,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 4.9K bytes
    - Click Count (0)
Back to Top