Update tls13_hkdf_expand() to take the length of the data
authorMatt Caswell <matt@openssl.org>
Wed, 5 Jul 2017 10:23:16 +0000 (11:23 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 7 Jul 2017 14:02:09 +0000 (15:02 +0100)
commita19ae67d8da53a4a5878e34d1070d3aeb1f5963c
tree0900e79b3f98a6a4568f4c101098bb1d717a72cf
parentde2f409ef9de775df6db2c7de69b7bb0df21e380
Update tls13_hkdf_expand() to take the length of the data

In most scenarios the length of the input data is the hashsize, or 0 if
the data is NULL. However with the new ticket_nonce changes the length can
be different.

Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/3852)
ssl/ssl_locl.h
ssl/statem/extensions.c
ssl/tls13_enc.c
test/tls13secretstest.c