Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

            Hashing.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(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 13.8K bytes
    - Viewed (0)
Back to top