/macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/ |
H A D | esp_core.c | 226 esp_schedule(algo, sav) 227 const struct esp_algorithm *algo; 233 if (_KEYBITS(sav->key_enc) < algo->keymin || 234 _KEYBITS(sav->key_enc) > algo->keymax) { 237 "needs %d to %d bits\n", algo->name, _KEYBITS(sav->key_enc), 238 algo->keymin, algo->keymax)); 249 if (!algo->schedule || !algo->schedlen) { 254 sav->schedlen = (*algo 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 319 const struct esp_algorithm *algo; local 358 esp_descbc_ivlen( __unused const struct esp_algorithm *algo, struct secasvar *sav) argument 373 esp_des_schedlen( __unused const struct esp_algorithm *algo) argument 381 esp_des_schedule( __unused const struct esp_algorithm *algo, struct secasvar *sav) argument 395 esp_des_blockdecrypt( __unused const struct esp_algorithm *algo, struct secasvar *sav, u_int8_t *s, u_int8_t *d) argument 410 esp_des_blockencrypt( __unused const struct esp_algorithm *algo, struct secasvar *sav, u_int8_t *s, u_int8_t *d) argument 429 const struct esp_algorithm *algo; local 492 esp_blowfish_schedlen( __unused const struct esp_algorithm *algo) argument 500 esp_blowfish_schedule( __unused const struct esp_algorithm *algo, struct secasvar *sav) argument 512 esp_blowfish_blockdecrypt( __unused const struct esp_algorithm *algo, struct secasvar *sav, u_int8_t *s, u_int8_t *d) argument 532 esp_blowfish_blockencrypt( __unused const struct esp_algorithm *algo, struct secasvar *sav, u_int8_t *s, u_int8_t *d) argument 552 esp_cast128_schedlen( __unused const struct esp_algorithm *algo) argument 560 esp_cast128_schedule( __unused const struct esp_algorithm *algo, struct secasvar *sav) argument 571 esp_cast128_blockdecrypt( __unused const struct esp_algorithm *algo, struct secasvar *sav, u_int8_t *s, u_int8_t *d) argument 586 esp_cast128_blockencrypt( __unused const struct esp_algorithm *algo, struct secasvar *sav, u_int8_t *s, u_int8_t *d) argument 602 esp_3des_schedlen( __unused const struct esp_algorithm *algo) argument 610 esp_3des_schedule( __unused const struct esp_algorithm *algo, struct secasvar *sav) argument 631 esp_3des_blockdecrypt( __unused const struct esp_algorithm *algo, struct secasvar *sav, u_int8_t *s, u_int8_t *d) argument 648 esp_3des_blockencrypt( __unused const struct esp_algorithm *algo, struct secasvar *sav, u_int8_t *s, u_int8_t *d) argument 665 esp_common_ivlen( const struct esp_algorithm *algo, __unused struct secasvar *sav) 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 1093 const struct ah_algorithm *algo; local [all...] |
H A D | ah_output.c | 107 const struct ah_algorithm *algo; 118 algo = ah_algorithm_lookup(isr->sav->alg_auth); 119 if (!algo) 129 hdrsiz = (((*algo->sumsiz)(isr->sav) + 3) & ~(4 - 1)); 163 const struct ah_algorithm *algo; local 188 algo = ah_algorithm_lookup(sav->alg_auth); 189 if (!algo) { 203 plen = ((*algo->sumsiz)(sav) + 3) & ~(4 - 1); /*XXX pad to 8byte?*/ 207 plen = ((*algo->sumsiz)(sav) + 3) & ~(4 - 1); /*XXX pad to 8byte?*/ 320 error = ah4_calccksum(m, (caddr_t)ahsumpos, plen, algo, sa 349 const struct ah_algorithm *algo; local 381 const struct ah_algorithm *algo; local [all...] |
H A D | ah_core.c | 358 const struct ah_algorithm *algo; local 365 algo = ah_algorithm_lookup(sav->alg_auth); 366 if (!algo) { 371 if (sav->key_auth->sadb_key_bits < algo->keymin 372 || algo->keymax < sav->key_auth->sadb_key_bits) { 481 const struct ah_algorithm *algo; local 488 algo = ah_algorithm_lookup(sav->alg_auth); 489 if (!algo) { 494 if (sav->key_auth->sadb_key_bits < algo->keymin 495 || algo 605 const struct ah_algorithm *algo; local 732 const struct ah_algorithm *algo; local 864 const struct ah_algorithm *algo; local 997 const struct ah_algorithm *algo; local [all...] |
H A D | esp_rijndael.c | 61 __unused const struct esp_algorithm *algo) 69 __unused const struct esp_algorithm *algo, 112 esp_cbc_decrypt_aes(m, off, sav, algo, ivlen) 116 const struct esp_algorithm *algo; 133 "unsupported ivlen %d\n", algo->name, ivlen)); 149 algo->name, m->m_pkthdr.len, (unsigned long)bodyoff)); 156 algo->name, AES_BLOCKLEN)); 276 const struct esp_algorithm *algo, 292 "unsupported ivlen %d\n", algo->name, ivlen)); 312 algo 60 esp_aes_schedlen( __unused const struct esp_algorithm *algo) argument 68 esp_aes_schedule( __unused const struct esp_algorithm *algo, struct secasvar *sav) argument 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 D | ipcomp_input.c | 90 const struct ipcomp_algorithm *algo; local 135 algo = ipcomp_algorithm_lookup(cpi); 136 if (!algo) { 156 error = (*algo->decompress)(m, m->m_next, &newlen); 244 const struct ipcomp_algorithm *algo; local 279 algo = ipcomp_algorithm_lookup(cpi); 280 if (!algo) { 294 error = (*algo->decompress)(m, md, &newlen);
|
H A D | esp_output.c | 115 const struct esp_algorithm *algo; 135 algo = esp_algorithm_lookup(sav->alg_enc); 136 if (!algo) 142 if (algo->padbound) 143 maxpad = algo->padbound; 217 const struct esp_algorithm *algo; local 285 algo = esp_algorithm_lookup(sav->alg_enc); 286 if (!algo) { 511 if (algo->padbound) 512 padbound = algo [all...] |
H A D | ipcomp_output.c | 116 const struct ipcomp_algorithm *algo; local 143 algo = ipcomp_algorithm_lookup(sav->alg_enc); 144 if ((ntohl(sav->spi) & ~0xffff) != 0 || !algo) { 160 if (plen < algo->minplen) 207 if ((*algo->compress)(m, md, &plen) || mprev->m_next == NULL) {
|
H A D | esp_input.c | 124 const struct esp_algorithm *algo; local 179 algo = esp_algorithm_lookup(sav->alg_enc); 180 if (!algo) { 313 if (esp_schedule(algo, sav) != 0) { 321 if (!algo->decrypt) 324 if ((*algo->decrypt)(m, off, sav, algo, ivlen)) { 571 const struct esp_algorithm *algo; local 624 algo = esp_algorithm_lookup(sav->alg_enc); 625 if (!algo) { [all...] |
H A D | ah_input.c | 105 const struct ah_algorithm *algo; local 168 algo = ah_algorithm_lookup(sav->alg_auth); 169 if (!algo) { 177 siz = (*algo->sumsiz)(sav); 282 if (ah4_calccksum(m, (caddr_t)cksum, siz1, algo, sav)) { 567 const struct ah_algorithm *algo; local 620 algo = ah_algorithm_lookup(sav->alg_auth); 621 if (!algo) { 629 siz = (*algo->sumsiz)(sav); 703 if (ah6_calccksum(m, (caddr_t)cksum, siz1, algo, sa [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/netkey/ |
H A D | key.c | 3347 const struct esp_algorithm *algo; local 3512 algo = esp_algorithm_lookup(sav->alg_enc); 3513 if (algo && algo->ivlen) 3514 sav->ivlen = (*algo->ivlen)(algo, sav); 3735 const struct ah_algorithm *algo; local 3738 algo = ah_algorithm_lookup(sav->alg_auth); 3739 if (!algo) { 3750 if (keylen < algo 3775 const struct esp_algorithm *algo; local 3817 const struct ipcomp_algorithm *algo; local 6262 const struct esp_algorithm *algo; local 6344 const struct ah_algorithm *algo; local 6403 const struct ipcomp_algorithm *algo; local [all...] |