Lines Matching refs:authinfo
800 sctp_free_authinfo(sctp_authinfo_t * authinfo) in sctp_free_authinfo() argument
802 if (authinfo == NULL) in sctp_free_authinfo()
805 if (authinfo->random != NULL) in sctp_free_authinfo()
806 sctp_free_key(authinfo->random); in sctp_free_authinfo()
807 if (authinfo->peer_random != NULL) in sctp_free_authinfo()
808 sctp_free_key(authinfo->peer_random); in sctp_free_authinfo()
809 if (authinfo->assoc_key != NULL) in sctp_free_authinfo()
810 sctp_free_key(authinfo->assoc_key); in sctp_free_authinfo()
811 if (authinfo->recv_key != NULL) in sctp_free_authinfo()
812 sctp_free_key(authinfo->recv_key); in sctp_free_authinfo()
1191 if (keyid == stcb->asoc.authinfo.assoc_keyid) { in sctp_clear_cachedkeys()
1192 sctp_free_key(stcb->asoc.authinfo.assoc_key); in sctp_clear_cachedkeys()
1193 stcb->asoc.authinfo.assoc_key = NULL; in sctp_clear_cachedkeys()
1195 if (keyid == stcb->asoc.authinfo.recv_keyid) { in sctp_clear_cachedkeys()
1196 sctp_free_key(stcb->asoc.authinfo.recv_key); in sctp_clear_cachedkeys()
1197 stcb->asoc.authinfo.recv_key = NULL; in sctp_clear_cachedkeys()
1235 if (keyid == stcb->asoc.authinfo.active_keyid) in sctp_delete_sharedkey()
1308 stcb->asoc.authinfo.active_keyid = keyid; in sctp_auth_setactivekey()
1347 if (keyid == stcb->asoc.authinfo.active_keyid) in sctp_deact_sharedkey()
1515 if (stcb->asoc.authinfo.random != NULL) in sctp_auth_get_cookie_params()
1516 sctp_free_key(stcb->asoc.authinfo.random); in sctp_auth_get_cookie_params()
1517 stcb->asoc.authinfo.random = new_key; in sctp_auth_get_cookie_params()
1518 stcb->asoc.authinfo.random_len = random_len; in sctp_auth_get_cookie_params()
1519 sctp_clear_cachedkeys(stcb, stcb->asoc.authinfo.assoc_keyid); in sctp_auth_get_cookie_params()
1520 sctp_clear_cachedkeys(stcb, stcb->asoc.authinfo.recv_keyid); in sctp_auth_get_cookie_params()
1528 stcb->asoc.authinfo.active_keyid = stcb->sctp_ep->sctp_ep.default_keyid; in sctp_auth_get_cookie_params()
1553 if ((keyid != stcb->asoc.authinfo.assoc_keyid) || in sctp_fill_hmac_digest_m()
1554 (stcb->asoc.authinfo.assoc_key == NULL)) { in sctp_fill_hmac_digest_m()
1555 if (stcb->asoc.authinfo.assoc_key != NULL) { in sctp_fill_hmac_digest_m()
1557 sctp_free_key(stcb->asoc.authinfo.assoc_key); in sctp_fill_hmac_digest_m()
1566 stcb->asoc.authinfo.assoc_key = in sctp_fill_hmac_digest_m()
1567 sctp_compute_hashkey(stcb->asoc.authinfo.random, in sctp_fill_hmac_digest_m()
1568 stcb->asoc.authinfo.peer_random, key); in sctp_fill_hmac_digest_m()
1569 stcb->asoc.authinfo.assoc_keyid = keyid; in sctp_fill_hmac_digest_m()
1571 stcb->asoc.authinfo.assoc_keyid); in sctp_fill_hmac_digest_m()
1574 sctp_print_key(stcb->asoc.authinfo.assoc_key, in sctp_fill_hmac_digest_m()
1582 (void)sctp_compute_hmac_m(stcb->asoc.peer_hmac_id, stcb->asoc.authinfo.assoc_key, in sctp_fill_hmac_digest_m()
1683 if ((stcb->asoc.authinfo.recv_key == NULL) || in sctp_handle_auth()
1684 (stcb->asoc.authinfo.recv_keyid != shared_key_id)) { in sctp_handle_auth()
1697 if (stcb->asoc.authinfo.recv_keyid != shared_key_id) in sctp_handle_auth()
1704 shared_key_id, stcb->asoc.authinfo.recv_keyid, in sctp_handle_auth()
1707 if (stcb->asoc.authinfo.recv_key != NULL) in sctp_handle_auth()
1708 sctp_free_key(stcb->asoc.authinfo.recv_key); in sctp_handle_auth()
1709 stcb->asoc.authinfo.recv_key = in sctp_handle_auth()
1710 sctp_compute_hashkey(stcb->asoc.authinfo.random, in sctp_handle_auth()
1711 stcb->asoc.authinfo.peer_random, skey->key); in sctp_handle_auth()
1712 stcb->asoc.authinfo.recv_keyid = shared_key_id; in sctp_handle_auth()
1715 sctp_print_key(stcb->asoc.authinfo.recv_key, "Recv Key"); in sctp_handle_auth()
1730 (void)sctp_compute_hmac_m(hmac_id, stcb->asoc.authinfo.recv_key, in sctp_handle_auth()
1975 stcb->asoc.authinfo.active_keyid = inp->sctp_ep.default_keyid; in sctp_initialize_auth_params()
2022 if (stcb->asoc.authinfo.random != NULL) in sctp_initialize_auth_params()
2023 sctp_free_key(stcb->asoc.authinfo.random); in sctp_initialize_auth_params()
2024 stcb->asoc.authinfo.random = new_key; in sctp_initialize_auth_params()
2025 stcb->asoc.authinfo.random_len = random_len; in sctp_initialize_auth_params()