Searched refs:ivlen (Results 1 – 9 of 9) sorted by relevance
| /xnu-10063.141.1/bsd/netinet6/ |
| H A D | esp_core.c | 167 .ivlen = esp_descbc_ivlen, 188 .ivlen = esp_common_ivlen, 209 .ivlen = esp_common_ivlen, 230 .ivlen = esp_common_ivlen, 251 .ivlen = esp_gcm_ivlen, 272 .ivlen = esp_chachapoly_ivlen, 324 int ivlen; in esp_max_ivlen() local 326 ivlen = 0; in esp_max_ivlen() 329 if (esp_algorithms[idx]->ivlenval > ivlen) { in esp_max_ivlen() 330 ivlen = esp_algorithms[idx]->ivlenval; in esp_max_ivlen() [all …]
|
| H A D | esp_rijndael.c | 152 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 D | esp_chachapoly.c | 148 if (sav->ivlen != (esp_ccp_ctx->ccp_implicit_iv ? 0 : ESP_CHACHAPOLY_IV_LEN)) { in esp_chachapoly_schedule() 150 sav->ivlen, ntohl(sav->spi)); in esp_chachapoly_schedule() 249 int ivlen) in esp_chachapoly_encrypt() argument 257 const size_t bodyoff = ivoff + ivlen; // body offset in esp_chachapoly_encrypt() 272 if (ivlen != (esp_ccp_ctx->ccp_implicit_iv ? 0 : ESP_CHACHAPOLY_IV_LEN)) { in esp_chachapoly_encrypt() 274 ivlen, ntohl(sav->spi)); in esp_chachapoly_encrypt() 278 if (sav->ivlen != ivlen) { in esp_chachapoly_encrypt() 280 sav->ivlen, ntohl(sav->spi)); in esp_chachapoly_encrypt() 318 m_copyback(m, ivoff, ivlen, sav->iv); in esp_chachapoly_encrypt() 394 int ivlen) in esp_chachapoly_decrypt() argument [all …]
|
| H A D | esp_output.c | 141 size_t ivlen; in esp_hdrsiz() 166 ivlen = sav->ivlen; in esp_hdrsiz() 167 if (ivlen < 0) { in esp_hdrsiz() 180 hdrsiz = sizeof(struct esp) + ivlen + maxpad; in esp_hdrsiz() 189 hdrsiz = sizeof(struct newesp) + ivlen + maxpad + authlen; in esp_hdrsiz() 260 int ivlen; in esp_output() local 269 KERNEL_DEBUG(DBG_FNC_ESPOUT | DBG_FUNC_START, sav->ivlen, 0, 0, 0, 0); in esp_output() 347 ivlen = sav->ivlen; in esp_output() 349 if (ivlen < 0) { in esp_output() 376 esphlen = esplen + ivlen; in esp_output() [all …]
|
| H A D | esp_input.c | 228 int ivlen; in esp4_input_extended() local 307 ivlen = sav->ivlen; in esp4_input_extended() 308 if (ivlen < 0) { in esp4_input_extended() 441 if (m->m_pkthdr.len < off + esplen + ivlen + sizeof(esptail)) { in esp4_input_extended() 448 if (m->m_len < off + esplen + ivlen) { in esp4_input_extended() 449 m = m_pullup(m, (int)(off + esplen + ivlen)); in esp4_input_extended() 474 if ((*algo->decrypt)(m, off, sav, algo, ivlen)) { in esp4_input_extended() 567 if (ipsec4_tunnel_validate(m, (int)(off + esplen + ivlen), nxt, sav, &ifamily)) { in esp4_input_extended() 583 m_adj(m, (int)(off + esplen + ivlen)); in esp4_input_extended() 748 stripsiz = esplen + ivlen; in esp4_input_extended() [all …]
|
| H A D | esp.h | 128 int (*ivlen)(const struct esp_algorithm *, struct secasvar *); member
|
| /xnu-10063.141.1/bsd/netkey/ |
| H A D | keydb.h | 96 u_int ivlen; /* length of IV */ member
|
| H A D | key_debug.c | 636 ipsec_hexdump(sav->iv, sav->ivlen ? sav->ivlen : 8);
|
| H A D | key.c | 4190 kfree_data(sav->iv, sav->ivlen); in key_reset_sav() 4548 sav->ivlen = 0; in key_setsaval() 4554 if (algo && algo->ivlen) { in key_setsaval() 4555 sav->ivlen = (*algo->ivlen)(algo, sav); in key_setsaval() 4557 if (sav->ivlen == 0) { in key_setsaval() 4560 sav->iv = (caddr_t) kalloc_data(sav->ivlen, Z_NOWAIT); in key_setsaval() 4563 sav->iv = (caddr_t) kalloc_data(sav->ivlen, Z_WAITOK); in key_setsaval() 4573 key_randomfill(sav->iv, sav->ivlen); in key_setsaval() 8697 if (ealgo && ealgo->ivlen) { in key_register() 8702 VERIFY((*ealgo->ivlen)(ealgo, NULL) <= UINT8_MAX); in key_register() [all …]
|