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()
882 __u16 key_id) in sctp_auth_set_active_key() argument
900 if (key->key_id == key_id) { in sctp_auth_set_active_key()
912 asoc->active_key_id = key_id; in sctp_auth_set_active_key()
918 ep->active_key_id = key_id; in sctp_auth_set_active_key()
925 __u16 key_id) in sctp_auth_del_key_id() argument
937 if (asoc->active_key_id == key_id) in sctp_auth_del_key_id()
944 if (ep->active_key_id == key_id) in sctp_auth_del_key_id()
951 if (key->key_id == key_id) { in sctp_auth_del_key_id()
968 struct sctp_association *asoc, __u16 key_id) in sctp_auth_deact_key_id() argument
980 if (asoc->active_key_id == key_id) in sctp_auth_deact_key_id()
987 if (ep->active_key_id == key_id) in sctp_auth_deact_key_id()
994 if (key->key_id == key_id) { in sctp_auth_deact_key_id()
1011 ev = sctp_ulpevent_make_authkey(asoc, key->key_id, in sctp_auth_deact_key_id()