[#TimingResistantEqual]
= TimingResistantEqual
:mrdocs:

Timing&hyphen;attack&hyphen;resistant comparison&period; Takes time proportional to length of first argument&period;

== Synopsis

Declared in `&lt;util&sol;strencodings&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename T&gt;
bool
TimingResistantEqual(
    T const& a,
    T const& b);
----

== Return Value

true if a and b are equal, false otherwise&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *a*
| The first sequence to compare&period;
| *b*
| The second sequence to compare&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
