Searched refs:sn (Results 1 – 6 of 6) sorted by relevance
| /xnu-8792.41.9/bsd/netinet6/ |
| H A D | esp_rijndael.c | 157 int sn, dn; /* offset from the head of the mbuf, to meat */ in esp_cbc_decrypt_aes() local 202 soff = sn = dn = 0; in esp_cbc_decrypt_aes() 209 sn = (int)(bodyoff - soff); in esp_cbc_decrypt_aes() 217 scutoff = sn; in esp_cbc_decrypt_aes() 226 if (sn + AES_BLOCKLEN <= s->m_len) { in esp_cbc_decrypt_aes() 228 sp = mtod(s, u_int8_t *) + sn; in esp_cbc_decrypt_aes() 229 len = s->m_len - sn; in esp_cbc_decrypt_aes() 233 m_copydata(s, sn, AES_BLOCKLEN, (caddr_t) sbuf); in esp_cbc_decrypt_aes() 244 i = m->m_pkthdr.len - (soff + sn); in esp_cbc_decrypt_aes() 328 sn += len; in esp_cbc_decrypt_aes() [all …]
|
| H A D | esp_core.c | 697 int sn, dn; /* offset from the head of the mbuf, to meat */ in esp_cbc_decrypt() local 787 soff = doff = sn = dn = 0; in esp_cbc_decrypt() 793 sn = (int)(bodyoff - soff); in esp_cbc_decrypt() 801 scutoff = sn; in esp_cbc_decrypt() 815 if (sn + blocklen <= s->m_len) { in esp_cbc_decrypt() 817 sp = mtod(s, u_int8_t *) + sn; in esp_cbc_decrypt() 820 m_copydata(s, sn, blocklen, (caddr_t) sbuf); in esp_cbc_decrypt() 830 i = m->m_pkthdr.len - (soff + sn); in esp_cbc_decrypt() 898 sn += blocklen; in esp_cbc_decrypt() 902 while (s && sn >= s->m_len) { in esp_cbc_decrypt() [all …]
|
| H A D | esp_chachapoly.c | 271 int32_t sn = 0; // offset from the head of this mbuf (s) to the body in esp_chachapoly_encrypt() local 371 sn = bodyoff - soff; in esp_chachapoly_encrypt() 380 len = (size_t)(s->m_len - sn); in esp_chachapoly_encrypt() 385 sp = mtod(s, uint8_t *) + sn; in esp_chachapoly_encrypt() 396 sn = 0; in esp_chachapoly_encrypt() 418 int32_t sn = 0; // offset from the head of this mbuf (s) to the body in esp_chachapoly_decrypt() local 505 sn = bodyoff - soff; in esp_chachapoly_decrypt() 514 len = (size_t)(s->m_len - sn); in esp_chachapoly_decrypt() 519 sp = mtod(s, uint8_t *) + sn; in esp_chachapoly_decrypt() 530 sn = 0; in esp_chachapoly_decrypt()
|
| /xnu-8792.41.9/tests/ |
| H A D | turnstile_multihop_types.h | 19 typedef s64 sn; typedef 22 typedef s32 sn; typedef
|
| /xnu-8792.41.9/bsd/net/ |
| H A D | pf.c | 1337 pf_insert_src_node(struct pf_src_node **sn, struct pf_rule *rule, in pf_insert_src_node() argument 1342 if (*sn == NULL) { in pf_insert_src_node() 1352 *sn = RB_FIND(pf_src_tree, &tree_src_tracking, &k); in pf_insert_src_node() 1354 if (*sn == NULL) { in pf_insert_src_node() 1357 (*sn) = pool_get(&pf_src_tree_pl, PR_WAITOK); in pf_insert_src_node() 1361 if ((*sn) == NULL) { in pf_insert_src_node() 1364 bzero(*sn, sizeof(struct pf_src_node)); in pf_insert_src_node() 1366 pf_init_threshold(&(*sn)->conn_rate, in pf_insert_src_node() 1370 (*sn)->af = af; in pf_insert_src_node() 1373 (*sn)->rule.ptr = rule; in pf_insert_src_node() [all …]
|
| H A D | pf_ioctl.c | 2380 struct pf_src_node *sn; in pf_expire_states_and_src_nodes() local 2394 RB_FOREACH(sn, pf_src_tree, &tree_src_tracking) { in pf_expire_states_and_src_nodes() 2395 if (sn->rule.ptr != rule) { in pf_expire_states_and_src_nodes() 2398 if (sn->states != 0) { in pf_expire_states_and_src_nodes() 2401 if (state->src_node == sn) { in pf_expire_states_and_src_nodes() 2404 if (state->nat_src_node == sn) { in pf_expire_states_and_src_nodes() 2408 sn->states = 0; in pf_expire_states_and_src_nodes() 2410 sn->expire = 1; in pf_expire_states_and_src_nodes() 4395 struct pf_src_node *sn; in pfioctl_ioc_src_node_kill() local 4399 RB_FOREACH(sn, pf_src_tree, &tree_src_tracking) { in pfioctl_ioc_src_node_kill() [all …]
|