devssl: use tsmemcmp() to compare mac to close timing side channel
This commit is contained in:
parent
5243969ba2
commit
21b70c782a
1 changed files with 1 additions and 1 deletions
|
@ -1439,7 +1439,7 @@ checkdigestb(Dstate *s, Block *bin)
|
|||
*p = n;
|
||||
(*s->hf)(msgid, 4, digest, &ss);
|
||||
|
||||
if(memcmp(digest, bin->rp, s->diglen) != 0)
|
||||
if(tsmemcmp(digest, bin->rp, s->diglen) != 0)
|
||||
error("bad digest");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue