Lines Matching refs:policy
217 GstSrtpAuthType auth, srtp_crypto_policy_t * policy) in set_crypto_policy_cipher_auth() argument
221 policy->cipher_type = SRTP_AES_ICM_128; in set_crypto_policy_cipher_auth()
224 policy->cipher_type = SRTP_AES_ICM_256; in set_crypto_policy_cipher_auth()
227 policy->cipher_type = SRTP_AES_GCM_128; in set_crypto_policy_cipher_auth()
230 policy->cipher_type = SRTP_AES_GCM_256; in set_crypto_policy_cipher_auth()
233 policy->cipher_type = SRTP_NULL_CIPHER; in set_crypto_policy_cipher_auth()
239 policy->cipher_key_len = cipher_key_size (cipher); in set_crypto_policy_cipher_auth()
243 policy->auth_type = SRTP_HMAC_SHA1; in set_crypto_policy_cipher_auth()
244 policy->auth_key_len = 20; in set_crypto_policy_cipher_auth()
245 policy->auth_tag_len = 10; in set_crypto_policy_cipher_auth()
248 policy->auth_type = SRTP_HMAC_SHA1; in set_crypto_policy_cipher_auth()
249 policy->auth_key_len = 20; in set_crypto_policy_cipher_auth()
250 policy->auth_tag_len = 4; in set_crypto_policy_cipher_auth()
253 policy->auth_type = SRTP_NULL_AUTH; in set_crypto_policy_cipher_auth()
254 policy->auth_key_len = 0; in set_crypto_policy_cipher_auth()
257 policy->auth_tag_len = 16; in set_crypto_policy_cipher_auth()
259 policy->auth_tag_len = 0; in set_crypto_policy_cipher_auth()
265 policy->sec_serv = sec_serv_none; in set_crypto_policy_cipher_auth()
267 policy->sec_serv = sec_serv_auth; in set_crypto_policy_cipher_auth()
269 policy->sec_serv = sec_serv_conf; in set_crypto_policy_cipher_auth()
271 policy->sec_serv = sec_serv_conf_and_auth; in set_crypto_policy_cipher_auth()