/darwin-on-arm/xnu/bsd/netinet6/ |
H A D | esp_core.c | 213 esp_schedule(algo, sav) 214 const struct esp_algorithm *algo; 220 if (_KEYBITS(sav->key_enc) < algo->keymin || 221 _KEYBITS(sav->key_enc) > algo->keymax) { 224 "needs %d to %d bits\n", algo->name, _KEYBITS(sav->key_enc), 225 algo->keymin, algo->keymax)); 236 if (!algo->schedule || !algo->schedlen) { 241 sav->schedlen = (*algo 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 306 const struct esp_algorithm *algo; local 345 esp_descbc_ivlen( __unused const struct esp_algorithm *algo, struct secasvar *sav) argument 360 esp_des_schedlen( __unused const struct esp_algorithm *algo) argument 367 esp_des_schedule( __unused const struct esp_algorithm *algo, struct secasvar *sav) argument 381 esp_des_blockdecrypt( __unused const struct esp_algorithm *algo, struct secasvar *sav, u_int8_t *s, u_int8_t *d) argument 395 esp_des_blockencrypt( __unused const struct esp_algorithm *algo, struct secasvar *sav, u_int8_t *s, u_int8_t *d) argument 413 const struct esp_algorithm *algo; local 472 esp_3des_schedlen( __unused const struct esp_algorithm *algo) argument 480 esp_3des_schedule( __unused const struct esp_algorithm *algo, struct secasvar *sav) argument 494 esp_3des_blockdecrypt( __unused const struct esp_algorithm *algo, struct secasvar *sav, u_int8_t *s, u_int8_t *d) argument 508 esp_3des_blockencrypt( __unused const struct esp_algorithm *algo, struct secasvar *sav, u_int8_t *s, u_int8_t *d) argument 522 esp_common_ivlen( const struct esp_algorithm *algo, __unused struct secasvar *sav) 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 1004 const struct ah_algorithm *algo; local [all...] |
H A D | ah_output.c | 135 const struct ah_algorithm *algo; 146 algo = ah_algorithm_lookup(isr->sav->alg_auth); 147 if (!algo) 157 hdrsiz = (((*algo->sumsiz)(isr->sav) + 3) & ~(4 - 1)); 191 const struct ah_algorithm *algo; local 216 algo = ah_algorithm_lookup(sav->alg_auth); 217 if (!algo) { 231 plen = ((*algo->sumsiz)(sav) + 3) & ~(4 - 1); /*XXX pad to 8byte?*/ 235 plen = ((*algo->sumsiz)(sav) + 3) & ~(4 - 1); /*XXX pad to 8byte?*/ 348 error = ah4_calccksum(m, (caddr_t)ahsumpos, plen, algo, sa 377 const struct ah_algorithm *algo; local 409 const struct ah_algorithm *algo; local [all...] |
H A D | ah_core.c | 391 const struct ah_algorithm *algo; local 398 algo = ah_algorithm_lookup(sav->alg_auth); 399 if (!algo) { 404 if (sav->key_auth->sadb_key_bits < algo->keymin 405 || algo->keymax < sav->key_auth->sadb_key_bits) { 515 const struct ah_algorithm *algo; local 522 algo = ah_algorithm_lookup(sav->alg_auth); 523 if (!algo) { 528 if (sav->key_auth->sadb_key_bits < algo->keymin 529 || algo 640 const struct ah_algorithm *algo; local 778 const struct ah_algorithm *algo; local 920 const struct ah_algorithm *algo; local 1063 const struct ah_algorithm *algo; local [all...] |
H A D | esp_rijndael.c | 91 __unused const struct esp_algorithm *algo) 99 __unused const struct esp_algorithm *algo, 142 esp_cbc_decrypt_aes(m, off, sav, algo, ivlen) 146 const struct esp_algorithm *algo; 163 "unsupported ivlen %d\n", algo->name, ivlen)); 179 algo->name, m->m_pkthdr.len, (u_int32_t)bodyoff)); 186 algo->name, AES_BLOCKLEN)); 326 const struct esp_algorithm *algo, 343 "unsupported ivlen %d\n", algo->name, ivlen)); 363 algo 90 esp_aes_schedlen( __unused const struct esp_algorithm *algo) argument 98 esp_aes_schedule( __unused const struct esp_algorithm *algo, struct secasvar *sav) argument 321 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 | 92 const struct ipcomp_algorithm *algo; local 140 algo = ipcomp_algorithm_lookup(cpi); 141 if (!algo) { 161 error = (*algo->decompress)(m, m->m_next, &newlen); 253 const struct ipcomp_algorithm *algo; local 292 algo = ipcomp_algorithm_lookup(cpi); 293 if (!algo) { 307 error = (*algo->decompress)(m, md, &newlen);
|
H A D | esp_output.c | 143 const struct esp_algorithm *algo; 163 algo = esp_algorithm_lookup(sav->alg_enc); 164 if (!algo) 170 if (algo->padbound) 171 maxpad = algo->padbound; 245 const struct esp_algorithm *algo; local 313 algo = esp_algorithm_lookup(sav->alg_enc); 314 if (!algo) { 539 if (algo->padbound) 540 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 | 175 const struct esp_algorithm *algo; local 241 algo = esp_algorithm_lookup(sav->alg_enc); 242 if (!algo) { 376 if (esp_schedule(algo, sav) != 0) { 384 if (!algo->decrypt) 387 if ((*algo->decrypt)(m, off, sav, algo, ivlen)) { 735 const struct esp_algorithm *algo; local 791 algo = esp_algorithm_lookup(sav->alg_enc); 792 if (!algo) { [all...] |
H A D | ah_input.c | 135 const struct ah_algorithm *algo; local 204 algo = ah_algorithm_lookup(sav->alg_auth); 205 if (!algo) { 213 siz = (*algo->sumsiz)(sav); 320 if (ah4_calccksum(m, (caddr_t)cksum, siz1, algo, sav)) { 629 const struct ah_algorithm *algo; local 685 algo = ah_algorithm_lookup(sav->alg_auth); 686 if (!algo) { 694 siz = (*algo->sumsiz)(sav); 768 if (ah6_calccksum(m, (caddr_t)cksum, siz1, algo, sa [all...] |
/darwin-on-arm/xnu/bsd/netkey/ |
H A D | key.c | 3579 const struct esp_algorithm *algo; local 3744 algo = esp_algorithm_lookup(sav->alg_enc); 3745 if (algo && algo->ivlen) 3746 sav->ivlen = (*algo->ivlen)(algo, sav); 3914 const struct esp_algorithm *algo; local 3996 algo = esp_algorithm_lookup(sav->alg_enc); 3997 if (algo && algo 4189 const struct ah_algorithm *algo; local 4229 const struct esp_algorithm *algo; local 4271 const struct ipcomp_algorithm *algo; local 6953 const struct esp_algorithm *algo; local 7036 const struct ah_algorithm *algo; local 7095 const struct ipcomp_algorithm *algo; local [all...] |