In case secret was not provided we must return null for hmac generation