Timing-attack-resistant comparison. Takes time proportional to length of first argument.
Declared in <util/strencodings.h>
template<typename T>
bool
TimingResistantEqual(
T const& a,
T const& b);
true if a and b are equal, false otherwise.
| Name | Description |
|---|---|
| a | The first sequence to compare. |
| b | The second sequence to compare. |