[][src]Function srtp2_sys::srtp_crypto_policy_set_aes_cm_192_hmac_sha1_32

pub unsafe extern "C" fn srtp_crypto_policy_set_aes_cm_192_hmac_sha1_32(
    p: *mut srtp_crypto_policy_t
)

@brief srtp_crypto_policy_set_aes_cm_192_hmac_sha1_32() sets a crypto policy structure to a short-authentication tag policy using AES-192 encryption.

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

The function call srtp_crypto_policy_set_aes_cm_192_hmac_sha1_32(&p) sets the srtp_crypto_policy_t at location p to use policy AES_CM_192_HMAC_SHA1_32 as defined in RFC 6188. This policy uses AES-192 Counter Mode encryption and HMAC-SHA1 authentication, with an authentication tag that is only 32 bits long. This length is considered adequate only for protecting audio and video media that use a stateless playback function. 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 crypto policy is intended for use in SRTP, but not in SRTCP. It is recommended that a policy that uses longer authentication tags be used for SRTCP. See Section 7.5 of RFC 3711 (http://www.ietf.org/rfc/rfc3711.txt).

@return void.