12345module juptune.crypto.memory;
bool constantTimeCompare(
const const void[] other
);
Compares this memory to another memory in constant time for the given length of this memory.
othermust have the same length as this memory. There is no valid usecase for comparing secure memory of different lengths.
You should always use this function if othercontains sensitive data. Failure to do so opens you up to timing attacks.
true if the memory is equal, false otherwise.
12345module juptune.crypto.memory;
bool constantTimeCompare(
SecureMemory other
);
ditto.