~mdw
/
secnet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
crypto: Copy an AES (Rijndael) implementation into tree
[secnet]
/
site.c
diff --git
a/site.c
b/site.c
index
db65bd8
..
b9b4d0d
100644
(file)
--- a/
site.c
+++ b/
site.c
@@
-463,7
+463,7
@@
static bool_t check_msg(struct site *st, uint32_t type, struct msg *m,
return False;
}
if (type==LABEL_MSG2) return True;
return False;
}
if (type==LABEL_MSG2) return True;
- if (
memcmp
(m->nR,st->remoteN,NONCELEN)!=0) {
+ if (
!consttime_memeq
(m->nR,st->remoteN,NONCELEN)!=0) {
*error="wrong remotely-generated nonce";
return False;
}
*error="wrong remotely-generated nonce";
return False;
}