NSS: Implement TLS PRF using new TLS extractor interface
authorJouni Malinen <j@w1.fi>
Wed, 30 Sep 2009 17:12:32 +0000 (20:12 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 30 Sep 2009 17:12:32 +0000 (20:12 +0300)
commitebf214e6700bfbc034b529a38349f1a793173171
treef858da35d7b90d6eea76f2b793778e11e8879ee1
parent1c766b094a82a669a1d0bb7f8d132b322e56e81d
NSS: Implement TLS PRF using new TLS extractor interface

This allows NSS to be used to derive EAP-TLS/PEAP/TTLS keying material.
NSS requires a patch from
https://bugzilla.mozilla.org/show_bug.cgi?id=507359
to provide the new API. In addition, that patch needs to be modified to
add the 16-bit context length value in SSL_ExportKeyingMaterial() only if
contextlen != 0 in order to match with the EAP-TLS/PEAP/TTLS use cases.
This issue seems to be coming from the unfortunate incompatibility in
draft-ietf-tls-extractor-07.txt (draft-ietf-tls-extractor-00.txt would
have used compatible PRF construction).

At this point, it is unclear how this will be resolved eventually, but
anyway, this shows a mechanism that can be used to implement EAP key
derivation with NSS with a small patch to NSS.
src/crypto/tls_nss.c