]> git.ipfire.org Git - thirdparty/hostap.git/commit
EAP-pwd: Enforce 1 < rand,mask < r and rand+mask mod r > 1
authorJouni Malinen <jouni@codeaurora.org>
Fri, 5 Apr 2019 09:37:21 +0000 (12:37 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 9 Apr 2019 14:11:15 +0000 (17:11 +0300)
commit4396f74a36e16e32a51238d84bf6225b89c8b25c
treeaa7d21c144b92b4a66ac9e75d42bc9b03eb859fa
parent2e3849bcf59dc87302349b47ffbfce273fe4bc10
EAP-pwd: Enforce 1 < rand,mask < r and rand+mask mod r > 1

RFC 5931 has these conditions as MUST requirements, so better follow
them explicitly even if the rand,mask == 0 or rand+mask == 0 or 1 cases
are very unlikely to occur in practice while generating random values
locally.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/eap_common/eap_pwd_common.c
src/eap_common/eap_pwd_common.h
src/eap_peer/eap_pwd.c
src/eap_server/eap_server_pwd.c