Performs constant-time string comparison comparator.
More...
#include <userver/crypto/algorithm.hpp>
Performs constant-time string comparison comparator.
- Examples
- samples/postgres_auth/user_info_cache.hpp.
Definition at line 21 of file algorithm.hpp.
◆ 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 |
◆ operator()() [2/2]
bool crypto::algorithm::StringsEqualConstTimeComparator::operator() |
( |
std::string_view |
x, |
|
|
std::string_view |
y |
|
) |
| const |
|
inlinenoexcept |
The documentation for this struct was generated from the following file: