Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testMultipleUpdatesDoFinal (0.14 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

        assertEquals(
            HashCode.fromBytes(mac.doFinal()),
            hmacSha1(SHA1_KEY).newHasher().putString("hello", UTF_8).putString("world", UTF_8).hash());
      }
    
      public void testMultipleUpdatesDoFinal() throws Exception {
        Mac mac = Mac.getInstance("HmacSHA1");
        mac.init(SHA1_KEY);
        mac.update("hello".getBytes(UTF_8));
        mac.update("world".getBytes(UTF_8));
    
        assertEquals(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 14.2K bytes
    - Click Count (0)
Back to Top