Lines Matching defs:authinfo

800 sctp_free_authinfo(sctp_authinfo_t *authinfo)
802 if (authinfo == NULL)
805 if (authinfo->random != NULL)
806 sctp_free_key(authinfo->random);
807 if (authinfo->peer_random != NULL)
808 sctp_free_key(authinfo->peer_random);
809 if (authinfo->assoc_key != NULL)
810 sctp_free_key(authinfo->assoc_key);
811 if (authinfo->recv_key != NULL)
812 sctp_free_key(authinfo->recv_key);
814 /* We are NOT dynamically allocating authinfo's right now... */
815 /* SCTP_FREE(authinfo, SCTP_M_AUTH_??); */
1157 if (keyid == stcb->asoc.authinfo.assoc_keyid) {
1158 sctp_free_key(stcb->asoc.authinfo.assoc_key);
1159 stcb->asoc.authinfo.assoc_key = NULL;
1161 if (keyid == stcb->asoc.authinfo.recv_keyid) {
1162 sctp_free_key(stcb->asoc.authinfo.recv_key);
1163 stcb->asoc.authinfo.recv_key = NULL;
1201 if (keyid == stcb->asoc.authinfo.active_keyid)
1275 stcb->asoc.authinfo.active_keyid = keyid;
1314 if (keyid == stcb->asoc.authinfo.active_keyid)
1486 if (stcb->asoc.authinfo.random != NULL)
1487 sctp_free_key(stcb->asoc.authinfo.random);
1488 stcb->asoc.authinfo.random = new_key;
1489 stcb->asoc.authinfo.random_len = random_len;
1490 sctp_clear_cachedkeys(stcb, stcb->asoc.authinfo.assoc_keyid);
1491 sctp_clear_cachedkeys(stcb, stcb->asoc.authinfo.recv_keyid);
1499 stcb->asoc.authinfo.active_keyid = stcb->sctp_ep->sctp_ep.default_keyid;
1524 if ((keyid != stcb->asoc.authinfo.assoc_keyid) ||
1525 (stcb->asoc.authinfo.assoc_key == NULL)) {
1526 if (stcb->asoc.authinfo.assoc_key != NULL) {
1528 sctp_free_key(stcb->asoc.authinfo.assoc_key);
1537 stcb->asoc.authinfo.assoc_key =
1538 sctp_compute_hashkey(stcb->asoc.authinfo.random,
1539 stcb->asoc.authinfo.peer_random, key);
1540 stcb->asoc.authinfo.assoc_keyid = keyid;
1542 stcb->asoc.authinfo.assoc_keyid);
1545 sctp_print_key(stcb->asoc.authinfo.assoc_key,
1554 (void)sctp_compute_hmac_m(stcb->asoc.peer_hmac_id, stcb->asoc.authinfo.assoc_key,
1654 if ((stcb->asoc.authinfo.recv_key == NULL) ||
1655 (stcb->asoc.authinfo.recv_keyid != shared_key_id)) {
1668 if (stcb->asoc.authinfo.recv_keyid != shared_key_id)
1672 * *)stcb->asoc.authinfo.recv_keyid);
1675 shared_key_id, stcb->asoc.authinfo.recv_keyid,
1678 if (stcb->asoc.authinfo.recv_key != NULL)
1679 sctp_free_key(stcb->asoc.authinfo.recv_key);
1680 stcb->asoc.authinfo.recv_key =
1681 sctp_compute_hashkey(stcb->asoc.authinfo.random,
1682 stcb->asoc.authinfo.peer_random, skey->key);
1683 stcb->asoc.authinfo.recv_keyid = shared_key_id;
1686 sctp_print_key(stcb->asoc.authinfo.recv_key, "Recv Key");
1701 (void)sctp_compute_hmac_m(hmac_id, stcb->asoc.authinfo.recv_key,
1951 stcb->asoc.authinfo.active_keyid = inp->sctp_ep.default_keyid;
1999 if (stcb->asoc.authinfo.random != NULL)
2000 sctp_free_key(stcb->asoc.authinfo.random);
2001 stcb->asoc.authinfo.random = new_key;
2002 stcb->asoc.authinfo.random_len = random_len;