mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 11:17:29 +02:00
Use the new APIs for HKDF extract with label.
This commit is contained in:
@ -846,7 +846,7 @@ int Tls13_Exporter(WOLFSSL* ssl, unsigned char *out, size_t outLen,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Derive-Secret(Secret, label, "") */
|
/* Derive-Secret(Secret, label, "") */
|
||||||
ret = HKDF_Expand_Label(firstExpand, hashLen,
|
ret = wc_Tls13_HKDF_Expand_Label(firstExpand, hashLen,
|
||||||
ssl->arrays->exporterSecret, hashLen,
|
ssl->arrays->exporterSecret, hashLen,
|
||||||
protocol, protocolLen, (byte*)label, (word32)labelLen,
|
protocol, protocolLen, (byte*)label, (word32)labelLen,
|
||||||
emptyHash, hashLen, hashType);
|
emptyHash, hashLen, hashType);
|
||||||
@ -858,7 +858,7 @@ int Tls13_Exporter(WOLFSSL* ssl, unsigned char *out, size_t outLen,
|
|||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
return ret;
|
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,
|
protocol, protocolLen, exporterLabel, EXPORTER_LABEL_SZ,
|
||||||
hashOut, hashLen, hashType);
|
hashOut, hashLen, hashType);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user