]> git.ipfire.org Git - thirdparty/hostap.git/commit
EAP-pwd: Remove unused checks for cofactor > 1 cases
authorJouni Malinen <j@w1.fi>
Sat, 13 Apr 2019 14:30:22 +0000 (17:30 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 13 Apr 2019 15:28:05 +0000 (18:28 +0300)
commit8b093db2c3f489a74b67f687becf750d24fcf626
tree5fafa559a096dbf81319cceab2fbb433c13a2c09
parentc7c267fa51520126a73ee745915ea115160d30b4
EAP-pwd: Remove unused checks for cofactor > 1 cases

None of the ECC groups supported in the implementation had a cofactor
greater than 1, so these checks are unreachable and for all cases, the
cofactor is known to be 1. Furthermore, RFC 5931 explicitly disallow use
of ECC groups with cofactor larger than 1, so this checks cannot be
needed for any curve that is compliant with the RFC.

Remove the unneeded group cofactor checks to simplify the
implementation.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/eap_common/eap_pwd_common.c
src/eap_peer/eap_pwd.c
src/eap_server/eap_server_pwd.c