Home
last modified time | relevance | path

Searched refs:ivlen (Results 1 – 9 of 9) sorted by relevance

/xnu-8019.80.24/bsd/netinet6/
H A Desp_core.c155 .ivlen = esp_descbc_ivlen,
174 .ivlen = esp_common_ivlen,
193 .ivlen = esp_common_ivlen,
212 .ivlen = esp_common_ivlen,
231 .ivlen = esp_gcm_ivlen,
250 .ivlen = esp_chachapoly_ivlen,
295 int ivlen; in esp_max_ivlen() local
297 ivlen = 0; in esp_max_ivlen()
300 if (esp_algorithms[idx]->ivlenval > ivlen) { in esp_max_ivlen()
301 ivlen = esp_algorithms[idx]->ivlenval; in esp_max_ivlen()
[all …]
H A Desp_rijndael.c152 int ivlen) in esp_cbc_decrypt_aes() argument
166 if (ivlen != AES_BLOCKLEN) { in esp_cbc_decrypt_aes()
168 "unsupported ivlen %d\n", algo->name, ivlen)); in esp_cbc_decrypt_aes()
176 bodyoff = off + sizeof(struct esp) + ivlen; in esp_cbc_decrypt_aes()
179 bodyoff = off + sizeof(struct newesp) + ivlen; in esp_cbc_decrypt_aes()
199 m_copydata(m, (int)ivoff, ivlen, (caddr_t) iv); in esp_cbc_decrypt_aes()
367 int ivlen) in esp_cbc_encrypt_aes() argument
381 if (ivlen != AES_BLOCKLEN) { in esp_cbc_encrypt_aes()
383 "unsupported ivlen %d\n", algo->name, ivlen)); in esp_cbc_encrypt_aes()
391 bodyoff = off + sizeof(struct esp) + ivlen; in esp_cbc_encrypt_aes()
[all …]
H A Desp_chachapoly.c167 if (sav->ivlen != (esp_ccp_ctx->ccp_implicit_iv ? 0 : ESP_CHACHAPOLY_IV_LEN)) { in esp_chachapoly_schedule()
169 sav->ivlen, ntohl(sav->spi)); in esp_chachapoly_schedule()
267 int ivlen) in esp_chachapoly_encrypt() argument
275 const size_t bodyoff = ivoff + ivlen; // body offset in esp_chachapoly_encrypt()
290 if (ivlen != (esp_ccp_ctx->ccp_implicit_iv ? 0 : ESP_CHACHAPOLY_IV_LEN)) { in esp_chachapoly_encrypt()
293 ivlen, ntohl(sav->spi)); in esp_chachapoly_encrypt()
296 if (sav->ivlen != ivlen) { in esp_chachapoly_encrypt()
299 sav->ivlen, ntohl(sav->spi)); in esp_chachapoly_encrypt()
336 m_copyback(m, ivoff, ivlen, sav->iv); in esp_chachapoly_encrypt()
414 int ivlen) in esp_chachapoly_decrypt() argument
[all …]
H A Desp_output.c137 size_t ivlen; in esp_hdrsiz()
162 ivlen = sav->ivlen; in esp_hdrsiz()
163 if (ivlen < 0) { in esp_hdrsiz()
176 hdrsiz = sizeof(struct esp) + ivlen + maxpad; in esp_hdrsiz()
185 hdrsiz = sizeof(struct newesp) + ivlen + maxpad + authlen; in esp_hdrsiz()
256 int ivlen; in esp_output() local
265 KERNEL_DEBUG(DBG_FNC_ESPOUT | DBG_FUNC_START, sav->ivlen, 0, 0, 0, 0); in esp_output()
343 ivlen = sav->ivlen; in esp_output()
345 if (ivlen < 0) { in esp_output()
372 esphlen = esplen + ivlen; in esp_output()
[all …]
H A Desp_input.c223 int ivlen; in esp4_input_extended() local
303 ivlen = sav->ivlen; in esp4_input_extended()
304 if (ivlen < 0) { in esp4_input_extended()
428 if (m->m_pkthdr.len < off + esplen + ivlen + sizeof(esptail)) { in esp4_input_extended()
435 if (m->m_len < off + esplen + ivlen) { in esp4_input_extended()
436 m = m_pullup(m, (int)(off + esplen + ivlen)); in esp4_input_extended()
460 if ((*algo->decrypt)(m, off, sav, algo, ivlen)) { in esp4_input_extended()
553 if (ipsec4_tunnel_validate(m, (int)(off + esplen + ivlen), nxt, sav, &ifamily)) { in esp4_input_extended()
569 m_adj(m, (int)(off + esplen + ivlen)); in esp4_input_extended()
735 stripsiz = esplen + ivlen; in esp4_input_extended()
[all …]
H A Desp.h109 int (*ivlen)(const struct esp_algorithm *, struct secasvar *); member
/xnu-8019.80.24/bsd/netkey/
H A Dkeydb.h94 u_int ivlen; /* length of IV */ member
H A Dkey_debug.c636 ipsec_hexdump(sav->iv, sav->ivlen ? sav->ivlen : 8);
H A Dkey.c4114 kfree_data(sav->iv, sav->ivlen); in key_reset_sav()
4487 sav->ivlen = 0; in key_setsaval()
4493 if (algo && algo->ivlen) { in key_setsaval()
4494 sav->ivlen = (*algo->ivlen)(algo, sav); in key_setsaval()
4496 if (sav->ivlen == 0) { in key_setsaval()
4499 sav->iv = (caddr_t) kalloc_data(sav->ivlen, Z_NOWAIT); in key_setsaval()
4502 sav->iv = (caddr_t) kalloc_data(sav->ivlen, Z_WAITOK); in key_setsaval()
4512 key_randomfill(sav->iv, sav->ivlen); in key_setsaval()
8622 if (ealgo && ealgo->ivlen) { in key_register()
8627 VERIFY((*ealgo->ivlen)(ealgo, NULL) <= UINT8_MAX); in key_register()
[all …]