KEY_RSA
KEY_RSA,
KEY_RSA,
KEY_RSA,
KEY_RSA,
KEY_RSA,
KEY_RSA,
KEY_RSA,
{ NULL, HKF_STATUS_OK, KEY_RSA, HKF_MATCH_HOST, 0, 0, 0, -1, {
do_kex_with_key(kex, NULL, NULL, NULL, KEY_RSA, 2048);
k1 = sshkey_new(KEY_RSA);
ASSERT_INT_EQ(sshkey_generate(KEY_RSA, 128, &k1),
ASSERT_INT_EQ(sshkey_generate(KEY_RSA, 1 << 20, &k1),
ASSERT_INT_EQ(sshkey_generate(KEY_RSA, 767, &kr),
ASSERT_INT_EQ(sshkey_generate(KEY_RSA, 1024, &kr), 0);
ASSERT_INT_EQ(k1->type, KEY_RSA);
ASSERT_INT_EQ(sshkey_generate(KEY_RSA, 1024, &k1), 0);
ASSERT_INT_EQ(sshkey_generate(KEY_RSA, 1024, &k), 0);
ASSERT_INT_EQ(sshkey_generate(KEY_RSA, 2048, &k), 0);
signature_benchmark("RSA-1024/SHA1", KEY_RSA, 1024, "ssh-rsa", 0);
signature_benchmark("RSA-1024/SHA256", KEY_RSA, 1024, "rsa-sha2-256", 0);
signature_benchmark("RSA-1024/SHA512", KEY_RSA, 1024, "rsa-sha2-512", 0);
signature_benchmark("RSA-2048/SHA1", KEY_RSA, 2048, "ssh-rsa", 0);
signature_benchmark("RSA-2048/SHA256", KEY_RSA, 2048, "rsa-sha2-256", 0);
signature_benchmark("RSA-2048/SHA512", KEY_RSA, 2048, "rsa-sha2-512", 0);
signature_benchmark("RSA-1024/SHA1", KEY_RSA, 1024, "ssh-rsa", 1);
signature_benchmark("RSA-1024/SHA256", KEY_RSA, 1024, "rsa-sha2-256", 1);
signature_benchmark("RSA-1024/SHA512", KEY_RSA, 1024, "rsa-sha2-512", 1);
signature_benchmark("RSA-2048/SHA1", KEY_RSA, 2048, "ssh-rsa", 1);
signature_benchmark("RSA-2048/SHA256", KEY_RSA, 2048, "rsa-sha2-256", 1);
signature_benchmark("RSA-2048/SHA512", KEY_RSA, 2048, "rsa-sha2-512", 1);
if (alg != NULL && sshkey_type_plain(key->type) == KEY_RSA) {
case KEY_RSA:
case KEY_RSA:
ssh->kex->hostkey_alg)) == KEY_RSA)
if (plaintype == KEY_RSA && rsa_kexalg == NULL &&
plaintype == KEY_RSA ? rsa_kexalg : NULL, 0, NULL)) != 0) {
case KEY_RSA:
ssh->kex->hostkey_alg)) == KEY_RSA)
if (sshkey_type_plain(key->type) == KEY_RSA) {
if (sshkey_type_plain(key->type) == KEY_RSA)
if (key->type == KEY_RSA) {
} else if (ca->type == KEY_RSA) {
case KEY_RSA:
case KEY_RSA:
case KEY_RSA:
case KEY_RSA:
case KEY_RSA:
ktype = KEY_RSA;
case KEY_RSA:
(*k)->type = KEY_RSA;
(*k)->type = KEY_RSA;
case KEY_RSA:
case KEY_RSA:
key->type = KEY_RSA;
key->type = KEY_RSA;
case KEY_RSA:
case KEY_RSA:
sshkey_type_plain(key->type) != KEY_RSA)
sshkey_type_plain(key->type) != KEY_RSA ||
/* .type = */ KEY_RSA,
/* .type = */ KEY_RSA,
/* .type = */ KEY_RSA,
KEY_RSA,
if (key->type == KEY_RSA &&
(key->type != KEY_RSA && key->type != KEY_RSA_CERT) ||
if (key->type == KEY_RSA && (ssh->compat & SSH_BUG_SIGTYPE74))
case KEY_RSA:
case KEY_RSA:
case KEY_RSA:
(k->type != KEY_RSA && k->type != KEY_RSA_CERT))
if (alg == NULL && ca->type == KEY_RSA)
else if (ktype == KEY_RSA) {
case KEY_RSA:
case KEY_RSA:
(type == KEY_UNSPEC || type == KEY_RSA)) {
prv->type = KEY_RSA;
return KEY_RSA;
case KEY_RSA:
if (sshkey_type_plain(key->type) == KEY_RSA) {
if (sshkey_type_plain(key->type) == KEY_RSA) {