logo

Crowdly

Наведений С код порівняння рядків а і b виконується за константний час:...

✅ 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;

}

50%
50%
More questions like this

Want instant access to all verified answers on vns.lpnu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome