(byte[] key, byte[] data)
| 165 | |
| 166 | /// One-shot HMAC-SHA-256 (recommended default). |
| 167 | public static byte[] sha256(byte[] key, byte[] data) { |
| 168 | return create(Hash.SHA256, key).doFinal(data); |
| 169 | } |
| 170 | |
| 171 | /// One-shot HMAC-SHA-384. |
| 172 | public static byte[] sha384(byte[] key, byte[] data) { |