add diffs from 8884f4d 8e47faf @ https://github.com/cisco/libsrtp
This commit is contained in:
parent
de23f29550
commit
d3872b3a7b
|
@ -2052,24 +2052,19 @@ crypto_policy_set_from_profile_for_rtp(crypto_policy_t *policy,
|
|||
/* set SRTP policy from the SRTP profile in the key set */
|
||||
switch(profile) {
|
||||
case srtp_profile_aes128_cm_sha1_80:
|
||||
crypto_policy_set_aes_cm_128_hmac_sha1_80(policy);
|
||||
crypto_policy_set_aes_cm_128_hmac_sha1_80(policy);
|
||||
break;
|
||||
case srtp_profile_aes128_cm_sha1_32:
|
||||
crypto_policy_set_aes_cm_128_hmac_sha1_32(policy);
|
||||
crypto_policy_set_aes_cm_128_hmac_sha1_80(policy);
|
||||
break;
|
||||
case srtp_profile_null_sha1_80:
|
||||
crypto_policy_set_null_cipher_hmac_sha1_80(policy);
|
||||
crypto_policy_set_null_cipher_hmac_sha1_80(policy);
|
||||
break;
|
||||
case srtp_profile_aes256_cm_sha1_80:
|
||||
crypto_policy_set_aes_cm_256_hmac_sha1_80(policy);
|
||||
crypto_policy_set_aes_cm_256_hmac_sha1_80(policy);
|
||||
break;
|
||||
case srtp_profile_aes256_cm_sha1_32:
|
||||
crypto_policy_set_aes_cm_256_hmac_sha1_32(policy);
|
||||
crypto_policy_set_aes_cm_256_hmac_sha1_80(policy);
|
||||
break;
|
||||
/* the following profiles are not (yet) supported */
|
||||
case srtp_profile_null_sha1_32:
|
||||
|
@ -2090,7 +2085,7 @@ crypto_policy_set_from_profile_for_rtcp(crypto_policy_t *policy,
|
|||
crypto_policy_set_aes_cm_128_hmac_sha1_80(policy);
|
||||
break;
|
||||
case srtp_profile_aes128_cm_sha1_32:
|
||||
crypto_policy_set_aes_cm_128_hmac_sha1_80(policy);
|
||||
crypto_policy_set_aes_cm_128_hmac_sha1_32(policy);
|
||||
break;
|
||||
case srtp_profile_null_sha1_80:
|
||||
crypto_policy_set_null_cipher_hmac_sha1_80(policy);
|
||||
|
@ -2099,7 +2094,7 @@ crypto_policy_set_from_profile_for_rtcp(crypto_policy_t *policy,
|
|||
crypto_policy_set_aes_cm_256_hmac_sha1_80(policy);
|
||||
break;
|
||||
case srtp_profile_aes256_cm_sha1_32:
|
||||
crypto_policy_set_aes_cm_256_hmac_sha1_80(policy);
|
||||
crypto_policy_set_aes_cm_256_hmac_sha1_32(policy);
|
||||
break;
|
||||
/* the following profiles are not (yet) supported */
|
||||
case srtp_profile_null_sha1_32:
|
||||
|
|
Loading…
Reference in New Issue