pub unsafe extern "C" fn srtp_crypto_policy_set_aes_cm_256_hmac_sha1_80(
p: *mut srtp_crypto_policy_t,
)
Expand description
@brief srtp_crypto_policy_set_aes_cm_256_hmac_sha1_80() sets a crypto policy structure to a encryption and authentication policy using AES-256 for RTP protection.
@param p is a pointer to the policy structure to be set
The function call srtp_crypto_policy_set_aes_cm_256_hmac_sha1_80(&p) sets the srtp_crypto_policy_t at location p to use policy AES_CM_256_HMAC_SHA1_80 as defined in RFC 6188. This policy uses AES-256 Counter Mode encryption and HMAC-SHA1 authentication, with an 80 bit authentication tag.
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.
@return void.