✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Наведений С код порівняння рядків а і b виконується за константний час:
bool insecureStringCompare(const void *a, const void *b, size_t length) {
const char *ca = a, *cb = b;
for (size_t i = 0; i < length; i++) {
if (ca[i] != cb[i]) {
return false;
}
}
return true;
}
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!