Lines Matching refs:algo

4301 	const struct esp_algorithm *algo;  in key_setsaval()  local
4473 algo = esp_algorithm_lookup(sav->alg_enc); in key_setsaval()
4474 if (algo && algo->ivlen) { in key_setsaval()
4475 ivlen = (*algo->ivlen)(algo, sav); in key_setsaval()
4651 const struct ah_algorithm *algo; in key_mature() local
4654 algo = ah_algorithm_lookup(sav->alg_auth); in key_mature()
4655 if (!algo) { in key_mature()
4667 if (keylen < algo->keymin || algo->keymax < keylen) { in key_mature()
4671 keylen, algo->keymin, algo->keymax)); in key_mature()
4675 if (algo->mature) { in key_mature()
4676 if ((*algo->mature)(sav)) { in key_mature()
4693 const struct esp_algorithm *algo; in key_mature() local
4696 algo = esp_algorithm_lookup(sav->alg_enc); in key_mature()
4697 if (!algo) { in key_mature()
4708 if (keylen < algo->keymin || algo->keymax < keylen) { in key_mature()
4712 keylen, algo->keymin, algo->keymax)); in key_mature()
4716 if (algo->mature) { in key_mature()
4717 if ((*algo->mature)(sav)) { in key_mature()
7913 const struct esp_algorithm *algo; in key_getcomb_esp() local
7923 algo = esp_algorithm_lookup(i); in key_getcomb_esp()
7924 if (!algo) { in key_getcomb_esp()
7928 if (algo->keymax < ipsec_esp_keymin) { in key_getcomb_esp()
7931 if (algo->keymin < ipsec_esp_keymin) { in key_getcomb_esp()
7934 encmin = algo->keymin; in key_getcomb_esp()
7979 comb->sadb_comb_encrypt_maxbits = algo->keymax; in key_getcomb_esp()
8006 const struct ah_algorithm *algo; in key_getcomb_ah() local
8020 algo = ah_algorithm_lookup(i); in key_getcomb_ah()
8021 if (!algo) { in key_getcomb_ah()
8025 if (algo->keymax < ipsec_ah_keymin) { in key_getcomb_ah()
8028 if (algo->keymin < ipsec_ah_keymin) { in key_getcomb_ah()
8031 keymin = algo->keymin; in key_getcomb_ah()
8058 comb->sadb_comb_auth_maxbits = algo->keymax; in key_getcomb_ah()