srtp2_sys

Function srtp_crypto_policy_set_aes_cm_128_null_auth

Source
pub unsafe extern "C" fn srtp_crypto_policy_set_aes_cm_128_null_auth(
    p: *mut srtp_crypto_policy_t,
)
Expand description

@brief srtp_crypto_policy_set_aes_cm_128_null_auth() sets a crypto policy structure to an encryption-only policy

@param p is a pointer to the policy structure to be set

The function call srtp_crypto_policy_set_aes_cm_128_null_auth(&p) sets the srtp_crypto_policy_t at location p to use the SRTP default cipher (AES-128 Counter Mode), but to use no authentication method. This policy is NOT RECOMMENDED unless it is unavoidable; see Section 7.5 of RFC 3711 (http://www.ietf.org/rfc/rfc3711.txt).

This function is a convenience that helps to avoid dealing directly with the policy data structure. You are encouraged to initialize policy elements with this function call. Doing so may allow your code to be forward compatible with later versions of libSRTP that include more elements in the srtp_crypto_policy_t datatype.

@warning This policy is NOT RECOMMENDED for SRTP unless it is unavoidable, and it is NOT RECOMMENDED at all for SRTCP; see Section 7.5 of RFC 3711 (http://www.ietf.org/rfc/rfc3711.txt).

@return void.