• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/

Lines Matching defs:algo

358 	const struct ah_algorithm *algo;
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;
488 algo = ah_algorithm_lookup(sav->alg_auth);
489 if (!algo) {
494 if (sav->key_auth->sadb_key_bits < algo->keymin
495 || algo->keymax < sav->key_auth->sadb_key_bits) {
605 const struct ah_algorithm *algo;
612 algo = ah_algorithm_lookup(sav->alg_auth);
613 if (!algo) {
618 if (sav->key_auth->sadb_key_bits < algo->keymin
619 || algo->keymax < sav->key_auth->sadb_key_bits) {
732 const struct ah_algorithm *algo;
740 algo = ah_algorithm_lookup(sav->alg_auth);
741 if (!algo) {
747 if (sav->key_auth->sadb_key_bits < algo->keymin ||
748 algo->keymax < sav->key_auth->sadb_key_bits) {
864 const struct ah_algorithm *algo;
872 algo = ah_algorithm_lookup(sav->alg_auth);
873 if (!algo) {
879 if (sav->key_auth->sadb_key_bits < algo->keymin ||
880 algo->keymax < sav->key_auth->sadb_key_bits) {
997 const struct ah_algorithm *algo;
1005 algo = ah_algorithm_lookup(sav->alg_auth);
1006 if (!algo) {
1012 if (sav->key_auth->sadb_key_bits < algo->keymin ||
1013 algo->keymax < sav->key_auth->sadb_key_bits) {
1133 ah_update_mbuf(m, off, len, algo, algos)
1137 const struct ah_algorithm *algo;
1145 (algo->update)(algos, mtod(m, caddr_t) + off, len);
1167 (algo->update)(algos, mtod(n, caddr_t) + off, tlen);
1183 ah4_calccksum(m, ahdat, len, algo, sav)
1187 const struct ah_algorithm *algo;
1207 error = (algo->init)(&algos, sav);
1236 (algo->update)(&algos, (caddr_t)&iphdr, sizeof(struct ip));
1327 (algo->update)(&algos, p, hlen - sizeof(struct ip));
1349 siz = (*algo->sumsiz)(sav);
1376 (algo->update)(&algos, mtod(n, caddr_t), n->m_len);
1380 ah_update_mbuf(m, off, totlen, algo, &algos);
1389 ah_update_mbuf(m, off, m->m_pkthdr.len - off, algo, &algos);
1398 if (len < (*algo->sumsiz)(sav)) {
1403 (algo->result)(&algos, &sumbuf[0]);
1404 bcopy(&sumbuf[0], ahdat, (*algo->sumsiz)(sav));
1426 ah6_calccksum(m, ahdat, len, algo, sav)
1430 const struct ah_algorithm *algo;
1444 error = (algo->init)(&algos, sav);
1485 (algo->update)(&algos, (caddr_t)&ip6copy,
1489 ah_update_mbuf(m, off, m->m_pkthdr.len - off, algo,
1502 siz = (*algo->sumsiz)(sav);
1527 (algo->update)(&algos, mtod(n, caddr_t), n->m_len);
1531 ah_update_mbuf(m, off, newoff - off, algo, &algos);
1599 (algo->update)(&algos, mtod(n, caddr_t), n->m_len);
1615 ah_update_mbuf(m, off, newoff - off, algo, &algos);
1625 if (len < (*algo->sumsiz)(sav)) {
1630 (algo->result)(&algos, &sumbuf[0]);
1631 bcopy(&sumbuf[0], ahdat, (*algo->sumsiz)(sav));