From 6dfef1400d223867427f0f78d58f09df8d343714 Mon Sep 17 00:00:00 2001 From: John Safranek Date: Mon, 22 Feb 2021 15:49:05 -0800 Subject: [PATCH] Use the new APIs for HKDF extract with label. --- src/tls13.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tls13.c b/src/tls13.c index 691132d5f..43995831f 100644 --- a/src/tls13.c +++ b/src/tls13.c @@ -879,7 +879,7 @@ int Tls13_Exporter(WOLFSSL* ssl, unsigned char *out, size_t outLen, } /* Derive-Secret(Secret, label, "") */ - ret = HKDF_Expand_Label(firstExpand, hashLen, + ret = wc_Tls13_HKDF_Expand_Label(firstExpand, hashLen, ssl->arrays->exporterSecret, hashLen, protocol, protocolLen, (byte*)label, (word32)labelLen, emptyHash, hashLen, hashType); @@ -891,7 +891,7 @@ int Tls13_Exporter(WOLFSSL* ssl, unsigned char *out, size_t outLen, if (ret != 0) return ret; - ret = HKDF_Expand_Label(out, (word32)outLen, firstExpand, hashLen, + ret = wc_Tls13_HKDF_Expand_Label(out, (word32)outLen, firstExpand, hashLen, protocol, protocolLen, exporterLabel, EXPORTER_LABEL_SZ, hashOut, hashLen, hashType);