diff options
Diffstat (limited to 'src/buildtool/crypto/hasher.cpp')
-rw-r--r-- | src/buildtool/crypto/hasher.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/buildtool/crypto/hasher.cpp b/src/buildtool/crypto/hasher.cpp index 41182559..7c5d1d9c 100644 --- a/src/buildtool/crypto/hasher.cpp +++ b/src/buildtool/crypto/hasher.cpp @@ -66,15 +66,15 @@ struct InitializeVisitor final { static constexpr std::string_view kLogInfo = "Initialize"; // NOLINTNEXTLINE(google-runtime-references) - [[nodiscard]] inline auto operator()(SHA_CTX& ctx) const -> bool { + [[nodiscard]] auto operator()(SHA_CTX& ctx) const -> bool { return SHA1_Init(&ctx) == kOpenSslTrue; } // NOLINTNEXTLINE(google-runtime-references) - [[nodiscard]] inline auto operator()(SHA256_CTX& ctx) const -> bool { + [[nodiscard]] auto operator()(SHA256_CTX& ctx) const -> bool { return SHA256_Init(&ctx) == kOpenSslTrue; } // NOLINTNEXTLINE(google-runtime-references) - [[nodiscard]] inline auto operator()(SHA512_CTX& ctx) const -> bool { + [[nodiscard]] auto operator()(SHA512_CTX& ctx) const -> bool { return SHA512_Init(&ctx) == kOpenSslTrue; } }; @@ -86,15 +86,15 @@ struct UpdateVisitor final { : data_{*data} {} // NOLINTNEXTLINE(google-runtime-references) - [[nodiscard]] inline auto operator()(SHA_CTX& ctx) const -> bool { + [[nodiscard]] auto operator()(SHA_CTX& ctx) const -> bool { return SHA1_Update(&ctx, data_.data(), data_.size()) == kOpenSslTrue; } // NOLINTNEXTLINE(google-runtime-references) - [[nodiscard]] inline auto operator()(SHA256_CTX& ctx) const -> bool { + [[nodiscard]] auto operator()(SHA256_CTX& ctx) const -> bool { return SHA256_Update(&ctx, data_.data(), data_.size()) == kOpenSslTrue; } // NOLINTNEXTLINE(google-runtime-references) - [[nodiscard]] inline auto operator()(SHA512_CTX& ctx) const -> bool { + [[nodiscard]] auto operator()(SHA512_CTX& ctx) const -> bool { return SHA512_Update(&ctx, data_.data(), data_.size()) == kOpenSslTrue; } |