public static KeyData createHmacKeyData(byte[] keyValue, int tagSize) throws Exception {
    return createKeyData(
        createHmacKey(keyValue, tagSize),
        MacConfig.HMAC_TYPE_URL,
        KeyData.KeyMaterialType.SYMMETRIC);
  }
@return a {@code KeyData} containing a {@code HmacKey}.
java_src/src/main/java/com/google/crypto/tink/testing/TestUtil.java