Home
last modified time | relevance | path

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

12

/freebsd-13.1/crypto/openssh/regress/unittests/hostkeys/
H A Dtest_iterate.c101 expected->l.keytype == KEY_RSA || in check()
102 expected->no_parse_keytype == KEY_RSA || in check()
161 case KEY_RSA: in prepare_expected()
250 KEY_RSA,
334 KEY_RSA,
418 KEY_RSA,
502 KEY_RSA,
661 KEY_RSA,
675 KEY_RSA,
689 KEY_RSA,
[all …]
/freebsd-13.1/crypto/openssh/regress/unittests/sshkey/
H A Dtest_sshkey.c205 k1 = sshkey_new(KEY_RSA); in sshkey_tests()
237 ASSERT_INT_EQ(sshkey_generate(KEY_RSA, 128, &k1), in sshkey_tests()
243 ASSERT_INT_EQ(sshkey_generate(KEY_RSA, 1 << 20, &k1), in sshkey_tests()
265 ASSERT_INT_EQ(sshkey_generate(KEY_RSA, 767, &kr), in sshkey_tests()
267 ASSERT_INT_EQ(sshkey_generate(KEY_RSA, 1024, &kr), 0); in sshkey_tests()
308 ASSERT_INT_EQ(k1->type, KEY_RSA); in sshkey_tests()
382 ASSERT_INT_EQ(sshkey_generate(KEY_RSA, 1024, &k1), 0); in sshkey_tests()
/freebsd-13.1/crypto/openssh/
H A Dssh-rsa.c118 sshkey_type_plain(key->type) != KEY_RSA) in ssh_rsa_complete_crt_parameters()
184 sshkey_type_plain(key->type) != KEY_RSA) in ssh_rsa_sign()
257 sshkey_type_plain(key->type) != KEY_RSA || in ssh_rsa_verify()
H A Dsshkey.c326 case KEY_RSA: in sshkey_size()
359 case KEY_RSA: in sshkey_type_is_valid_ca()
566 case KEY_RSA: in sshkey_new()
621 case KEY_RSA: in sshkey_free()
720 case KEY_RSA: in sshkey_equal_public()
867 case KEY_RSA: in to_blob_buf()
1323 case KEY_RSA: in sshkey_read()
1408 case KEY_RSA: in sshkey_read()
1749 case KEY_RSA: in sshkey_generate()
1900 case KEY_RSA: in sshkey_from_private()
[all …]
H A Dssh-pkcs11-client.c133 key->type = KEY_RSA; in rsa_encrypt()
234 if (k->type == KEY_RSA) in wrap_key()
H A Dauthfd.c391 if (alg != NULL && sshkey_type_plain(key->type) == KEY_RSA) { in agent_encode_alg()
509 case KEY_RSA: in ssh_add_identity_constrained()
H A Dssh-keygen.c201 case KEY_RSA: in type_bits_valid()
213 case KEY_RSA: in type_bits_valid()
283 case KEY_RSA: in ask_filename()
378 case KEY_RSA: in do_convert_to_pkcs8()
402 case KEY_RSA: in do_convert_to_pem()
515 ktype = KEY_RSA; in do_convert_private_ssh2()
544 case KEY_RSA: in do_convert_private_ssh2()
700 (*k)->type = KEY_RSA; in do_convert_from_pkcs8()
737 (*k)->type = KEY_RSA; in do_convert_from_pem()
788 case KEY_RSA: in do_convert_from()
[all …]
H A Ddns.c88 case KEY_RSA: in dns_read_key()
H A Dauth2-hostbased.c104 if (sshkey_type_plain(key->type) == KEY_RSA && in userauth_hostbased()
H A Dsshkey.h60 KEY_RSA, enumerator
H A Dserverloop.c729 use_kexsigtype = kexsigtype == KEY_RSA && in server_input_hostkeys_prove()
730 sshkey_type_plain(key->type) == KEY_RSA; in server_input_hostkeys_prove()
H A Dauthfile.c330 case KEY_RSA: in sshkey_load_private_cert()
H A Dssh-pkcs11-helper.c206 if (key->type == KEY_RSA) { in process_sign()
H A Dsshsig.c182 if (sshkey_type_plain(key->type) == KEY_RSA) in sshsig_wrap_sign()
354 if (sshkey_type_plain(key->type) == KEY_RSA) { in sshsig_wrap_verify()
H A Dsshconnect2.c1192 (key->type != KEY_RSA && key->type != KEY_RSA_CERT) || in key_sig_algorithm()
1204 if (key->type == KEY_RSA && (ssh->compat & SSH_BUG_SIGTYPE74)) in key_sig_algorithm()
1614 case KEY_RSA: in key_type_allowed_by_config()
1824 if (sshkey_type_plain(id->key->type) == KEY_RSA && in try_identity()
H A Dssh-pkcs11.c899 key->type = KEY_RSA; in pkcs11_fetch_rsa_pubkey()
1014 key->type = KEY_RSA; in pkcs11_fetch_x509_pubkey()
1727 case KEY_RSA: in pkcs11_gakp()
H A Dclientloop.c2143 use_kexsigtype = kexsigtype == KEY_RSA && in client_global_hostkeys_private_confirm()
2144 sshkey_type_plain(ctx->keys[i]->type) == KEY_RSA; in client_global_hostkeys_private_confirm()
2186 if (key->type == KEY_RSA && in key_accepted_by_hostkeyalgs()
H A Dssh-keyscan.c733 case KEY_RSA: in main()
H A Dsshd.c648 case KEY_RSA:
1909 case KEY_RSA:
H A Dauth2-pubkey.c142 if (sshkey_type_plain(key->type) == KEY_RSA && in userauth_pubkey()
H A Dsshconnect.c1578 KEY_RSA, in show_other_keys()
H A Dssh-agent.c298 if (key->type == KEY_RSA) { in agent_decode_alg()
/freebsd-13.1/crypto/openssh/regress/misc/fuzz-harness/
H A Dkex_fuzz.cc147 if (prepare_key(st, KEY_RSA, 2048) != 0 || in prepare_keys()
264 case KEY_RSA: in prepare_key()
329 const int keytypes[] = { KEY_RSA, KEY_DSA, KEY_ECDSA, KEY_ED25519, -1 }; in main()
402 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-13.1/crypto/openssh/regress/unittests/kex/
H A Dtest_kex.c182 do_kex_with_key(kex, KEY_RSA, 2048); in do_kex()

12