[erlang-patches] TLS 1.2: Calculate handshake hash only when needed

Andreas Schultz <>
Fri Feb 24 18:08:14 CET 2012


Some time ago we discussed how to split the TLS 1.2 changes
for review. Here is the first part of that. It is possibly
the most intrusive part, but also the simplest to review.

git fetch :RoadRunnr/otp.git tls12-to-upstream


Calculate handshake hash only when needed

TLS/SSL version before 1.2 always used a MD5/SHA combination
for the handshake hashes. With TLS 1.2 the default hash is
SHA256 and it is possible to negotiate a different hash.

This change delays the calculation of the handshake
hashes until they are really needed. At that point the hash
to use should be known.

For now MD5/SHA is still hard coded.


Dipl. Inform.
Andreas Schultz

phone: +49-391-819099-224
mobil: +49-179-7654368

------------------ managed broadband access ------------------

Travelping GmbH               phone:           +49-391-8190990
Roentgenstr. 13               fax:           +49-391-819099299
D-39108 Magdeburg             email:       
GERMANY                       web:   http://www.travelping.com

Company Registration: HRB21276 Handelsregistergericht Chemnitz
Geschaeftsfuehrer: Holger Winkelmann | VAT ID No.: DE236673780

More information about the erlang-patches mailing list