SAE: Add forgotten commit element validation step for FFC groups
authorJouni Malinen <j@w1.fi>
Sun, 10 Mar 2013 09:45:55 +0000 (11:45 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 10 Mar 2013 09:45:55 +0000 (11:45 +0200)
commitbb0122f3e8ef1f0e82ebb7121e997dc107e5449e
treef4711fb4b4c2bc2df5e647bf4bc6b53004ba7eb6
parent0bb229a6e839ee7f72d817220834e6172135097b
SAE: Add forgotten commit element validation step for FFC groups

The peer commit element needs to be validated to pass one of the steps
listed in IEEE 802.11, 11.3.5.4:
scalar-op(r, ELEMENT) = 1 modulo p

Similar step was present for ECC groups, but was missing for FFC groups.
This is needed to avoid dictionary attacks.

Thanks to Michael Roßberg and Sascha Grau for reporting this.

Signed-hostap: Jouni Malinen <j@w1.fi>
src/common/sae.c