Skip to content

Commit

Permalink
wolfSSL FIPS: needs unlocking and locking of key
Browse files Browse the repository at this point in the history
  • Loading branch information
SparkiDev committed May 1, 2024
1 parent d441994 commit 42c938c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions srtp/srtp.c
Original file line number Diff line number Diff line change
Expand Up @@ -849,9 +849,11 @@ static srtp_err_status_t srtp_kdf_generate(srtp_kdf_t *kdf,
}
octet_string_set_to_zero(key, length);

PRIVATE_KEY_UNLOCK();
err = wc_SRTP_KDF_label(kdf->master_key, kdf->master_key_len,
kdf->master_salt, MAX_SRTP_SALT_LEN, -1, NULL,
label, key, length);
PRIVATE_KEY_LOCK();
if (err < 0) {
debug_print(mod_srtp, "wolfSSL SRTP KDF error: %d", err);
return (srtp_err_status_algo_fail);
Expand Down

0 comments on commit 42c938c

Please sign in to comment.