Home
last modified time | relevance | path

Searched refs:exchange (Results 1 – 25 of 233) sorted by relevance

12345678910

/openbsd/sbin/isakmpd/
H A Dexchange.c196 struct exchange *exchange = msg->exchange; in exchange_validate() local
237 struct exchange *exchange = msg->exchange; in exchange_handle_leftover_payloads() local
269 struct exchange *exchange = msg->exchange; in exchange_run() local
431 struct exchange *exchange; in exchange_lookup_from_icookie() local
1266 struct exchange *exchange = msg->exchange; in exchange_upgrade_p1() local
1311 struct exchange *exchange = msg->exchange; in exchange_finalize() local
1535 struct exchange *exchange = msg->exchange; in exchange_gen_nonce() local
1559 struct exchange *exchange = msg->exchange; in exchange_save_nonce() local
1572 struct exchange *exchange = msg->exchange; in exchange_save_certreq() local
1610 struct exchange *exchange = msg->exchange; in exchange_add_certreqs() local
[all …]
H A Dike_auth.c352 if (!exchange->initiator && exchange->id_i) { in pre_shared_gen_skeyid()
435 sig_gen_skeyid(struct exchange *exchange, size_t *sz) in sig_gen_skeyid() argument
456 exchange->nonce_i_len + exchange->nonce_r_len); in sig_gen_skeyid()
487 enc_gen_skeyid(struct exchange *exchange, size_t *sz) in enc_gen_skeyid() argument
520 struct exchange *exchange = msg->exchange; in pre_shared_decode_hash() local
561 struct exchange *exchange = msg->exchange; in rsa_sig_decode_hash() local
579 id = initiator ? exchange->id_r : exchange->id_i; in rsa_sig_decode_hash()
819 struct exchange *exchange = msg->exchange; in pre_shared_encode_hash() local
844 struct exchange *exchange = msg->exchange; in rsa_sig_encode_hash() local
855 id = initiator ? exchange->id_i : exchange->id_r; in rsa_sig_encode_hash()
[all …]
H A Dike_phase_1.c72 struct exchange *exchange = msg->exchange; in ike_phase_1_initiator_send_SA() local
395 struct exchange *exchange = msg->exchange; in ike_phase_1_initiator_recv_SA() local
462 struct exchange *exchange = msg->exchange; in ike_phase_1_responder_recv_SA() local
602 struct exchange *exchange = msg->exchange; in ike_phase_1_post_exchange_KE_NONCE() local
699 exchange->key_length = exchange->crypto->keymax; in ike_phase_1_post_exchange_KE_NONCE()
744 exchange->keystate = crypto_init(exchange->crypto, in ike_phase_1_post_exchange_KE_NONCE()
788 struct exchange *exchange = msg->exchange; in ike_phase_1_send_ID() local
952 struct exchange *exchange = msg->exchange; in ike_phase_1_send_AUTH() local
985 struct exchange *exchange = msg->exchange; in ike_phase_1_recv_ID() local
1106 struct exchange *exchange = msg->exchange; in ike_phase_1_recv_AUTH() local
[all …]
H A Dmessage.c774 struct exchange *exchange = msg->exchange; in message_validate_id() local
798 struct exchange *exchange = msg->exchange; in message_validate_key_exch() local
821 struct exchange *exchange = msg->exchange; in message_validate_nat_d() local
847 struct exchange *exchange = msg->exchange; in message_validate_nat_oa() local
994 struct exchange *exchange = msg->exchange; in message_validate_sa() local
1026 msg->exchange = exchange; in message_validate_sa()
1541 struct exchange *exchange = msg->exchange; in message_send() local
1981 struct exchange *exchange = msg->exchange; in message_encrypt() local
2036 struct exchange *exchange = msg->exchange; in message_check_duplicate() local
2112 struct exchange *exchange = msg->exchange; in message_negotiate_sa() local
[all …]
H A Dexchange.h54 struct exchange { struct
56 LIST_ENTRY(exchange) link;
76 void (*finalize)(struct exchange *, void *, int); argument
231 extern void exchange_free(struct exchange *); argument
232 extern void exchange_free_aca_list(struct exchange *);
236 char *, void *, void (*)(struct exchange *, void *, int),
239 void (*)(struct exchange *, void *, int), void *);
242 extern struct exchange *exchange_lookup(u_int8_t *, int);
243 extern struct exchange *exchange_lookup_by_name(char *, int);
244 extern struct exchange *exchange_lookup_from_icookie(u_int8_t *);
[all …]
H A Dike_quick_mode.c388 struct exchange *exchange = msg->exchange; in initiator_send_HASH_SA_NONCE() local
1039 struct exchange *exchange = msg->exchange; in initiator_recv_HASH_SA_NONCE() local
1297 struct exchange *exchange = msg->exchange; in initiator_send_HASH() local
1334 exchange->nonce_i, exchange->nonce_i_len)); in initiator_send_HASH()
1337 exchange->nonce_r, exchange->nonce_r_len)); in initiator_send_HASH()
1357 struct exchange *exchange = msg->exchange; in post_quick_mode() local
1493 struct exchange *exchange = msg->exchange; in responder_recv_HASH_SA_NONCE() local
1814 struct exchange *exchange = msg->exchange; in responder_send_HASH_SA_NONCE() local
1935 struct exchange *exchange = msg->exchange; in gen_g_xy() local
1958 struct exchange *exchange = msg->exchange; in responder_recv_HASH() local
[all …]
H A Dipsec.c421 struct exchange *exchange = msg->exchange; in ipsec_finalize_exchange() local
855 if (msg->exchange && msg->exchange->keystate) { in ipsec_get_keystate()
937 size_t sz, struct exchange *exchange) in ipsec_validate_id_information() argument
1063 struct exchange *exchange = msg->exchange; in ipsec_initiator() local
1169 struct exchange *exchange = msg->exchange; in ipsec_responder() local
1186 exchange->phase, exchange->type, exchange->step)); in ipsec_responder()
1417 struct exchange *exchange = msg->exchange; in ipsec_decode_attribute() local
1649 struct exchange *exchange = msg->exchange; in ipsec_g_x() local
1673 struct exchange *exchange = msg->exchange; in ipsec_gen_g_x() local
1700 struct exchange *exchange = msg->exchange; in ipsec_save_g_x() local
[all …]
H A Dtransport.c258 struct exchange *exchange; in transport_send_messages() local
289 exchange = msg->exchange; in transport_send_messages()
290 exchange->in_transit = 0; in transport_send_messages()
315 exchange->last_sent = 0; in transport_send_messages()
328 exchange->name ? exchange->name : in transport_send_messages()
331 exchange->last_sent = 0; in transport_send_messages()
333 exchange_free(exchange); in transport_send_messages()
334 exchange = 0; in transport_send_messages()
361 exchange->last_sent = in transport_send_messages()
365 exchange->last_sent = in transport_send_messages()
[all …]
H A Ddnssec.c66 struct exchange *exchange = msg->exchange; in dns_get_key() local
96 id = exchange->initiator ? exchange->id_r : exchange->id_i; in dns_get_key()
97 id_len = exchange->initiator ? exchange->id_r_len : exchange->id_i_len; in dns_get_key()
H A Disakmp_doi.c64 u_int8_t *, size_t, struct exchange *);
165 size_t sz, struct exchange *exchange) in isakmp_validate_id_information() argument
209 if (msg->exchange->type != ISAKMP_EXCH_INFO) { in isakmp_initiator()
211 "in phase %d", msg->exchange->type, msg->exchange->phase); in isakmp_initiator()
223 switch (msg->exchange->type) { in isakmp_responder()
H A Dcookie.c54 cookie_gen(struct transport *t, struct exchange *exchange, u_int8_t *buf, in cookie_gen() argument
66 if (exchange->initiator == 0) in cookie_gen()
67 hash->Update(hash->ctx, exchange->cookies + in cookie_gen()
H A Dnat_traversal.c200 msg->exchange->flags |= EXCHANGE_FLAG_NAT_T_CAP_PEER; in nat_t_check_vendor_payload()
201 msg->exchange->flags |= isakmp_nat_t_cap[i].flags; in nat_t_check_vendor_payload()
217 struct ipsec_exch *ie = (struct ipsec_exch *)msg->exchange->data; in nat_t_generate_nat_d_hash()
242 hash->Update(hash->ctx, msg->exchange->cookies, in nat_t_generate_nat_d_hash()
243 sizeof msg->exchange->cookies); in nat_t_generate_nat_d_hash()
277 if (msg->exchange->flags & EXCHANGE_FLAG_NAT_T_RFC) in nat_t_add_nat_d()
280 else if (msg->exchange->flags & EXCHANGE_FLAG_NAT_T_DRAFT) in nat_t_add_nat_d()
373 msg->exchange->flags |= EXCHANGE_FLAG_NAT_T_ENABLE; in nat_t_exchange_check_nat_d()
376 msg->exchange->flags |= EXCHANGE_FLAG_NAT_T_KEEPALIVE; in nat_t_exchange_check_nat_d()
H A DTO-DO33 * Aggressive mode exchange. [done]
35 * Finish main mode exchange [done]
37 * Separation of key exchange from the IPsec DOI, i.e. factor out IKE details.
74 * Add time measuring and reporting to the exchange code for catching of
90 * If an exchange is on-going when a rekey event happens, drop the request.
100 * Handle notifications showing the peer did not want to continue this exchange.
108 * Acknowledged notification exchange.
131 * Handle CERTs anywhere in an exchange.
H A Dike_main_mode.c83 msg->exchange->flags |= EXCHANGE_FLAG_ENCRYPT; in initiator_send_ID_AUTH()
99 if (ike_phase_1_send_KE_NONCE(msg, msg->exchange->nonce_i_len)) in responder_send_KE_NONCE()
115 msg->exchange->flags |= EXCHANGE_FLAG_ENCRYPT; in responder_send_ID_AUTH()
H A Dike_aggressive.c108 msg->exchange->flags |= EXCHANGE_FLAG_ENCRYPT; in initiator_send_AUTH()
154 if (ike_phase_1_send_KE_NONCE(msg, msg->exchange->nonce_i_len)) in responder_send_SA_KE_NONCE_ID_AUTH()
174 if (msg->exchange->flags & EXCHANGE_FLAG_NAT_T_CAP_PEER) in responder_recv_AUTH()
H A Ddh.c279 group->exchange = modp_create_exchange; in group_get()
289 group->exchange = ec_create_exchange; in group_get()
329 return (group->exchange(group, buf)); in dh_create_exchange()
333 dh_create_shared(struct group *group, u_int8_t *secret, u_int8_t *exchange) in dh_create_shared() argument
335 return (group->shared(group, secret, exchange)); in dh_create_shared()
396 modp_create_shared(struct group *group, u_int8_t *secret, u_int8_t *exchange) in modp_create_shared() argument
403 if ((ex = BN_bin2bn(exchange, len, NULL)) == NULL) in modp_create_shared()
468 ec_create_shared(struct group *group, u_int8_t *secret, u_int8_t *exchange) in ec_create_shared() argument
481 ec_raw2point(group, exchange, ec_getlen(group))) == NULL) in ec_create_shared()
H A DDESIGN-NOTES41 dh.c Diffie-Hellman exchange logic.
44 exchange.c Exchange state machinery.
46 Some constants used for exchange scripts.
55 IKE's aggressive mode exchange logic.
57 ike_main_mode.c IKE's main mode exchange logic.
98 struct exchange A description of an exchange while it is performed.
102 struct ipsec_exch IPsec-specific exchange fields.
119 struct exchange Have all fields belonging to a simple exchange
133 Phase 2 exchange Cookie pair + message ID.
161 new exchange.
[all …]
H A Disakmp_cfg.c98 struct ipsec_exch *ie = msg->exchange->data; in cfg_initiator_send_ATTR()
108 if (msg->exchange->phase == 2) { in cfg_initiator_send_ATTR()
340 if (msg->exchange->phase == 2) in cfg_initiator_send_ATTR()
359 struct ipsec_exch *ie = msg->exchange->data; in cfg_initiator_recv_ATTR()
366 if (msg->exchange->phase == 2) in cfg_initiator_recv_ATTR()
468 struct ipsec_exch *ie = msg->exchange->data; in cfg_responder_recv_ATTR()
474 if (msg->exchange->phase == 2) in cfg_responder_recv_ATTR()
548 struct ipsec_exch *ie = msg->exchange->data; in cfg_responder_send_ATTR()
554 if (msg->exchange->phase == 2) { in cfg_responder_send_ATTR()
583 if (msg->exchange->phase == 2) in cfg_responder_send_ATTR()
[all …]
H A Dmessage.h103 struct exchange *exchange; member
186 int (*)(struct exchange *, struct sa *, struct sa *));
H A Dcookie.h38 struct exchange;
41 extern void cookie_gen(struct transport *, struct exchange *, u_int8_t *,
H A Dike_auth.h37 struct exchange;
41 u_int8_t *(*gen_skeyid) (struct exchange *, size_t *);
H A Ddoi.h38 struct exchange;
83 u_int8_t *, size_t, struct exchange *);
/openbsd/sbin/iked/
H A Ddh.c320 group->exchange = modp_create_exchange; in group_get()
327 group->exchange = ec_create_exchange; in group_get()
333 group->exchange = ec25519_create_exchange; in group_get()
404 return (group->exchange(group, ibuf_data(buf))); in dh_create_exchange()
414 return (group->shared2(group, secretp, exchange)); in dh_create_shared()
415 if (exchange == NULL || in dh_create_shared()
492 if ((ex = BN_bin2bn(exchange, len, NULL)) == NULL) in modp_create_shared()
835 struct ibuf *exchange) in kemsx_create_shared2() argument
849 if (exchange == NULL) in kemsx_create_shared2()
852 have = ibuf_size(exchange); in kemsx_create_shared2()
[all …]
/openbsd/usr.bin/ssh/
H A DPROTOCOL.agent10 exchange (as per RFC4253 section 7.2) and the host key used for that
11 exchange. This binding is verifiable at the agent by including the
24 identifier' is the exchange hash derived from the initial key
25 exchange, 'signature' is the server's signature of the session
28 exchange. 'is_forwarding' is a flag indicating whether this connection
/openbsd/gnu/llvm/llvm/include/llvm/Support/
H A Dthread.h74 : Thread(std::exchange(Other.Thread, native_handle_type())) {} in thread()
93 Thread = std::exchange(Other.Thread, native_handle_type());
166 : Thread(std::exchange(Other.Thread, std::thread())) {}
181 Thread = std::exchange(Other.Thread, std::thread());

12345678910