Lines Matching refs:keylen
207 * keylen is the unit of bit.
213 ipsec_check_keylen(supported, alg_id, keylen)
216 u_int keylen;
233 return ipsec_check_keylen2(satype, alg_id, keylen);
239 * keylen is the unit of bit.
245 ipsec_check_keylen2(satype, alg_id, keylen)
248 u_int keylen;
256 if (keylen < alg->sadb_alg_minbits || keylen > alg->sadb_alg_maxbits) {
257 fprintf(stderr, "%d %d %d\n", keylen, alg->sadb_alg_minbits,
270 * keylen is the unit of bit.
2169 u_int keylen)
2175 len = sizeof(struct sadb_key) + PFKEY_ALIGN8(keylen);
2183 p->sadb_key_bits = keylen << 3;
2186 memcpy(p + 1, key, keylen);