MCPcopy Index your code
hub / github.com/antlr/codebuff / hmacSha256

Method hmacSha256

output/java_guava/1.4.19/Hashing.java:348–350  ·  view source on GitHub ↗

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

346
347
348 public static HashFunction hmacSha256(Key key) {
349 return new MacHashFunction("HmacSHA256", key, hmacToString("hmacSha256", key));
350 }
351
352 /**
353 * 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