Home
last modified time | relevance | path

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

/xnu-10002.1.13/bsd/netinet6/
H A Desp_rijndael.c158 size_t ivoff, bodyoff; in esp_cbc_decrypt_aes() local
176 bodyoff = off + sizeof(struct esp) + ivlen; in esp_cbc_decrypt_aes()
179 bodyoff = off + sizeof(struct newesp) + ivlen; in esp_cbc_decrypt_aes()
182 if (m->m_pkthdr.len < bodyoff) { in esp_cbc_decrypt_aes()
184 algo->name, m->m_pkthdr.len, (u_int32_t)bodyoff)); in esp_cbc_decrypt_aes()
188 if ((m->m_pkthdr.len - bodyoff) % AES_BLOCKLEN) { in esp_cbc_decrypt_aes()
207 while (soff < bodyoff) { in esp_cbc_decrypt_aes()
208 if (soff + s->m_len > bodyoff) { in esp_cbc_decrypt_aes()
209 sn = (int)(bodyoff - soff); in esp_cbc_decrypt_aes()
373 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.c744 size_t ivoff, bodyoff; in esp_cbc_decrypt() local
776 bodyoff = off + sizeof(struct esp) + ivlen; in esp_cbc_decrypt()
786 bodyoff = off + sizeof(struct esp) + sizeof(u_int32_t); in esp_cbc_decrypt()
791 bodyoff = off + sizeof(struct newesp) + ivlen; in esp_cbc_decrypt()
817 if (m->m_pkthdr.len < bodyoff) { in esp_cbc_decrypt()
819 algo->name, m->m_pkthdr.len, (u_int32_t)bodyoff)); in esp_cbc_decrypt()
823 if ((m->m_pkthdr.len - bodyoff) % blocklen) { in esp_cbc_decrypt()
837 while (soff < bodyoff) { in esp_cbc_decrypt()
838 if (soff + s->m_len > bodyoff) { in esp_cbc_decrypt()
839 sn = (int)(bodyoff - soff); in esp_cbc_decrypt()
[all …]