Lines Matching refs:ctos
778 u_int mode, ctos, need, dh_need, authlen; in kex_choose_conf() local
824 ctos = (!kex->server && mode == MODE_OUT) || in kex_choose_conf()
826 nenc = ctos ? PROPOSAL_ENC_ALGS_CTOS : PROPOSAL_ENC_ALGS_STOC; in kex_choose_conf()
827 nmac = ctos ? PROPOSAL_MAC_ALGS_CTOS : PROPOSAL_MAC_ALGS_STOC; in kex_choose_conf()
828 ncomp = ctos ? PROPOSAL_COMP_ALGS_CTOS : PROPOSAL_COMP_ALGS_STOC; in kex_choose_conf()
851 ctos ? "client->server" : "server->client", in kex_choose_conf()
953 u_int i, j, mode, ctos; in kex_derive_keys() local
965 ctos = (!kex->server && mode == MODE_OUT) || in kex_derive_keys()
967 kex->newkeys[mode]->enc.iv = keys[ctos ? 0 : 1]; in kex_derive_keys()
968 kex->newkeys[mode]->enc.key = keys[ctos ? 2 : 3]; in kex_derive_keys()
969 kex->newkeys[mode]->mac.key = keys[ctos ? 4 : 5]; in kex_derive_keys()