Replace hmac_sha256 with class