MCPcopy Create free account
hub / github.com/antlr/codebuff / hmacMd5

Method hmacMd5

corpus/java/training/guava/hash/Hashing.java:258–260  ·  view source on GitHub ↗

Returns a hash function implementing the Message Authentication Code (MAC) algorithm, using the MD5 (128 hash bits) hash function and the given secret key. @param key the secret key @throws IllegalArgumentException if the given key is inappropriate for initializing this MAC @since 20.0

(Key key)

Source from the content-addressed store, hash-verified

256 * @since 20.0
257 */
258 public static HashFunction hmacMd5(Key key) {
259 return new MacHashFunction("HmacMD5", key, hmacToString("hmacMd5", key));
260 }
261
262 /**
263 * Returns a hash function implementing the Message Authentication Code (MAC) algorithm, using the

Callers

nothing calls this directly

Calls 2

hmacToStringMethod · 0.95
checkNotNullMethod · 0.45

Tested by

no test coverage detected