Lines Matching refs:key_id
94 struct sctp_shared_key *sctp_auth_shkey_create(__u16 key_id, gfp_t gfp) in sctp_auth_shkey_create() argument
105 new->key_id = key_id; in sctp_auth_shkey_create()
378 new = sctp_auth_shkey_create(sh_key->key_id, gfp); in sctp_auth_asoc_copy_shkeys()
446 __u16 key_id) in sctp_auth_get_shkey() argument
452 if (key->key_id == key_id) { in sctp_auth_get_shkey()
733 __u16 key_id, hmac_id; in sctp_auth_calculate_hmac() local
742 key_id = ntohs(auth->auth_hdr.shkey_id); in sctp_auth_calculate_hmac()
745 if (key_id == asoc->active_key_id) in sctp_auth_calculate_hmac()
862 if (shkey->key_id == auth_key->sca_keynumber) { in sctp_auth_set_key()
893 __u16 key_id) in sctp_auth_set_active_key() argument
906 if (key->key_id == key_id) { in sctp_auth_set_active_key()
916 asoc->active_key_id = key_id; in sctp_auth_set_active_key()
919 ep->active_key_id = key_id; in sctp_auth_set_active_key()
926 __u16 key_id) in sctp_auth_del_key_id() argument
936 if (asoc->active_key_id == key_id) in sctp_auth_del_key_id()
941 if (ep->active_key_id == key_id) in sctp_auth_del_key_id()
948 if (key->key_id == key_id) { in sctp_auth_del_key_id()
965 struct sctp_association *asoc, __u16 key_id) in sctp_auth_deact_key_id() argument
975 if (asoc->active_key_id == key_id) in sctp_auth_deact_key_id()
980 if (ep->active_key_id == key_id) in sctp_auth_deact_key_id()
987 if (key->key_id == key_id) { in sctp_auth_deact_key_id()
1004 ev = sctp_ulpevent_make_authkey(asoc, key->key_id, in sctp_auth_deact_key_id()