Lines Matching refs:key_id
79 struct sctp_shared_key *sctp_auth_shkey_create(__u16 key_id, gfp_t gfp) in sctp_auth_shkey_create() argument
90 new->key_id = key_id; in sctp_auth_shkey_create()
363 new = sctp_auth_shkey_create(sh_key->key_id, gfp); in sctp_auth_asoc_copy_shkeys()
431 __u16 key_id) in sctp_auth_get_shkey() argument
437 if (key->key_id == key_id) { in sctp_auth_get_shkey()
713 __u16 key_id, hmac_id; in sctp_auth_calculate_hmac() local
722 key_id = ntohs(auth->auth_hdr.shkey_id); in sctp_auth_calculate_hmac()
725 if (key_id == asoc->active_key_id) in sctp_auth_calculate_hmac()
840 if (shkey->key_id == auth_key->sca_keynumber) { in sctp_auth_set_key()
871 __u16 key_id) in sctp_auth_set_active_key() argument
889 if (key->key_id == key_id) { in sctp_auth_set_active_key()
899 asoc->active_key_id = key_id; in sctp_auth_set_active_key()
902 ep->active_key_id = key_id; in sctp_auth_set_active_key()
909 __u16 key_id) in sctp_auth_del_key_id() argument
921 if (asoc->active_key_id == key_id) in sctp_auth_del_key_id()
928 if (ep->active_key_id == key_id) in sctp_auth_del_key_id()
935 if (key->key_id == key_id) { in sctp_auth_del_key_id()
952 struct sctp_association *asoc, __u16 key_id) in sctp_auth_deact_key_id() argument
964 if (asoc->active_key_id == key_id) in sctp_auth_deact_key_id()
971 if (ep->active_key_id == key_id) in sctp_auth_deact_key_id()
978 if (key->key_id == key_id) { in sctp_auth_deact_key_id()
995 ev = sctp_ulpevent_make_authkey(asoc, key->key_id, in sctp_auth_deact_key_id()