Lines Matching refs:ctos
589 u_int mode, ctos, need, dh_need, authlen; in kex_choose_conf() local
622 ctos = (!kex->server && mode == MODE_OUT) || in kex_choose_conf()
624 nenc = ctos ? PROPOSAL_ENC_ALGS_CTOS : PROPOSAL_ENC_ALGS_STOC; in kex_choose_conf()
625 nmac = ctos ? PROPOSAL_MAC_ALGS_CTOS : PROPOSAL_MAC_ALGS_STOC; in kex_choose_conf()
626 ncomp = ctos ? PROPOSAL_COMP_ALGS_CTOS : PROPOSAL_COMP_ALGS_STOC; in kex_choose_conf()
640 ctos ? "client->server" : "server->client", in kex_choose_conf()
748 u_int i, j, mode, ctos; in kex_derive_keys() local
760 ctos = (!kex->server && mode == MODE_OUT) || in kex_derive_keys()
762 kex->newkeys[mode]->enc.iv = keys[ctos ? 0 : 1]; in kex_derive_keys()
763 kex->newkeys[mode]->enc.key = keys[ctos ? 2 : 3]; in kex_derive_keys()
764 kex->newkeys[mode]->mac.key = keys[ctos ? 4 : 5]; in kex_derive_keys()