function getHmac(key, message, blockSize = undefined) {
  const hasher = new Sha1();
  const hmacer = new Hmac(hasher, key, blockSize);
  return bytesToHex(hmacer.getHmac(message));
}
helper to get an hmac of the given message with the given key.