Lines Matching refs:bitsp
193 type_bits_valid(int type, const char *name, u_int32_t *bitsp) in type_bits_valid() argument
201 if (*bitsp == 0) { in type_bits_valid()
204 *bitsp = DEFAULT_BITS_DSA; in type_bits_valid()
208 *bitsp = sshkey_curve_nid_to_bits(nid); in type_bits_valid()
209 if (*bitsp == 0) in type_bits_valid()
210 *bitsp = DEFAULT_BITS_ECDSA; in type_bits_valid()
213 *bitsp = DEFAULT_BITS; in type_bits_valid()
218 if (*bitsp > maxbits) in type_bits_valid()
220 if (type == KEY_DSA && *bitsp != 1024) in type_bits_valid()
222 else if (type != KEY_ECDSA && type != KEY_ED25519 && *bitsp < 1024) in type_bits_valid()
224 else if (type == KEY_ECDSA && sshkey_ecdsa_bits_to_nid(*bitsp) == -1) in type_bits_valid()