ConstantTimeCompare¶
Return true if the two ByteSeqs have equal contents. The time taken is
independent of the contents, so comparing a secret against a value an
attacker supplies does not tell them where the two first differ.
Sequences of different sizes are not equal, and that is answered before any byte is read.
Constructors¶
create¶
Returns¶
- ConstantTimeCompare val^
Public Functions¶
apply[optional S: ByteSeq box]¶
Parameters¶
- xs: S
- ys: S
Returns¶
- Bool val
eq¶
Parameters¶
- that: ConstantTimeCompare val
Returns¶
- Bool val
ne¶
Parameters¶
- that: ConstantTimeCompare val
Returns¶
- Bool val