Logo Search packages:      
Sourcecode: srtp version File versions  Download package

void crypto_policy_set_aes_cm_128_null_auth ( crypto_policy_t p  ) 

crypto_policy_set_aes_cm_128_null_auth() sets a crypto policy structure to an encryption-only policy

p is a pointer to the policy structure to be set
The function call crypto_policy_set_aes_cm_128_null_auth(&p) sets the 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 crypto_policy_t datatype.

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).

Definition at line 1369 of file srtp.c.

References AES_128_ICM, crypto_policy_t::auth_key_len, crypto_policy_t::auth_tag_len, crypto_policy_t::auth_type, crypto_policy_t::cipher_key_len, crypto_policy_t::cipher_type, NULL_AUTH, crypto_policy_t::sec_serv, and sec_serv_conf.


   * corresponds to draft-ietf-mmusic-sdescriptions-12.txt
   * note that this crypto policy is intended for SRTP, but not SRTCP

  p->cipher_type     = AES_128_ICM;           
  p->cipher_key_len  = 30;                /* 128 bit key, 112 bit salt */
  p->auth_type       = NULL_AUTH;             
  p->auth_key_len    = 0; 
  p->auth_tag_len    = 0; 
  p->sec_serv        = sec_serv_conf;

Generated by  Doxygen 1.6.0   Back to index