Home
last modified time | relevance | path

Searched refs:secasvar (Results 1 – 23 of 23) sorted by relevance

/xnu-11215.81.4/bsd/netinet6/
H A Desp.h99 struct secasvar;
125 int (*mature)(struct secasvar *);
130 int (*ivlen)(const struct esp_algorithm *, struct secasvar *);
132 struct secasvar *, const struct esp_algorithm *, int);
134 struct secasvar *, const struct esp_algorithm *, int);
136 int (*schedule)(const struct esp_algorithm *, struct secasvar *);
138 struct secasvar *, u_int8_t *, u_int8_t *);
140 struct secasvar *, u_int8_t *, u_int8_t *);
143 int (*finalizedecrypt)(struct secasvar *, u_int8_t *, size_t);
144 int (*finalizeencrypt)(struct secasvar *, u_int8_t *, size_t);
[all …]
H A Desp_rijndael.h64 int esp_aes_schedule(const struct esp_algorithm *, struct secasvar *);
65 int esp_cbc_decrypt_aes(struct mbuf *, size_t, struct secasvar *,
68 esp_cbc_encrypt_aes(struct mbuf *, size_t, size_t, struct secasvar *,
70 int esp_aes_cbc_encrypt_data(struct secasvar *,
75 int esp_aes_cbc_decrypt_data(struct secasvar *,
83 int esp_gcm_schedule(const struct esp_algorithm *, struct secasvar *);
84 int esp_gcm_ivlen(const struct esp_algorithm *, struct secasvar *);
85 int esp_gcm_encrypt_aes(struct mbuf *, size_t, size_t, struct secasvar *, const struct esp_algorith…
86 int esp_gcm_decrypt_aes(struct mbuf *, size_t, struct secasvar *, const struct esp_algorithm *, int…
87 int esp_gcm_encrypt_finalize(struct secasvar *, unsigned char *, size_t);
[all …]
H A Desp_chachapoly.h43 struct secasvar *);
44 int esp_chachapoly_encrypt(struct mbuf *, size_t, size_t, struct secasvar *,
46 int esp_chachapoly_decrypt(struct mbuf *, size_t, struct secasvar *,
48 int esp_chachapoly_encrypt_data(struct secasvar *,
53 int esp_chachapoly_decrypt_data(struct secasvar *,
58 int esp_chachapoly_encrypt_finalize(struct secasvar *, unsigned char *, size_t);
59 int esp_chachapoly_decrypt_finalize(struct secasvar *, unsigned char *, size_t);
60 int esp_chachapoly_mature(struct secasvar *);
61 int esp_chachapoly_ivlen(const struct esp_algorithm *, struct secasvar *);
H A Dah.h66 struct secasvar;
74 int (*sumsiz)(struct secasvar *);
75 int (*mature)(struct secasvar *);
79 int (*init)(struct ah_algorithm_state *, struct secasvar *);
85 int (*schedule)(const struct ah_algorithm *, struct secasvar *);
93 extern size_t ah_hdrlen(struct secasvar *);
95 extern int ah_schedule(const struct ah_algorithm *, struct secasvar *);
98 extern int ah4_output(struct mbuf *, struct secasvar *);
100 const struct ah_algorithm *, struct secasvar *);
H A Desp_core.c110 static int esp_null_mature(struct secasvar *);
112 struct secasvar *, const struct esp_algorithm *, int);
114 struct secasvar *, const struct esp_algorithm *, int);
115 static int esp_descbc_mature(struct secasvar *);
117 struct secasvar *);
119 struct secasvar *);
122 struct secasvar *, u_int8_t *__sized_by(sizeof(DES_LONG) * 2),
125 struct secasvar *, u_int8_t *__sized_by(sizeof(DES_LONG) * 2),
127 static int esp_cbc_mature(struct secasvar *);
129 struct secasvar *);
[all …]
H A Dah_core.c109 static int ah_hmac_mature(struct secasvar *);
110 static int ah_hmac_state_init(struct ah_algorithm_state *, struct secasvar *);
112 static int ah_hmac_schedule(const struct ah_algorithm *, struct secasvar *);
118 static int ah_sumsiz_1216(struct secasvar *);
122 static int ah_sumsiz_sha2_256(struct secasvar *);
124 static int ah_sumsiz_sha2_384(struct secasvar *);
126 static int ah_sumsiz_sha2_512(struct secasvar *);
130 static int ah_sumsiz_zero(struct secasvar *);
131 static int ah_none_mature(struct secasvar *);
132 static int ah_none_init(struct ah_algorithm_state *, struct secasvar *);
[all …]
H A Dah6.h42 struct secasvar;
46 struct secasvar *);
48 size_t len, const struct ah_algorithm *, struct secasvar *);
H A Dipsec.h391 extern int ipsec_chkreplay(u_int32_t, struct secasvar *, u_int8_t);
392 extern int ipsec_updatereplay(u_int32_t, struct secasvar *, u_int8_t);
400 extern const char *ipsec_logsastr(struct secasvar *);
408 extern int ipsec4_encapsulate(struct mbuf *, struct secasvar *);
411 extern int ipsec6_encapsulate(struct mbuf *, struct secasvar *);
412 extern int ipsec4_tunnel_validate(struct mbuf *, int, u_int, struct secasvar *, sa_family_t *);
H A Desp_chachapoly.c73 esp_chachapoly_mature(struct secasvar *sav) in esp_chachapoly_mature()
132 struct secasvar *sav) in esp_chachapoly_schedule()
177 struct secasvar *sav) in esp_chachapoly_ivlen()
192 esp_chachapoly_encrypt_finalize(struct secasvar *sav, in esp_chachapoly_encrypt_finalize()
218 esp_chachapoly_decrypt_finalize(struct secasvar *sav, in esp_chachapoly_decrypt_finalize()
247 struct secasvar *sav, in esp_chachapoly_encrypt()
392 struct secasvar *sav, in esp_chachapoly_decrypt()
522 esp_chachapoly_encrypt_data(struct secasvar *sav, in esp_chachapoly_encrypt_data()
615 esp_chachapoly_decrypt_data(struct secasvar *sav, in esp_chachapoly_decrypt_data()
H A Desp_rijndael.c106 struct secasvar *sav) in esp_aes_schedule()
150 struct secasvar *sav, in esp_cbc_decrypt_aes()
366 struct secasvar *sav, in esp_cbc_encrypt_aes()
590 esp_aes_cbc_encrypt_data(struct secasvar *sav, in esp_aes_cbc_encrypt_data()
633 esp_aes_cbc_decrypt_data(struct secasvar *sav, in esp_aes_cbc_decrypt_data()
688 struct secasvar *sav) in esp_gcm_schedule()
744 struct secasvar *sav) in esp_gcm_ivlen()
758 esp_gcm_encrypt_finalize(struct secasvar *sav, in esp_gcm_encrypt_finalize()
768 esp_gcm_decrypt_finalize(struct secasvar *sav, in esp_gcm_decrypt_finalize()
782 struct secasvar *sav, in esp_gcm_encrypt_aes()
[all …]
H A Desp6.h71 struct secasvar *);
H A Dipsec6.h84 struct secasvar *, sa_family_t *);
H A Dipsec.c253 static int ipsec64_encapsulate(struct mbuf *, struct secasvar *, uint32_t);
254 static int ipsec6_update_routecache_and_output(struct ipsec_output_state *state, struct secasvar *s…
255 static int ipsec46_encapsulate(struct ipsec_output_state *state, struct secasvar *sav);
259 int ipsec_send_natt_keepalive(struct secasvar *sav);
260 bool ipsec_fill_offload_frame(ifnet_t ifp, struct secasvar *sav, struct ifnet_keepalive_offload_fra…
2266 ipsec4_encapsulate(struct mbuf *m, struct secasvar *sav) in ipsec4_encapsulate()
2377 ipsec6_encapsulate(struct mbuf *m, struct secasvar *sav) in ipsec6_encapsulate()
2453 ipsec64_encapsulate(struct mbuf *m, struct secasvar *sav, u_int32_t dscp_mapping) in ipsec64_encapsulate()
2537 struct secasvar *sav) in ipsec6_update_routecache_and_output()
2683 ipsec46_encapsulate(struct ipsec_output_state *state, struct secasvar *sav) in ipsec46_encapsulate()
[all …]
H A Dah_output.c185 ah4_output(struct mbuf *m, struct secasvar *sav) in ah4_output()
375 ah_hdrlen(struct secasvar *sav) in ah_hdrlen()
402 struct secasvar *sav) in ah6_output()
H A Desp_output.c118 int, struct secasvar *sav);
138 struct secasvar *sav; in esp_hdrsiz()
244 struct secasvar *sav) in esp_output()
944 struct secasvar *sav) in esp4_output()
962 struct secasvar *sav) in esp6_output()
973 esp_kpipe_output(struct secasvar *sav, kern_packet_t sph, kern_packet_t dph) in esp_kpipe_output()
H A Dah_input.c132 struct secasvar *sav = NULL; in ah4_input()
602 struct secasvar *sav = NULL; in ah6_input()
970 struct secasvar *sav; in ah6_ctlinput()
H A Desp_input.c175 esp_input_log(struct mbuf *m, struct secasvar *sav, u_int32_t spi, u_int32_t seq) in esp_input_log()
226 struct secasvar *sav = NULL; in esp4_input_extended()
936 struct secasvar *sav = NULL; in esp6_input_extended()
1624 struct secasvar *sav; in esp6_ctlinput()
1733 struct secasvar *sav = NULL; in esp_kpipe_input()
/xnu-11215.81.4/bsd/netkey/
H A Dkey.h48 struct secasvar;
59 extern struct secasvar *key_allocsa_policy(struct secasindex *);
62 extern struct secasvar *key_alloc_outbound_sav_for_interface(ifnet_t interface, int family,
66 struct secasvar **sav);
67 struct secasvar *key_allocsa(union sockaddr_in_4_6 *src, union sockaddr_in_4_6 *dst,
70 extern u_int16_t key_natt_get_translated_port(struct secasvar *);
72 extern void key_freesav(struct secasvar *, int);
83 extern int key_checktunnelsanity(struct secasvar *, u_int, caddr_t, caddr_t);
84 extern void key_sa_recordxfer(struct secasvar *, size_t);
86 extern void key_sa_chgstate(struct secasvar *, u_int8_t);
[all …]
H A Dkeydb.h66 LIST_HEAD(_satree, secasvar) savtree[SADB_SASTATE_MAX + 1];
81 struct secasvar { struct
82 LIST_ENTRY(secasvar) chain;
83 LIST_ENTRY(secasvar) spihash;
H A Dkey_debug.h73 struct secasvar;
79 extern void kdebug_secasv(struct secasvar *);
H A Dkey.c172 static LIST_HEAD(_spihash, secasvar) spihash[SPIHASHSIZE];
417 static struct secasvar *key_do_allocsa_policy(struct secashead *, u_int, u_int16_t);
418 static int key_do_get_translated_port(struct secashead *, struct secasvar *, u_int);
446 static struct secasvar *key_newsav(struct mbuf *,
450 static struct secasvar *key_checkspidup(struct secasindex *, u_int32_t);
451 static void key_setspi __P((struct secasvar *, u_int32_t));
452 static struct secasvar *key_getsavbyspi(struct secashead *, u_int32_t);
453 static int key_setsaval(struct secasvar *, struct mbuf *,
455 static int key_mature(struct secasvar *);
456 static struct mbuf *key_setdumpsa(struct secasvar *, u_int8_t,
[all …]
H A Dkey_debug.c613 struct secasvar *sav; in kdebug_secasv()
/xnu-11215.81.4/bsd/netinet/
H A Dip_input.c3707 struct secasvar *__single sav; in ip_forward()