Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstantTimeByteEq ¶
ConstantTimeByteEq returns 1 if x == y, 0 otherwise.
func ConstantTimeCompare ¶
ConstantTimeCompare returns 1 if x and y are equal, 0 otherwise. Running time depends only on the length, never on the content: a short-circuit comparison leaks how many bytes match, and that is enough to reconstruct a hash byte by byte.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.