Lines Matching defs:bits
382 sshkey_ecdsa_bits_to_nid(int bits)
384 switch (bits) {
1264 u_long bits;
1272 /* Get number of bits. */
1273 bits = strtoul(cp, &ep, 10);
1275 bits == 0 || bits > SSHBUF_MAX_BIGNUM * 8)
1283 /* validate the claimed number of bits */
1284 if (BN_num_bits(ret->rsa->n) != (int)bits)
1418 u_int bits = 0;
1444 if ((bits = BN_num_bits(key->rsa->n)) <= 0) {
1448 if ((ret = sshbuf_putf(b, "%u %s %s", bits, dec_e, dec_n)) != 0)
1521 rsa_generate_private_key(u_int bits, RSA **rsap)
1528 bits < SSH_RSA_MINIMUM_MODULUS_SIZE ||
1529 bits > SSHBUF_MAX_BIGNUM * 8)
1537 !RSA_generate_key_ex(private, bits, f4, NULL)) {
1553 dsa_generate_private_key(u_int bits, DSA **dsap)
1558 if (dsap == NULL || bits != 1024)
1565 if (!DSA_generate_parameters_ex(private, bits, NULL, 0, NULL,
1632 ecdsa_generate_private_key(u_int bits, int *nid, EC_KEY **ecdsap)
1638 (*nid = sshkey_ecdsa_bits_to_nid(bits)) == -1)
1662 sshkey_generate(int type, u_int bits, struct sshkey **keyp)
1684 ret = dsa_generate_private_key(bits, &k->dsa);
1688 ret = ecdsa_generate_private_key(bits, &k->ecdsa_nid,
1694 ret = rsa_generate_private_key(bits, &k->rsa);
3411 * passphrase. The identification of the blob (lowest 64 bits of n) will
3634 /* Skip cipher type, reserved data and key bits. */
3637 (r = sshbuf_get_u32(copy, NULL)) != 0) /* key bits */
3714 if ((r = sshbuf_get_u32(copy, NULL)) != 0 || /* key bits */