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)
| 308 | * @since 20.0 |
| 309 | */ |
| 310 | public static HashFunction hmacSha256(Key key) { |
| 311 | return new MacHashFunction("HmacSHA256", key, hmacToString("hmacSha256", key)); |
| 312 | } |
| 313 | |
| 314 | /** |
| 315 | * Returns a hash function implementing the Message Authentication Code (MAC) algorithm, using the |
nothing calls this directly
no test coverage detected