Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for getDigestLength (1 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(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  2. 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(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  3. 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);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. 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 {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.6K bytes
    - Viewed (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) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  6. 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) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.6K bytes
    - Viewed (0)
Back to top