aboutsummaryrefslogtreecommitdiff
path: root/srtp
diff options
context:
space:
mode:
authorGeir Istad <gistad@cisco.com>2017-03-07 14:57:03 +0100
committerGeir Istad <gistad@cisco.com>2017-03-07 14:57:03 +0100
commit4536481fcbefcc5cb0a732f39ffbbb5bf259189c (patch)
tree8623087a3b78db6528332ceb52425f232d7a425e /srtp
parent58bfa9648ce9e54d79b6eab4f67e2de103c8e8c1 (diff)
downloadlibsrtp2-4536481fcbefcc5cb0a732f39ffbbb5bf259189c.tar.gz
srtp.c: srtp_kdf_clear() use octet_string_set_to_zero
Diffstat (limited to 'srtp')
-rw-r--r--srtp/srtp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/srtp/srtp.c b/srtp/srtp.c
index db426fd..43f8a1c 100644
--- a/srtp/srtp.c
+++ b/srtp/srtp.c
@@ -676,8 +676,8 @@ static srtp_err_status_t srtp_kdf_generate(srtp_kdf_t *kdf, srtp_prf_label label
}
static srtp_err_status_t srtp_kdf_clear(srtp_kdf_t *kdf) {
- memset(kdf->master_key, 0x0, MAX_SRTP_AESKEY_LEN);
- memset(kdf->master_salt, 0x0, MAX_SRTP_SALT_LEN);
+ octet_string_set_to_zero(kdf->master_key, 0x0, MAX_SRTP_AESKEY_LEN);
+ octet_string_set_to_zero(kdf->master_salt, 0x0, MAX_SRTP_SALT_LEN);
kdf->evp = NULL;
return srtp_err_status_ok;