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
104 new->key_id = key_id; in sctp_auth_shkey_create()
367 new = sctp_auth_shkey_create(sh_key->key_id, gfp); in sctp_auth_asoc_copy_shkeys()
429 __u16 key_id) in sctp_auth_get_shkey() argument
435 if (key->key_id == key_id) in sctp_auth_get_shkey()
715 __u16 key_id, hmac_id; in sctp_auth_calculate_hmac() local
724 key_id = ntohs(auth->auth_hdr.shkey_id); in sctp_auth_calculate_hmac()
727 if (key_id == asoc->active_key_id) in sctp_auth_calculate_hmac()
732 ep_key = sctp_auth_get_shkey(asoc, key_id); in sctp_auth_calculate_hmac()
841 if (cur_key->key_id == auth_key->sca_keynumber) { in sctp_auth_set_key()
884 __u16 key_id) in sctp_auth_set_active_key() argument
897 if (key->key_id == key_id) { in sctp_auth_set_active_key()
907 asoc->active_key_id = key_id; in sctp_auth_set_active_key()
910 ep->active_key_id = key_id; in sctp_auth_set_active_key()
917 __u16 key_id) in sctp_auth_del_key_id() argument
927 if (asoc->active_key_id == key_id) in sctp_auth_del_key_id()
932 if (ep->active_key_id == key_id) in sctp_auth_del_key_id()
939 if (key->key_id == key_id) { in sctp_auth_del_key_id()