revert change on Derive Master secret

This commit is contained in:
Saksik Remy
2021-12-21 15:51:32 +08:00
parent 31cf4f305c
commit f1bbfa5a24

View File

@ -950,7 +950,7 @@ int DeriveMasterSecret(WOLFSSL* ssl)
PRIVATE_KEY_UNLOCK();
ret = Tls13_HKDF_Extract(ssl, ssl->arrays->masterSecret,
key, ssl->specs.hash_size,
ssl->arrays->masterSecret, 32, mac2hash(ssl->specs.mac_algorithm));
ssl->arrays->masterSecret, 0, mac2hash(ssl->specs.mac_algorithm));
PRIVATE_KEY_LOCK();
#ifdef HAVE_KEYING_MATERIAL