mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
dtls-srtp: PRF: fix correct order of client/server random in seed
see RFC 5705 Section 4
This commit is contained in:
@ -1418,8 +1418,8 @@ int wolfSSL_export_dtls_srtp_keying_material(WOLFSSL* ssl,
|
||||
}
|
||||
|
||||
#ifdef WOLFSSL_HAVE_PRF
|
||||
XMEMCPY(seed, ssl->arrays->serverRandom, RAN_LEN);
|
||||
XMEMCPY(seed + RAN_LEN, ssl->arrays->clientRandom, RAN_LEN);
|
||||
XMEMCPY(seed, ssl->arrays->clientRandom, RAN_LEN);
|
||||
XMEMCPY(seed + RAN_LEN, ssl->arrays->serverRandom, RAN_LEN);
|
||||
|
||||
PRIVATE_KEY_UNLOCK();
|
||||
ret = wc_PRF_TLSv1(out, profile->kdfBits, /* out: generated keys / salt */
|
||||
|
Reference in New Issue
Block a user