| /freebsd/crypto/openssh/regress/unittests/sshkey/ |
| H A D | test_sshkey.c | 267 k1 = sshkey_new(KEY_RSA); in sshkey_tests() 305 ASSERT_INT_EQ(sshkey_generate(KEY_RSA, 128, &k1), in sshkey_tests() 311 ASSERT_INT_EQ(sshkey_generate(KEY_RSA, 1 << 20, &k1), in sshkey_tests() 328 ASSERT_INT_EQ(sshkey_generate(KEY_RSA, 767, &kr), in sshkey_tests() 330 ASSERT_INT_EQ(sshkey_generate(KEY_RSA, 1024, &kr), 0); in sshkey_tests() 376 ASSERT_INT_EQ(k1->type, KEY_RSA); in sshkey_tests() 458 ASSERT_INT_EQ(sshkey_generate(KEY_RSA, 1024, &k1), 0); in sshkey_tests() 675 ASSERT_INT_EQ(sshkey_generate(KEY_RSA, 1024, &k), 0); in sshkey_benchmarks() 684 ASSERT_INT_EQ(sshkey_generate(KEY_RSA, 2048, &k), 0); in sshkey_benchmarks() 739 signature_benchmark("RSA-1024/SHA1", KEY_RSA, 1024, "ssh-rsa", 0); in sshkey_benchmarks() [all …]
|
| /freebsd/crypto/openssh/regress/unittests/hostkeys/ |
| H A D | test_iterate.c | 96 if (expected->l.keytype == KEY_RSA || in check() 97 expected->no_parse_keytype == KEY_RSA || in check() 156 case KEY_RSA: in prepare_expected() 230 KEY_RSA, 300 KEY_RSA, 370 KEY_RSA, 440 KEY_RSA, 557 KEY_RSA, 571 KEY_RSA, 585 KEY_RSA, [all …]
|
| /freebsd/crypto/openssh/ |
| H A D | ssh-rsa.c | 423 sshkey_type_plain(key->type) != KEY_RSA) in ssh_rsa_sign() 506 sshkey_type_plain(key->type) != KEY_RSA || in ssh_rsa_verify() 598 /* .type = */ KEY_RSA, 624 /* .type = */ KEY_RSA, 636 /* .type = */ KEY_RSA,
|
| H A D | dns.c | 87 case KEY_RSA: in dns_read_key()
|
| H A D | ssh-keygen.c | 191 case KEY_RSA: in type_bits_valid() 199 case KEY_RSA: in type_bits_valid() 265 case KEY_RSA: in ask_filename() 362 case KEY_RSA: in do_convert_to_pkcs8() 383 case KEY_RSA: in do_convert_to_pem() 491 ktype = KEY_RSA; in do_convert_private_ssh2() 501 case KEY_RSA: in do_convert_private_ssh2() 672 (*k)->type = KEY_RSA; in do_convert_from_pkcs8() 707 (*k)->type = KEY_RSA; in do_convert_from_pem() 757 case KEY_RSA: in do_convert_from() [all …]
|
| H A D | sshkey.c | 302 else if (ktype == KEY_RSA) { in sshkey_match_keyname_to_sigalgs() 443 return KEY_RSA; in sshkey_type_plain() 464 case KEY_RSA: in sshkey_type_certified() 1475 (k->type != KEY_RSA && k->type != KEY_RSA_CERT)) in sshkey_check_rsa_length() 2318 if (alg == NULL && ca->type == KEY_RSA) in sshkey_certify_custom() 3329 case KEY_RSA: in sshkey_private_to_blob_pem_pkcs8() 3397 case KEY_RSA: in sshkey_private_to_fileblob() 3551 (type == KEY_UNSPEC || type == KEY_RSA)) { in sshkey_parse_private_pem_fileblob() 3560 prv->type = KEY_RSA; in sshkey_parse_private_pem_fileblob()
|
| H A D | authfd.c | 390 if (alg != NULL && sshkey_type_plain(key->type) == KEY_RSA) { in agent_encode_alg() 602 case KEY_RSA: in ssh_add_identity_constrained()
|
| H A D | sshkey.h | 60 KEY_RSA, enumerator
|
| H A D | serverloop.c | 684 ssh->kex->hostkey_alg)) == KEY_RSA) in server_input_hostkeys_prove() 719 if (sshkey_type_plain(key->type) == KEY_RSA) { in server_input_hostkeys_prove()
|
| H A D | authfile.c | 326 case KEY_RSA: in sshkey_load_private_cert()
|
| H A D | ssh-pkcs11.c | 1066 key->type = KEY_RSA; in pkcs11_fetch_rsa_pubkey() 1305 key->type = KEY_RSA; in pkcs11_fetch_x509_pubkey() 2074 case KEY_RSA: in pkcs11_sign() 2137 case KEY_RSA: in pkcs11_gakp()
|
| H A D | sshsig.c | 193 if (sshkey_type_plain(key->type) == KEY_RSA) { in sshsig_wrap_sign() 370 if (sshkey_type_plain(key->type) == KEY_RSA) { in sshsig_wrap_verify()
|
| H A D | sshd-auth.c | 246 case KEY_RSA: in list_hostkey_types()
|
| H A D | ssh-keyscan.c | 742 case KEY_RSA: in main()
|
| H A D | clientloop.c | 2384 ssh->kex->hostkey_alg)) == KEY_RSA) in client_global_hostkeys_prove_confirm() 2420 if (plaintype == KEY_RSA && rsa_kexalg == NULL && in client_global_hostkeys_prove_confirm() 2436 plaintype == KEY_RSA ? rsa_kexalg : NULL, 0, NULL)) != 0) { in client_global_hostkeys_prove_confirm()
|
| H A D | sshconnect.c | 771 if (key->type == KEY_RSA && in hostkey_accepted_by_hostkeyalgs() 1685 KEY_RSA, in show_other_keys()
|
| H A D | sshconnect2.c | 1173 (key->type != KEY_RSA && key->type != KEY_RSA_CERT) || in key_sig_algorithm() 1185 if (key->type == KEY_RSA && (ssh->compat & SSH_BUG_SIGTYPE74)) in key_sig_algorithm() 1616 case KEY_RSA: in key_type_allowed()
|
| H A D | ssh-add.c | 510 if (sshkey_type_plain(key->type) == KEY_RSA) in test_key()
|
| H A D | sshd.c | 1717 case KEY_RSA: in main()
|
| H A D | ssh-agent.c | 687 if (key->type == KEY_RSA) { in agent_decode_alg()
|
| /freebsd/crypto/openssh/regress/misc/fuzz-harness/ |
| H A D | kex_fuzz.cc | 146 if (prepare_key(st, KEY_RSA, 2048) != 0 || in prepare_keys() 262 case KEY_RSA: in prepare_key() 323 const int keytypes[] = { KEY_RSA, KEY_ECDSA, KEY_ED25519, -1 }; in main() 396 do_kex_with_key(st, ts, kex, KEY_RSA); in do_kex()
|
| H A D | sig_fuzz.cc | 28 static struct sshkey *rsa = generate_or_die(KEY_RSA, 2048); in LLVMFuzzerTestOneInput()
|
| /freebsd/crypto/openssh/regress/unittests/kex/ |
| H A D | test_kex.c | 221 do_kex_with_key(kex, NULL, NULL, NULL, KEY_RSA, 2048); in do_kex()
|