Lines Matching refs:kds
752 struct key_direction_state kds;
804 key_direction_state_init (&kds, key_direction);
805 must_have_n_keys (passphrase_file, "tls-auth", &key2, kds.need_keys);
809 init_key_ctx (&ctx->encrypt, &key2.keys[kds.out_key], &kt, OPENVPN_OP_ENCRYPT,
811 init_key_ctx (&ctx->decrypt, &key2.keys[kds.in_key], &kt, OPENVPN_OP_DECRYPT,
1196 key_direction_state_init (struct key_direction_state *kds, int key_direction)
1198 CLEAR (*kds);
1202 kds->out_key = 0;
1203 kds->in_key = 1;
1204 kds->need_keys = 2;
1207 kds->out_key = 1;
1208 kds->in_key = 0;
1209 kds->need_keys = 2;
1212 kds->out_key = 0;
1213 kds->in_key = 0;
1214 kds->need_keys = 1;