Lines Matching refs:authinfo

792 sctp_free_authinfo(sctp_authinfo_t *authinfo)  in sctp_free_authinfo()  argument
794 if (authinfo == NULL) in sctp_free_authinfo()
797 if (authinfo->random != NULL) in sctp_free_authinfo()
798 sctp_free_key(authinfo->random); in sctp_free_authinfo()
799 if (authinfo->peer_random != NULL) in sctp_free_authinfo()
800 sctp_free_key(authinfo->peer_random); in sctp_free_authinfo()
801 if (authinfo->assoc_key != NULL) in sctp_free_authinfo()
802 sctp_free_key(authinfo->assoc_key); in sctp_free_authinfo()
803 if (authinfo->recv_key != NULL) in sctp_free_authinfo()
804 sctp_free_key(authinfo->recv_key); in sctp_free_authinfo()
1147 if (keyid == stcb->asoc.authinfo.assoc_keyid) { in sctp_clear_cachedkeys()
1148 sctp_free_key(stcb->asoc.authinfo.assoc_key); in sctp_clear_cachedkeys()
1149 stcb->asoc.authinfo.assoc_key = NULL; in sctp_clear_cachedkeys()
1151 if (keyid == stcb->asoc.authinfo.recv_keyid) { in sctp_clear_cachedkeys()
1152 sctp_free_key(stcb->asoc.authinfo.recv_key); in sctp_clear_cachedkeys()
1153 stcb->asoc.authinfo.recv_key = NULL; in sctp_clear_cachedkeys()
1191 if (keyid == stcb->asoc.authinfo.active_keyid) in sctp_delete_sharedkey()
1265 stcb->asoc.authinfo.active_keyid = keyid; in sctp_auth_setactivekey()
1304 if (keyid == stcb->asoc.authinfo.active_keyid) in sctp_deact_sharedkey()
1476 if (stcb->asoc.authinfo.random != NULL) in sctp_auth_get_cookie_params()
1477 sctp_free_key(stcb->asoc.authinfo.random); in sctp_auth_get_cookie_params()
1478 stcb->asoc.authinfo.random = new_key; in sctp_auth_get_cookie_params()
1479 stcb->asoc.authinfo.random_len = random_len; in sctp_auth_get_cookie_params()
1480 sctp_clear_cachedkeys(stcb, stcb->asoc.authinfo.assoc_keyid); in sctp_auth_get_cookie_params()
1481 sctp_clear_cachedkeys(stcb, stcb->asoc.authinfo.recv_keyid); in sctp_auth_get_cookie_params()
1489 stcb->asoc.authinfo.active_keyid = stcb->sctp_ep->sctp_ep.default_keyid; in sctp_auth_get_cookie_params()
1514 if ((keyid != stcb->asoc.authinfo.assoc_keyid) || in sctp_fill_hmac_digest_m()
1515 (stcb->asoc.authinfo.assoc_key == NULL)) { in sctp_fill_hmac_digest_m()
1516 if (stcb->asoc.authinfo.assoc_key != NULL) { in sctp_fill_hmac_digest_m()
1518 sctp_free_key(stcb->asoc.authinfo.assoc_key); in sctp_fill_hmac_digest_m()
1527 stcb->asoc.authinfo.assoc_key = in sctp_fill_hmac_digest_m()
1528 sctp_compute_hashkey(stcb->asoc.authinfo.random, in sctp_fill_hmac_digest_m()
1529 stcb->asoc.authinfo.peer_random, key); in sctp_fill_hmac_digest_m()
1530 stcb->asoc.authinfo.assoc_keyid = keyid; in sctp_fill_hmac_digest_m()
1532 stcb->asoc.authinfo.assoc_keyid); in sctp_fill_hmac_digest_m()
1535 sctp_print_key(stcb->asoc.authinfo.assoc_key, in sctp_fill_hmac_digest_m()
1544 (void)sctp_compute_hmac_m(stcb->asoc.peer_hmac_id, stcb->asoc.authinfo.assoc_key, in sctp_fill_hmac_digest_m()
1643 if ((stcb->asoc.authinfo.recv_key == NULL) || in sctp_handle_auth()
1644 (stcb->asoc.authinfo.recv_keyid != shared_key_id)) { in sctp_handle_auth()
1657 if (stcb->asoc.authinfo.recv_keyid != shared_key_id) { in sctp_handle_auth()
1662 if (stcb->asoc.authinfo.recv_key != NULL) in sctp_handle_auth()
1663 sctp_free_key(stcb->asoc.authinfo.recv_key); in sctp_handle_auth()
1664 stcb->asoc.authinfo.recv_key = in sctp_handle_auth()
1665 sctp_compute_hashkey(stcb->asoc.authinfo.random, in sctp_handle_auth()
1666 stcb->asoc.authinfo.peer_random, skey->key); in sctp_handle_auth()
1667 stcb->asoc.authinfo.recv_keyid = shared_key_id; in sctp_handle_auth()
1670 sctp_print_key(stcb->asoc.authinfo.recv_key, "Recv Key"); in sctp_handle_auth()
1685 (void)sctp_compute_hmac_m(hmac_id, stcb->asoc.authinfo.recv_key, in sctp_handle_auth()
1732 auth->auth_altkeynumber = stcb->asoc.authinfo.recv_keyid; in sctp_notify_authentication()
1934 stcb->asoc.authinfo.active_keyid = inp->sctp_ep.default_keyid; in sctp_initialize_auth_params()
1982 if (stcb->asoc.authinfo.random != NULL) in sctp_initialize_auth_params()
1983 sctp_free_key(stcb->asoc.authinfo.random); in sctp_initialize_auth_params()
1984 stcb->asoc.authinfo.random = new_key; in sctp_initialize_auth_params()
1985 stcb->asoc.authinfo.random_len = random_len; in sctp_initialize_auth_params()