true if the arrays have the same length and content,
false otherwise.
bool ctEqual(const(ubyte)[] a, const(ubyte)[] b) pure nothrow @nogc @safeCompares two byte arrays in constant time.
This function always examines all bytes regardless of whether a mismatch is found, preventing timing attacks that could determine the position of the first differing byte.
a | First byte array to compare. |
b | Second byte array to compare. |
true if the arrays have the same length and content,
false otherwise.