Searched refs:ivlen (Results 1 - 8 of 8) sorted by relevance

/xnu-2782.1.97/bsd/netinet6/
H A Desp_core.c200 int ivlen; local
202 ivlen = 0;
205 if (esp_algorithms[idx]->ivlenval > ivlen)
206 ivlen = esp_algorithms[idx]->ivlenval;
209 return ivlen;
283 __unused int ivlen)
296 __unused int ivlen)
533 esp_cbc_decrypt(m, off, sav, algo, ivlen)
538 int ivlen;
554 if (ivlen !
278 esp_null_decrypt( __unused struct mbuf *m, __unused size_t off, __unused struct secasvar *sav, __unused const struct esp_algorithm *algo, __unused int ivlen) argument
290 esp_null_encrypt( __unused struct mbuf *m, __unused size_t off, __unused size_t plen, __unused struct secasvar *sav, __unused const struct esp_algorithm *algo, __unused int ivlen) argument
759 esp_cbc_encrypt( struct mbuf *m, size_t off, __unused size_t plen, struct secasvar *sav, const struct esp_algorithm *algo, int ivlen) argument
[all...]
H A Desp_rijndael.c142 esp_cbc_decrypt_aes(m, off, sav, algo, ivlen)
147 int ivlen;
161 if (ivlen != AES_BLOCKLEN) {
163 "unsupported ivlen %d\n", algo->name, ivlen));
171 bodyoff = off + sizeof(struct esp) + ivlen;
174 bodyoff = off + sizeof(struct newesp) + ivlen;
192 m_copydata(m, ivoff, ivlen, (caddr_t) iv);
341 int ivlen)
355 if (ivlen !
335 esp_cbc_encrypt_aes( struct mbuf *m, size_t off, __unused size_t plen, struct secasvar *sav, const struct esp_algorithm *algo, int ivlen) argument
[all...]
H A Desp.h109 int (*ivlen)(const struct esp_algorithm *, struct secasvar *); member in struct:esp_algorithm
H A Desp_output.c145 size_t ivlen;
166 ivlen = sav->ivlen;
167 if (ivlen < 0)
178 hdrsiz = sizeof(struct esp) + ivlen + maxpad;
186 hdrsiz = sizeof(struct newesp) + ivlen + maxpad + authlen;
204 * esp_max_ivlen() = max ivlen for CBC mode
228 * ivlen
250 int ivlen; local
259 KERNEL_DEBUG(DBG_FNC_ESPOUT | DBG_FUNC_START, sav->ivlen,
[all...]
H A Desp_input.c175 int ivlen; local
250 /* check if we have proper ivlen information */
251 ivlen = sav->ivlen;
252 if (ivlen < 0) {
253 ipseclog((LOG_ERR, "inproper ivlen in IPv4 ESP input: %s %s\n",
356 if (m->m_pkthdr.len < off + esplen + ivlen + sizeof(esptail)) {
363 if (m->m_len < off + esplen + ivlen) {
364 m = m_pullup(m, off + esplen + ivlen);
387 if ((*algo->decrypt)(m, off, sav, algo, ivlen)) {
759 int ivlen; local
[all...]
/xnu-2782.1.97/bsd/netkey/
H A Dkeydb.h93 u_int ivlen; /* length of IV */ member in struct:secasvar
H A Dkey_debug.c282 printf(" { id=%d ivlen=%d min=%d max=%d }\n",
618 ipsec_hexdump(sav->iv, sav->ivlen ? sav->ivlen : 8);
H A Dkey.c4201 sav->ivlen = 0;
4207 if (algo && algo->ivlen)
4208 sav->ivlen = (*algo->ivlen)(algo, sav);
4209 if (sav->ivlen == 0)
4211 KMALLOC_NOWAIT(sav->iv, caddr_t, sav->ivlen);
4214 KMALLOC_WAIT(sav->iv, caddr_t, sav->ivlen);
4224 key_randomfill(sav->iv, sav->ivlen);
4454 sav->ivlen = 0;
4459 if (algo && algo->ivlen)
[all...]

Completed in 38 milliseconds