Home
last modified time | relevance | path

Searched refs:KEY_RSA (Results 1 – 24 of 24) sorted by relevance

/freebsd-14.2/crypto/openssh/regress/unittests/hostkeys/
H A Dtest_iterate.c105 expected->l.keytype == KEY_RSA || in check()
106 expected->no_parse_keytype == KEY_RSA || in check()
169 case KEY_RSA: in prepare_expected()
258 KEY_RSA,
342 KEY_RSA,
426 KEY_RSA,
510 KEY_RSA,
669 KEY_RSA,
683 KEY_RSA,
697 KEY_RSA,
[all …]
/freebsd-14.2/crypto/openssh/regress/unittests/sshkey/
H A Dtest_sshkey.c206 k1 = sshkey_new(KEY_RSA); in sshkey_tests()
240 ASSERT_INT_EQ(sshkey_generate(KEY_RSA, 128, &k1), in sshkey_tests()
246 ASSERT_INT_EQ(sshkey_generate(KEY_RSA, 1 << 20, &k1), in sshkey_tests()
270 ASSERT_INT_EQ(sshkey_generate(KEY_RSA, 767, &kr), in sshkey_tests()
272 ASSERT_INT_EQ(sshkey_generate(KEY_RSA, 1024, &kr), 0); in sshkey_tests()
315 ASSERT_INT_EQ(k1->type, KEY_RSA); in sshkey_tests()
391 ASSERT_INT_EQ(sshkey_generate(KEY_RSA, 1024, &k1), 0); in sshkey_tests()
/freebsd-14.2/crypto/openssh/
H A Dssh-rsa.c345 sshkey_type_plain(key->type) != KEY_RSA) in ssh_rsa_complete_crt_parameters()
413 sshkey_type_plain(key->type) != KEY_RSA) in ssh_rsa_sign()
487 sshkey_type_plain(key->type) != KEY_RSA || in ssh_rsa_verify()
699 /* .type = */ KEY_RSA,
725 /* .type = */ KEY_RSA,
737 /* .type = */ KEY_RSA,
H A Dssh-pkcs11-client.c272 key->type = KEY_RSA; in rsa_encrypt()
412 if (k->type == KEY_RSA) { in wrap_key()
451 if (priv->type == KEY_RSA) { in pkcs11_make_cert()
H A Ddns.c88 case KEY_RSA: in dns_read_key()
H A Dssh-keygen.c202 case KEY_RSA: in type_bits_valid()
214 case KEY_RSA: in type_bits_valid()
286 case KEY_RSA: in ask_filename()
381 case KEY_RSA: in do_convert_to_pkcs8()
407 case KEY_RSA: in do_convert_to_pem()
523 ktype = KEY_RSA; in do_convert_private_ssh2()
558 case KEY_RSA: in do_convert_private_ssh2()
718 (*k)->type = KEY_RSA; in do_convert_from_pkcs8()
757 (*k)->type = KEY_RSA; in do_convert_from_pem()
810 case KEY_RSA: in do_convert_from()
[all …]
H A Dauthfd.c391 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 Dsshkey.c303 else if (ktype == KEY_RSA) { in sshkey_match_keyname_to_sigalgs()
441 return KEY_RSA; in sshkey_type_plain()
464 case KEY_RSA: in sshkey_type_certified()
1338 (k->type != KEY_RSA && k->type != KEY_RSA_CERT)) in sshkey_check_rsa_length()
2209 if (alg == NULL && ca->type == KEY_RSA) in sshkey_certify_custom()
3257 case KEY_RSA: in sshkey_private_to_blob_pem_pkcs8()
3310 case KEY_RSA: in sshkey_private_to_fileblob()
3459 (type == KEY_UNSPEC || type == KEY_RSA)) { in sshkey_parse_private_pem_fileblob()
3465 prv->type = KEY_RSA; in sshkey_parse_private_pem_fileblob()
H A Dsshkey.h60 KEY_RSA, enumerator
H A Dserverloop.c692 ssh->kex->hostkey_alg)) == KEY_RSA) in server_input_hostkeys_prove()
727 if (sshkey_type_plain(key->type) == KEY_RSA) { in server_input_hostkeys_prove()
H A Dssh-pkcs11-helper.c206 if (key->type == KEY_RSA) { in process_sign()
H A Dauthfile.c332 case KEY_RSA: in sshkey_load_private_cert()
H A Dclientloop.c2368 ssh->kex->hostkey_alg)) == KEY_RSA) in client_global_hostkeys_prove_confirm()
2404 if (plaintype == KEY_RSA && rsa_kexalg == NULL && in client_global_hostkeys_prove_confirm()
2420 plaintype == KEY_RSA ? rsa_kexalg : NULL, 0, NULL)) != 0) { in client_global_hostkeys_prove_confirm()
2457 if (key->type == KEY_RSA && in key_accepted_by_hostkeyalgs()
H A Dsshsig.c193 if (sshkey_type_plain(key->type) == KEY_RSA) in sshsig_wrap_sign()
365 if (sshkey_type_plain(key->type) == KEY_RSA) { in sshsig_wrap_verify()
H A Dssh-pkcs11.c903 key->type = KEY_RSA; in pkcs11_fetch_rsa_pubkey()
1018 key->type = KEY_RSA; in pkcs11_fetch_x509_pubkey()
1729 case KEY_RSA: in pkcs11_gakp()
H A Dssh-keyscan.c802 case KEY_RSA: in main()
H A Dsshconnect2.c1168 (key->type != KEY_RSA && key->type != KEY_RSA_CERT) || in key_sig_algorithm()
1180 if (key->type == KEY_RSA && (ssh->compat & SSH_BUG_SIGTYPE74)) in key_sig_algorithm()
1610 case KEY_RSA: in key_type_allowed_by_config()
H A Dsshd.c634 case KEY_RSA:
1978 case KEY_RSA:
H A Dssh-add.c510 if (sshkey_type_plain(key->type) == KEY_RSA) in test_key()
H A Dsshconnect.c1597 KEY_RSA, in show_other_keys()
H A Dssh-agent.c684 if (key->type == KEY_RSA) { in agent_decode_alg()
/freebsd-14.2/crypto/openssh/regress/misc/fuzz-harness/
H A Dkex_fuzz.cc146 if (prepare_key(st, KEY_RSA, 2048) != 0 || in prepare_keys()
263 case KEY_RSA: in prepare_key()
328 const int keytypes[] = { KEY_RSA, KEY_DSA, KEY_ECDSA, KEY_ED25519, -1 }; in main()
401 do_kex_with_key(st, ts, kex, KEY_RSA); in do_kex()
H A Dsig_fuzz.cc28 static struct sshkey *rsa = generate_or_die(KEY_RSA, 2048); in LLVMFuzzerTestOneInput()
/freebsd-14.2/crypto/openssh/regress/unittests/kex/
H A Dtest_kex.c181 do_kex_with_key(kex, KEY_RSA, 2048); in do_kex()