Vocabularycrypto.
utilsInputsOutputs| ? | t if all zeros, f otherwise |
Word descriptionChecks if all bytes in a sequence are zero in constant time. Always examines all bytes regardless of where non-zero bytes occur.
ExamplesUSING: byte-arrays crypto.utils ;
B{ 0 0 0 0 } constant-time-zero?
! => t
USING: byte-arrays crypto.utils ;
B{ 0 0 1 0 } constant-time-zero?
! => f
Definition