From c2dfd9af8a8124c8a2287db5eb2053c1cfe8ae7c Mon Sep 17 00:00:00 2001 From: beck <> Date: Sat, 10 Nov 2018 00:18:25 +0000 Subject: Fix last of the empty hash nonsense ok jsing@ --- src/regress/lib/libssl/key_schedule/key_schedule.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/regress/lib') diff --git a/src/regress/lib/libssl/key_schedule/key_schedule.c b/src/regress/lib/libssl/key_schedule/key_schedule.c index 36211644fc..1db9214939 100644 --- a/src/regress/lib/libssl/key_schedule/key_schedule.c +++ b/src/regress/lib/libssl/key_schedule/key_schedule.c @@ -1,4 +1,4 @@ -/* $OpenBSD: key_schedule.c,v 1.2 2018/11/09 23:57:19 jsing Exp $ */ +/* $OpenBSD: key_schedule.c,v 1.3 2018/11/10 00:18:25 beck Exp $ */ /* * Copyright (c) 2018 Bob Beck * @@ -160,13 +160,10 @@ int main () { if (tls13_derive_handshake_secrets(secrets, ecdhe, 32, &cshello_hash)) FAIL("derive_handshake_secrets worked when it shouldn't(2)\n"); - /* XXX XXX this should get fixed when test vectors clarified */ - memcpy(secrets->derived_handshake.data, expected_derived_handshake, - 32); /* XXX fix hash here once test vector sorted */ - if (!tls13_derive_application_secrets(secrets, &chello_hash)) + if (!tls13_derive_application_secrets(secrets, &cshello_hash)) FAIL("derive_application_secrets failed\n"); - if (tls13_derive_application_secrets(secrets, &chello_hash)) + if (tls13_derive_application_secrets(secrets, &cshello_hash)) FAIL("derive_application_secrets worked when it " "shouldn't(2)\n"); -- cgit v1.2.3-55-g6feb