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

Method hmacSha1

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

Returns a hash function implementing the Message Authentication Code (MAC) algorithm, using the SHA-1 (160 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

282 * @since 20.0
283 */
284 public static HashFunction hmacSha1(Key key) {
285 return new MacHashFunction("HmacSHA1", key, hmacToString("hmacSha1", key));
286 }
287
288 /**
289 * 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