Searched refs:sav (Results 1 - 25 of 97) sorted by relevance

1234

/macosx-10.9.5/xnu-2422.115.4/bsd/netinet6/
H A Dah_output.c138 /*%%%%% this needs to change - no sav in ipsecrequest any more */
139 if (isr->sav == NULL)
141 if (isr->sav->state != SADB_SASTATE_MATURE
142 && isr->sav->state != SADB_SASTATE_DYING)
146 algo = ah_algorithm_lookup(isr->sav->alg_auth);
157 hdrsiz = (((*algo->sumsiz)(isr->sav) + 3) & ~(4 - 1));
158 if (isr->sav->flags & SADB_X_EXT_OLD)
187 ah4_output(m, sav)
189 struct secasvar *sav;
204 if ((sav
[all...]
H A Desp_input.c170 struct secasvar *sav = NULL; local
220 if ((sav = key_allocsa(AF_INET,
231 (uint64_t)VM_KERNEL_ADDRPERM(sav)));
232 if (sav->state != SADB_SASTATE_MATURE
233 && sav->state != SADB_SASTATE_DYING) {
240 algo = esp_algorithm_lookup(sav->alg_enc);
250 ivlen = sav->ivlen;
253 ipsec4_logpacketstr(ip, spi), ipsec_logsastr(sav)));
259 if (!((sav->flags & SADB_X_EXT_OLD) == 0 && sav
733 struct secasvar *sav = NULL; local
1199 struct secasvar *sav; local
[all...]
H A Desp_output.c119 int, struct secasvar *sav);
142 struct secasvar *sav;
150 /*%%%% this needs to change - no sav in ipsecrequest any more */
151 sav = isr->sav;
156 if (sav == NULL)
158 if (sav->state != SADB_SASTATE_MATURE
159 && sav->state != SADB_SASTATE_DYING)
163 algo = esp_algorithm_lookup(sav->alg_enc);
166 ivlen = sav
[all...]
H A Desp_core.c213 esp_schedule(algo, sav)
215 struct secasvar *sav;
220 if (_KEYBITS(sav->key_enc) < algo->keymin ||
221 _KEYBITS(sav->key_enc) > algo->keymax) {
224 "needs %d to %d bits\n", algo->name, _KEYBITS(sav->key_enc),
231 if (sav->sched && sav->schedlen != 0) {
241 sav->schedlen = (*algo->schedlen)(algo);
242 if ((signed) sav->schedlen < 0) {
248 sav
269 esp_null_mature( __unused struct secasvar *sav) argument
278 esp_null_decrypt( __unused struct mbuf *m, __unused size_t off, __unused struct secasvar *sav, __unused const struct esp_algorithm *algo, __unused int ivlen) argument
290 esp_null_encrypt( __unused struct mbuf *m, __unused size_t off, __unused size_t plen, __unused struct secasvar *sav, __unused const struct esp_algorithm *algo, __unused int ivlen) argument
345 esp_descbc_ivlen( __unused const struct esp_algorithm *algo, struct secasvar *sav) argument
367 esp_des_schedule( __unused const struct esp_algorithm *algo, struct secasvar *sav) argument
381 esp_des_blockdecrypt( __unused const struct esp_algorithm *algo, struct secasvar *sav, u_int8_t *s, u_int8_t *d) argument
395 esp_des_blockencrypt( __unused const struct esp_algorithm *algo, struct secasvar *sav, u_int8_t *s, u_int8_t *d) argument
480 esp_3des_schedule( __unused const struct esp_algorithm *algo, struct secasvar *sav) argument
494 esp_3des_blockdecrypt( __unused const struct esp_algorithm *algo, struct secasvar *sav, u_int8_t *s, u_int8_t *d) argument
508 esp_3des_blockencrypt( __unused const struct esp_algorithm *algo, struct secasvar *sav, u_int8_t *s, u_int8_t *d) argument
522 esp_common_ivlen( const struct esp_algorithm *algo, __unused struct secasvar *sav) argument
759 esp_cbc_encrypt( struct mbuf *m, size_t off, __unused size_t plen, struct secasvar *sav, const struct esp_algorithm *algo, int ivlen) argument
[all...]
H A Dah_core.c231 ah_sumsiz_1216(sav)
232 struct secasvar *sav;
234 if (!sav)
236 if (sav->flags & SADB_X_EXT_OLD)
243 ah_sumsiz_zero(sav)
244 struct secasvar *sav;
246 if (!sav)
252 ah_none_mature(sav)
253 struct secasvar *sav;
255 if (sav
264 ah_none_init( struct ah_algorithm_state *state, __unused struct secasvar *sav) argument
289 ah_keyed_md5_mature( __unused struct secasvar *sav) argument
[all...]
H A Dipcomp_input.c98 struct secasvar *sav = NULL; local
131 sav = key_allocsa(AF_INET, (caddr_t)&ip->ip_src,
133 if (sav != NULL
134 && (sav->state == SADB_SASTATE_MATURE
135 || sav->state == SADB_SASTATE_DYING)) {
136 cpi = sav->alg_enc; /*XXX*/
206 if (sav) {
207 key_sa_recordxfer(sav, m);
212 key_freesav(sav, KEY_SADB_UNLOCKED);
213 sav
258 struct secasvar *sav = NULL; local
[all...]
H A Dah_input.c137 struct secasvar *sav = NULL; local
182 if ((sav = key_allocsa(AF_INET,
193 (uint64_t)VM_KERNEL_ADDRPERM(sav)));
194 if (sav->state != SADB_SASTATE_MATURE
195 && sav->state != SADB_SASTATE_DYING) {
203 algo = ah_algorithm_lookup(sav->alg_auth);
212 siz = (*algo->sumsiz)(sav);
221 sizoff = (sav->flags & SADB_X_EXT_OLD) ? 0 : 4;
289 if ((sav->flags & SADB_X_EXT_OLD) == 0 && sav
634 struct secasvar *sav = NULL; local
1036 struct secasvar *sav; local
[all...]
H A Dipcomp_output.c83 int, struct secasvar *sav);
104 ipcomp_output(m, nexthdrp, md, af, sav)
109 struct secasvar *sav;
143 algo = ipcomp_algorithm_lookup(sav->alg_enc);
144 if ((ntohl(sav->spi) & ~0xffff) != 0 || !algo) {
149 if ((sav->flags & SADB_X_EXT_RAWCPI) == 0)
150 cpi = sav->alg_enc;
152 cpi = ntohl(sav->spi) & 0xffff;
216 IPSEC_STAT_INCREMENT(stat->out_comphist[sav->alg_enc]);
333 key_sa_recordxfer(sav, mcop
[all...]
H A Desp_rijndael.c100 struct secasvar *sav)
104 aes_ctx *ctx = (aes_ctx*)sav->sched;
106 aes_decrypt_key((const unsigned char *) _KEYBUF(sav->key_enc), _KEYLEN(sav->key_enc), &ctx->decrypt);
107 aes_encrypt_key((const unsigned char *) _KEYBUF(sav->key_enc), _KEYLEN(sav->key_enc), &ctx->encrypt);
142 esp_cbc_decrypt_aes(m, off, sav, algo, ivlen)
145 struct secasvar *sav;
168 if (sav->flags & SADB_X_EXT_OLD) {
293 (aes_decrypt_ctx*)(&(((aes_ctx*)sav
98 esp_aes_schedule( __unused const struct esp_algorithm *algo, struct secasvar *sav) argument
335 esp_cbc_encrypt_aes( struct mbuf *m, size_t off, __unused size_t plen, struct secasvar *sav, const struct esp_algorithm *algo, int ivlen) argument
[all...]
H A Dipsec.c269 int ipsec_send_natt_keepalive(struct secasvar *sav);
2058 /* this won't work with multiple input threads - isr->sav would change
2064 * isr->sav has been removed.
2068 if (isr->sav != NULL
2069 && isr->sav->flags == SADB_X_EXT_NONE
2070 && isr->sav->alg_auth != SADB_AALG_NONE)
2389 ipsec4_encapsulate(m, sav)
2391 struct secasvar *sav;
2399 if (((struct sockaddr *)&sav->sah->saidx.src)->sa_family
2400 != ((struct sockaddr *)&sav
3171 struct secasvar *sav = NULL; local
3455 struct secasvar *sav = NULL; local
3629 struct secasvar *sav = NULL; local
4546 ipsec_send_natt_keepalive( struct secasvar *sav) argument
[all...]
H A Dah.h62 struct secasvar *sav; member in struct:ah_algorithm_state
/macosx-10.9.5/xnu-2422.115.4/bsd/netkey/
H A Dkey.c355 #define KEY_CHKSASTATE(head, sav, name) \
357 if ((head) != (sav)) { \
359 (name), (head), (sav))); \
573 static int key_setsaval2(struct secasvar *sav,
592 int ipsec_send_natt_keepalive(struct secasvar *sav);
844 struct secasvar **sav)
852 *sav = NULL;
876 if (*sav == NULL)
877 *sav = key_allocsa_policy(saidx);
880 if (*sav !
841 key_checkrequest( struct ipsecrequest *isr, struct secasindex *saidx, struct secasvar **sav) argument
915 struct secasvar *sav; local
969 key_send_delete(struct secasvar *sav) argument
1042 struct secasvar *sav, *nextsav, *candidate, *natt_candidate, *no_natt_candidate, *d; local
1174 struct secasvar *sav, *match; local
1574 key_freesav( struct secasvar *sav, int locked) argument
3543 struct secasvar *sav, *nextsav; local
3869 key_delsav( struct secasvar *sav) argument
3982 struct secasvar *sav; local
4011 key_setspi( struct secasvar *sav, u_int32_t spi) argument
4034 struct secasvar *sav, *match; local
4067 key_setsaval( struct secasvar *sav, struct mbuf *m, const struct sadb_msghdr *mhp) argument
4390 key_setsaval2(struct secasvar *sav, u_int8_t satype, u_int8_t alg_auth, u_int8_t alg_enc, u_int32_t flags, u_int8_t replay, struct sadb_key *key_auth, u_int16_t key_auth_len, struct sadb_key *key_enc, u_int16_t key_enc_len, u_int16_t natt_port, u_int32_t seq, u_int32_t spi, u_int32_t pid, struct sadb_lifetime *lifetime_hard, struct sadb_lifetime *lifetime_soft) argument
4605 key_mature( struct secasvar *sav) argument
4784 key_setdumpsa( struct secasvar *sav, u_int8_t type, u_int8_t satype, u_int32_t seq, u_int32_t pid) argument
4982 key_setsadbsa( struct secasvar *sav) argument
5907 struct secasvar *sav, *nextsav; local
6760 struct secasvar *sav; local
6933 struct secasvar *sav; local
7255 struct secasvar *sav = NULL; local
7368 struct secasvar *sav, *nextsav; local
7458 struct secasvar *sav = NULL; local
7549 struct secasvar *sav = NULL; local
8538 key_expire( struct secasvar *sav) argument
8672 struct secasvar *sav, *nextsav; local
8749 struct secasvar *sav; member in struct:sav_dump_elem
8760 struct secasvar *sav; local
9431 key_checktunnelsanity( struct secasvar *sav, __unused u_int family, __unused caddr_t src, __unused caddr_t dst) argument
9449 key_sa_recordxfer( struct secasvar *sav, struct mbuf *m) argument
9522 key_sa_chgstate( struct secasvar *sav, u_int8_t state) argument
9544 key_sa_stir_iv( struct secasvar *sav) argument
[all...]
H A Dkey_debug.c597 kdebug_secasv(sav)
598 struct secasvar *sav;
601 if (sav == NULL)
605 kdebug_secasindex(&sav->sah->saidx);
608 sav->refcnt, sav->state, sav->alg_auth, sav->alg_enc);
610 (u_int32_t)ntohl(sav->spi), sav
[all...]
H A Dkey.h61 struct secasvar **sav);
107 extern void key_delsav(struct secasvar *sav);
/macosx-10.9.5/xnu-2422.115.4/bsd/net/
H A Dif_utun_crypto_ipsec.c213 struct secasvar *sav; local
219 for (sav = LIST_FIRST(&(*sah)->savtree[state]);
220 sav != NULL;
221 sav = nextsav) {
222 nextsav = LIST_NEXT(sav, chain);
223 if (sav->state == SADB_SASTATE_LARVAL ||
224 sav->state == SADB_SASTATE_DEAD) {
228 if (sav->utun_pcb) {
229 sav->utun_pcb = NULL;
230 sav
295 utun_ipsec_alloc_sav(struct secashead *sah, struct secasvar **sav, struct utun_pcb *pcb, u_int8_t satype, u_int8_t alg_auth, u_int8_t alg_enc, u_int32_t flags, u_int8_t replay, u_int8_t *key_auth, u_int16_t key_auth_len, u_int8_t *key_enc, u_int16_t key_enc_len, u_int16_t natt_port, u_int32_t seq, u_int32_t spi, u_int32_t pid, u_int64_t lifetime_hard, u_int64_t lifetime_soft) argument
367 utun_ipsec_free_sav(struct secasvar **sav) argument
386 struct secasvar *sav; local
700 struct secasvar *sav; local
[all...]
H A Dif_utun_crypto_ipsec.h39 #define IF_UTUN_GET_CRYPTO_KEYS_IPSEC_SAV(keys) keys->state.u.ipsec.sav
/macosx-10.9.5/CPANInternal-140/YAML-Syck/
H A Dyaml2byte.c130 bytestring_t *sav = NULL; local
190 syck_lookup_sym( p, oid, (char **)&sav );
191 bytestring_extend(val, sav);
200 syck_lookup_sym( p, oid, (char **)&sav );
201 bytestring_extend(val, sav);
203 syck_lookup_sym( p, oid, (char **)&sav );
204 bytestring_extend(val, sav);
219 bytestring_t *sav; local
229 if ( syck_lookup_sym( parser, oid, (char **)&sav ) == 1 ) {
230 ret = S_ALLOC_N( char, strlen( sav
[all...]
/macosx-10.9.5/ipsec-258.100.1/ipsec-tools/Common/
H A Dkey_debug.c617 if (isr->sav != NULL)
618 kdebug_secasv(isr->sav);
681 kdebug_secasv(sav)
682 struct secasvar *sav;
685 if (sav == NULL)
689 kdebug_secasindex(&sav->sah->saidx);
692 sav->refcnt, sav->state, sav->alg_auth, sav
[all...]
/macosx-10.9.5/sudo-72/src/auth/
H A Dpasswd.c73 char sav, *epass; local
91 sav = pass[8];
101 pass[8] = sav;
/macosx-10.9.5/zsh-60/zsh/Src/
H A Dwatch.c384 char *v, *vv, sav; local
404 sav = *vv;
408 *vv = sav;
414 sav = *vv;
418 *vv = sav;
424 sav = *vv;
428 *vv = sav;
H A Dsubst.c1298 char *p, sav; local
1304 sav = *t;
1308 *t = sav;
1414 int sav; local
1427 sav = **endp;
1435 **endp = sav;
1725 char *t, sav; local
1882 sav = *t;
1890 *t = sav;
1919 sav
2195 int sav; local
2696 char sav = *idend; local
3771 char *copy, *all, *tmp, sav, sav1, *ptr1end; local
[all...]
/macosx-10.9.5/tcsh-65/tcsh/
H A Dsh.exec.c152 Char *dp, **pv, **av, *sav; local
259 sav = Strspl(STRslash, *av);/* / command name for postpending */
261 cleanup_push(sav, xfree);
263 Vsav = sav;
291 dp = Strspl(*pv, sav);
317 cleanup_until(sav);
320 xfree(sav);
805 Char *sav; local
815 sav = Strspl(STRslash, name); /* / command name for postpending */
831 xfree(sav);
[all...]
/macosx-10.9.5/OpenLDAP-491.1/OpenLDAP/tests/scripts/
H A Dall39 *.sav) continue;;
/macosx-10.9.5/BerkeleyDB-21/db/test/
H A Drecd021.tcl173 file copy -force $testdir/log.0000000001 $testdir/log.sav
195 of=$testdir/log.sav count=$loff bs=1 >& /dev/null ] res
249 file rename -force $testdir/log.sav $testdir/log.0000000001
/macosx-10.9.5/zsh-60/zsh/Src/Zle/
H A Dcompcore.c711 char *ss, sav; local
715 sav = *ss;
720 *ss = sav;
1221 char sav; local
1243 sav = *b;
1247 *b = sav;
1254 sav = *b;
1257 *b = sav;
1493 * sav: save character when NULLed; careful, there's a nested
1494 * definition of sav jus
1497 char *tmp, *p, *ns, *ts, *ol, sav, *qp, *qs; local
1685 char *tsptr = ts, *nsptr = ns, sav; local
1847 char *ss, sav; local
2230 char sav = p[1]; local
[all...]

Completed in 376 milliseconds

1234