goto out;
}
- if (memcmp(ph + 1, check->v, check->l) != 0) {
+ if (timingsafe_bcmp(ph + 1, check->v, check->l) != 0) {
plog(ASL_LEVEL_ERR,
"Hash verification failed\n");
vfree(payload);
goto end;
}
- if (memcmp(p, hash->v, hash->l) != 0) {
+ if (timingsafe_bcmp(p, hash->v, hash->l) != 0) {
plog(ASL_LEVEL_ERR,
"ignore information due to hash mismatch\n");
goto end;
}
- result = memcmp(my_hash->v, r_hash, my_hash->l);
+ result = timingsafe_bcmp(my_hash->v, r_hash, my_hash->l);
vfree(my_hash);
if (result) {
goto end;
}
- result = memcmp(my_hash->v, r_hash, my_hash->l);
+ result = timingsafe_bcmp(my_hash->v, r_hash, my_hash->l);
vfree(my_hash);
if (result) {
goto end;
}
- result = memcmp(my_hash->v, r_hash, my_hash->l);
+ result = timingsafe_bcmp(my_hash->v, r_hash, my_hash->l);
vfree(my_hash);
if (result) {
goto end;
}
- result = memcmp(my_hash->v, r_hash, my_hash->l);
+ result = timingsafe_bcmp(my_hash->v, r_hash, my_hash->l);
vfree(my_hash);
if (result) {