bytinbit / strongswan

strongSwan - IPsec-based VPN
https://www.strongswan.org
Other
2 stars 0 forks source link

libtls: Client calculates application keys #17

Closed ryru closed 4 years ago

ryru commented 4 years ago

Aufwandschätzung: soll=13 Stunden

The client now has the information to calculate the keys used to encrypt application traffic. It uses the following information in this calculation:

We calculate the SHA256 hash of all handshake messages to this point (Client Hello, Server Hello, Encrypted Extensions, Server Certificate, Server Certificate Verify, Server Finished). The hash input does not include the 5-byte "record" headers of ClientHello and ServerHello.

Consider: