EAP-TTLS: Fixed implicit challenge derivation to use correct output length
authorJouni Malinen <j@w1.fi>
Sun, 23 Mar 2008 10:07:59 +0000 (12:07 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 23 Mar 2008 10:07:59 +0000 (12:07 +0200)
commit30680e9332c96803533b9dae6105fd7b15b5bb52
tree18467776f5d9438096f41084c5ad0d1be51f860c
parente7d800335812c5df5f1b35b47e68df2d7d00ffb9
EAP-TTLS: Fixed implicit challenge derivation to use correct output length

The previous version was deriving unnecessarily large amount of output data
for the implicit challenge. With the TLS PRF, this was not causing any
problems because the output length is not explicitly bound into the
derivation. Anyway, it is better to use the correct output length should
the PRF be ever changed to a one that uses the output length to change the
beginning of the output data.
src/eap_peer/eap_ttls.c