Home
last modified time | relevance | path

Searched refs:bodyoff (Results 1 – 3 of 3) sorted by relevance

/xnu-12377.41.6/bsd/netinet6/
H A Desp_rijndael.c158 size_t ivoff, bodyoff; in esp_cbc_decrypt_aes() local
177 bodyoff = off + sizeof(struct esp) + ivlen; in esp_cbc_decrypt_aes()
180 bodyoff = off + sizeof(struct newesp) + ivlen; in esp_cbc_decrypt_aes()
183 if (m->m_pkthdr.len < bodyoff) { in esp_cbc_decrypt_aes()
185 algo->name, m->m_pkthdr.len, (u_int32_t)bodyoff)); in esp_cbc_decrypt_aes()
189 if ((m->m_pkthdr.len - bodyoff) % AES_BLOCKLEN) { in esp_cbc_decrypt_aes()
208 while (soff < bodyoff) { in esp_cbc_decrypt_aes()
209 if (soff + s->m_len > bodyoff) { in esp_cbc_decrypt_aes()
210 sn = (int)(bodyoff - soff); in esp_cbc_decrypt_aes()
374 size_t ivoff, bodyoff; in esp_cbc_encrypt_aes() local
[all …]
H A Desp_chachapoly.c257 const size_t bodyoff = ivoff + ivlen; // body offset in esp_chachapoly_encrypt() local
286 if (m->m_pkthdr.len < bodyoff) { in esp_chachapoly_encrypt()
288 m->m_pkthdr.len, bodyoff, ntohl(sav->spi)); in esp_chachapoly_encrypt()
351 while (s != NULL && soff < bodyoff) { in esp_chachapoly_encrypt()
352 if (soff + s->m_len > bodyoff) { in esp_chachapoly_encrypt()
353 sn = bodyoff - soff; in esp_chachapoly_encrypt()
402 const int32_t bodyoff = ivoff + ivlen; // body offset in esp_chachapoly_decrypt() local
429 if (m->m_pkthdr.len < bodyoff) { in esp_chachapoly_decrypt()
431 m->m_pkthdr.len, bodyoff, ntohl(sav->spi)); in esp_chachapoly_decrypt()
483 while (s != NULL && soff < bodyoff) { in esp_chachapoly_decrypt()
[all …]
H A Desp_core.c774 size_t ivoff, bodyoff; in esp_cbc_decrypt() local
806 bodyoff = off + sizeof(struct esp) + ivlen; in esp_cbc_decrypt()
816 bodyoff = off + sizeof(struct esp) + sizeof(u_int32_t); in esp_cbc_decrypt()
821 bodyoff = off + sizeof(struct newesp) + ivlen; in esp_cbc_decrypt()
847 if (m->m_pkthdr.len < bodyoff) { in esp_cbc_decrypt()
849 algo->name, m->m_pkthdr.len, (u_int32_t)bodyoff)); in esp_cbc_decrypt()
853 if ((m->m_pkthdr.len - bodyoff) % blocklen) { in esp_cbc_decrypt()
867 while (soff < bodyoff) { in esp_cbc_decrypt()
868 if (soff + s->m_len > bodyoff) { in esp_cbc_decrypt()
869 sn = (int)(bodyoff - soff); in esp_cbc_decrypt()
[all …]