diff options
author | Matt Caswell <matt@openssl.org> | 2017-07-05 11:23:16 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2017-07-07 15:02:09 +0100 |
commit | a19ae67d8da53a4a5878e34d1070d3aeb1f5963c (patch) | |
tree | 0900e79b3f98a6a4568f4c101098bb1d717a72cf /test/tls13secretstest.c | |
parent | de2f409ef9de775df6db2c7de69b7bb0df21e380 (diff) | |
download | openssl-a19ae67d8da53a4a5878e34d1070d3aeb1f5963c.zip openssl-a19ae67d8da53a4a5878e34d1070d3aeb1f5963c.tar.gz openssl-a19ae67d8da53a4a5878e34d1070d3aeb1f5963c.tar.bz2 |
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)
Diffstat (limited to 'test/tls13secretstest.c')
-rw-r--r-- | test/tls13secretstest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tls13secretstest.c b/test/tls13secretstest.c index daccd7c..e052d0b 100644 --- a/test/tls13secretstest.c +++ b/test/tls13secretstest.c @@ -226,8 +226,8 @@ static int test_secret(SSL *s, unsigned char *prk, return 0; } - if (!tls13_hkdf_expand(s, md, prk, label, labellen, hash, gensecret, - hashsize)) { + if (!tls13_hkdf_expand(s, md, prk, label, labellen, hash, hashsize, + gensecret, hashsize)) { TEST_error("Secret generation failed"); return 0; } |