Lines Matching refs:keymin
3750 if (keylen < algo->keymin || algo->keymax < keylen) {
3754 keylen, algo->keymin, algo->keymax));
3789 if (keylen < algo->keymin || algo->keymax < keylen) {
3793 keylen, algo->keymin, algo->keymax));
5376 u_int32_t keymin, keymax;
5383 keymin = spirange->sadb_spirange_min;
5386 keymin = key_spi_minval;
5392 if (keymin >= 0x10000)
5393 keymin = 0xffff;
5396 if (keymin > keymax) {
5397 t = keymin; keymin = keymax; keymax = t;
5401 if (keymin == keymax) {
5402 if (key_checkspidup(saidx, keymin) != NULL) {
5403 ipseclog((LOG_DEBUG, "key_do_getnewspi: SPI %u exists already.\n", keymin));
5408 newspi = keymin;
5412 u_long range = keymax - keymin + 1; /* overflow value of zero means full range */
5422 newspi = (range == 0 ? rand_val : keymin + (rand_val % range));
6277 if (algo->keymin < ipsec_esp_keymin)
6280 encmin = algo->keymin;
6346 int keymin;
6363 if (algo->keymin < ipsec_ah_keymin)
6364 keymin = ipsec_ah_keymin;
6366 keymin = algo->keymin;
6388 comb->sadb_comb_auth_minbits = keymin;
7061 alg->sadb_alg_minbits = aalgo->keymin;
7092 alg->sadb_alg_minbits = ealgo->keymin;