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

/macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/
H A Desp_core.c213 int ivlen; local
215 ivlen = 0;
218 if (esp_algorithms[idx]->ivlenval > ivlen)
219 ivlen = esp_algorithms[idx]->ivlenval;
222 return ivlen;
296 __unused int ivlen)
309 __unused int ivlen)
676 esp_cbc_decrypt(m, off, sav, algo, ivlen)
681 int ivlen;
697 if (ivlen !
291 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
303 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
875 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.c112 esp_cbc_decrypt_aes(m, off, sav, algo, ivlen)
117 int ivlen;
131 if (ivlen != AES_BLOCKLEN) {
133 "unsupported ivlen %d\n", algo->name, ivlen));
141 bodyoff = off + sizeof(struct esp) + ivlen;
144 bodyoff = off + sizeof(struct newesp) + ivlen;
162 m_copydata(m, ivoff, ivlen, iv);
277 int ivlen)
290 if (ivlen !
271 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.h81 int (*ivlen)(const struct esp_algorithm *, struct secasvar *); member in struct:esp_algorithm
H A Desp_input.c125 int ivlen; local
188 /* check if we have proper ivlen information */
189 ivlen = sav->ivlen;
190 if (ivlen < 0) {
191 ipseclog((LOG_ERR, "inproper ivlen in IPv4 ESP input: %s %s\n",
293 if (m->m_pkthdr.len < off + esplen + ivlen + sizeof(esptail)) {
300 if (m->m_len < off + esplen + ivlen) {
301 m = m_pullup(m, off + esplen + ivlen);
324 if ((*algo->decrypt)(m, off, sav, algo, ivlen)) {
572 int ivlen; local
[all...]
H A Desp_output.c117 size_t ivlen;
138 ivlen = sav->ivlen;
139 if (ivlen < 0)
150 hdrsiz = sizeof(struct esp) + ivlen + maxpad;
158 hdrsiz = sizeof(struct newesp) + ivlen + maxpad + authlen;
176 * esp_max_ivlen() = max ivlen for CBC mode
200 * ivlen
222 int ivlen; local
231 KERNEL_DEBUG(DBG_FNC_ESPOUT | DBG_FUNC_START, sav->ivlen,
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/netkey/
H A Dkeydb.h85 u_int ivlen; /* length of IV */ member in struct:secasvar
H A Dkey_debug.c276 printf(" { id=%d ivlen=%d min=%d max=%d }\n",
570 ipsec_hexdump(sav->iv, sav->ivlen ? sav->ivlen : 8);
H A Dkey.c3507 sav->ivlen = 0;
3513 if (algo && algo->ivlen)
3514 sav->ivlen = (*algo->ivlen)(algo, sav);
3515 if (sav->ivlen == 0)
3517 KMALLOC_NOWAIT(sav->iv, caddr_t, sav->ivlen);
3520 KMALLOC_WAIT(sav->iv, caddr_t, sav->ivlen);
3530 key_randomfill(sav->iv, sav->ivlen);
7083 if (ealgo && ealgo->ivlen) {
7089 (*ealgo->ivlen)(ealg
[all...]

Completed in 45 milliseconds