hwsecurity / de.cotech.hw.util / Arrays / constantTimeAreEqual /
constantTimeAreEqual
open fun constantTimeAreEqual(expected: Array< Byte>, supplied: Array< Byte>): Boolean
A constant time equals comparison - does not terminate early iftest will fail. For best results always pass the expected valueas the first parameter.
Return
true if arrays equal, false otherwise.
Parameters
Name | Summary |
---|---|
expected | first array |
supplied | second array |