userver: crypto::algorithm::StringsEqualConstTimeComparator Struct Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
crypto::algorithm::StringsEqualConstTimeComparator Struct Reference

Performs constant-time string comparison comparator. More...

#include <userver/crypto/algorithm.hpp>

Public Member Functions

bool operator() (std::string_view x, std::string_view y) const noexcept
 
template<typename T >
auto operator() (const T &x, const T &y) const noexcept -> decltype(algorithm::AreStringsEqualConstTime(x.GetUnderlying(), y.GetUnderlying()))
 Overload for utils::StrongTypedef that hold string like objects.
 

Detailed Description

Performs constant-time string comparison comparator.

Examples
samples/postgres_auth/user_info_cache.hpp.

Definition at line 21 of file algorithm.hpp.

Member Function Documentation

◆ operator()() [1/2]

template<typename T >
auto crypto::algorithm::StringsEqualConstTimeComparator::operator() ( const T &  x,
const T &  y 
) const -> decltype(algorithm::AreStringsEqualConstTime(x.GetUnderlying(), y.GetUnderlying()))
inlinenoexcept

Overload for utils::StrongTypedef that hold string like objects.

Definition at line 28 of file algorithm.hpp.

◆ operator()() [2/2]

bool crypto::algorithm::StringsEqualConstTimeComparator::operator() ( std::string_view  x,
std::string_view  y 
) const
inlinenoexcept

Definition at line 22 of file algorithm.hpp.


The documentation for this struct was generated from the following file: