
75
Security and the Layered Architecture
of the handshake session). Instead, new keys are derived from the TLS master secret
as follows:
K1 (128 bytes) = PRF (master_secret, "client EAP encryption," ClientHello.random+ServerHello.random)
K2 (64 bytes) = PRF ("", "client EAP encryption", ClientHello.random+ServerHello.random)
Alice_to_Bob_Encryption_Key = K1 (Bytes 0–31).
Bob_to_Alice_Encryption_Key = K1 (Bytes 32–63) or same as Alice_to_Bob_Encryption_Key.
Alice_to_Bob_Authentication_Key = K1 (Bytes 64–95)
Bob_to_Alice_Encryption_Key = K1 (Bytes 96–127) or same as Alice_to_Bob_Authentication_Key.
Alice_to_Bob_IV = K2 (Bytes 0–31).
Bob_to_Alice_IV ...