Home
last modified time | relevance | path

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

/freebsd/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/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()
317 ASSERT_INT_EQ(k1->type, KEY_RSA); in sshkey_tests()
395 ASSERT_INT_EQ(sshkey_generate(KEY_RSA, 1024, &k1), 0); in sshkey_tests()
/freebsd/crypto/openssh/
H A Dssh-rsa.c426 sshkey_type_plain(key->type) != KEY_RSA) in ssh_rsa_sign()
484 sshkey_type_plain(key->type) != KEY_RSA || in ssh_rsa_verify()
576 /* .type = */ KEY_RSA,
602 /* .type = */ KEY_RSA,
614 /* .type = */ KEY_RSA,
H A Dssh-pkcs11-client.c277 key->type = KEY_RSA; in rsa_encrypt()
419 if (k->type == KEY_RSA) { in wrap_key()
474 if (priv->type == KEY_RSA) { in pkcs11_make_cert()
H A Ddns.c88 case KEY_RSA: in dns_read_key()
H A Dssh-keygen.c198 case KEY_RSA: in type_bits_valid()
210 case KEY_RSA: in type_bits_valid()
282 case KEY_RSA: in ask_filename()
380 case KEY_RSA: in do_convert_to_pkcs8()
408 case KEY_RSA: in do_convert_to_pem()
528 ktype = KEY_RSA; in do_convert_private_ssh2()
563 case KEY_RSA: in do_convert_private_ssh2()
733 (*k)->type = KEY_RSA; in do_convert_from_pkcs8()
777 (*k)->type = KEY_RSA; in do_convert_from_pem()
833 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.c318 else if (ktype == KEY_RSA) { in sshkey_match_keyname_to_sigalgs()
456 return KEY_RSA; in sshkey_type_plain()
479 case KEY_RSA: in sshkey_type_certified()
1476 (k->type != KEY_RSA && k->type != KEY_RSA_CERT)) in sshkey_check_rsa_length()
2317 if (alg == NULL && ca->type == KEY_RSA) in sshkey_certify_custom()
3368 case KEY_RSA: in sshkey_private_to_blob_pem_pkcs8()
3424 case KEY_RSA: in sshkey_private_to_fileblob()
3575 (type == KEY_UNSPEC || type == KEY_RSA)) { in sshkey_parse_private_pem_fileblob()
3584 prv->type = KEY_RSA; in sshkey_parse_private_pem_fileblob()
H A Dsshkey.h62 KEY_RSA, enumerator
H A Dserverloop.c659 ssh->kex->hostkey_alg)) == KEY_RSA) in server_input_hostkeys_prove()
694 if (sshkey_type_plain(key->type) == KEY_RSA) { in server_input_hostkeys_prove()
H A Dauthfile.c332 case KEY_RSA: in sshkey_load_private_cert()
H A Dssh-pkcs11-helper.c217 case KEY_RSA: in process_sign()
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.c914 key->type = KEY_RSA; in pkcs11_fetch_rsa_pubkey()
1032 key->type = KEY_RSA; in pkcs11_fetch_x509_pubkey()
1758 case KEY_RSA: in pkcs11_gakp()
H A Dsshconnect.c733 if (key->type == KEY_RSA && in hostkey_accepted_by_hostkeyalgs()
1627 KEY_RSA, in show_other_keys()
H A Dssh-keyscan.c766 case KEY_RSA: in main()
H A Dclientloop.c2350 ssh->kex->hostkey_alg)) == KEY_RSA) in client_global_hostkeys_prove_confirm()
2386 if (plaintype == KEY_RSA && rsa_kexalg == NULL && in client_global_hostkeys_prove_confirm()
2402 plaintype == KEY_RSA ? rsa_kexalg : NULL, 0, NULL)) != 0) { in client_global_hostkeys_prove_confirm()
H A Dsshconnect2.c1167 (key->type != KEY_RSA && key->type != KEY_RSA_CERT) || in key_sig_algorithm()
1179 if (key->type == KEY_RSA && (ssh->compat & SSH_BUG_SIGTYPE74)) in key_sig_algorithm()
1609 case KEY_RSA: in key_type_allowed_by_config()
H A Dssh-add.c510 if (sshkey_type_plain(key->type) == KEY_RSA) in test_key()
H A Dsshd-session.c479 case KEY_RSA: in list_hostkey_types()
H A Dsshd.c1605 case KEY_RSA: in main()
H A Dssh-agent.c684 if (key->type == KEY_RSA) { in agent_decode_alg()
/freebsd/crypto/openssh/regress/misc/fuzz-harness/
H A Dkex_fuzz.cc146 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 Dsig_fuzz.cc28 static struct sshkey *rsa = generate_or_die(KEY_RSA, 2048); in LLVMFuzzerTestOneInput()
/freebsd/crypto/openssh/regress/unittests/kex/
H A Dtest_kex.c186 do_kex_with_key(kex, KEY_RSA, 2048); in do_kex()