userver: crypto::algorithm::StringsEqualConstTimeComparator Struct Reference
Loading...
Searching...
No Matches
crypto::algorithm::StringsEqualConstTimeComparator Struct Reference

#include <userver/crypto/algorithm.hpp>

Detailed Description

Performs constant-time string comparison comparator.

Examples
samples/postgres_auth/user_info_cache.hpp.

Definition at line 20 of file 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.
 

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 27 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 21 of file algorithm.hpp.


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