Home
last modified time | relevance | path

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

1234

/freebsd-12.1/crypto/openssh/
H A Dsshkey.h105 struct sshkey *signature_key;
109 struct sshkey { struct
129 struct sshkey *sshkey_new(int); argument
131 void sshkey_free(struct sshkey *);
133 const struct sshkey *);
134 int sshkey_equal(const struct sshkey *, const struct sshkey *);
147 int sshkey_from_private(const struct sshkey *, struct sshkey **);
153 int sshkey_drop_cert(struct sshkey *);
154 int sshkey_cert_copy(const struct sshkey *, struct sshkey *);
160 int sshkey_certify(struct sshkey *, struct sshkey *, const char *);
[all …]
H A Dsshkey-xmss.h33 size_t sshkey_xmss_pklen(const struct sshkey *);
34 size_t sshkey_xmss_sklen(const struct sshkey *);
35 int sshkey_xmss_init(struct sshkey *, const char *);
36 void sshkey_xmss_free_state(struct sshkey *);
37 int sshkey_xmss_generate_private_key(struct sshkey *, u_int);
47 int sshkey_xmss_siglen(const struct sshkey *, size_t *);
48 void *sshkey_xmss_params(const struct sshkey *);
49 void *sshkey_xmss_bds_state(const struct sshkey *);
51 int sshkey_xmss_enable_maxsign(struct sshkey *, u_int32_t);
52 int sshkey_xmss_forward_state(const struct sshkey *, u_int32_t);
[all …]
H A Dauthfile.h31 struct sshkey;
36 int sshkey_save_private(struct sshkey *, const char *,
39 int sshkey_load_cert(const char *, struct sshkey **);
40 int sshkey_load_public(const char *, struct sshkey **, char **);
41 int sshkey_load_private(const char *, const char *, struct sshkey **, char **);
43 struct sshkey **, int *);
45 struct sshkey **, char **, int *);
47 struct sshkey **keyp, char **commentp);
49 int sshkey_in_file(struct sshkey *, const char *, int, int);
50 int sshkey_check_revoked(struct sshkey *key, const char *revoked_keys_file);
H A Dauth.h48 struct sshkey;
89 struct sshkey **prev_keys;
93 struct sshkey *auth_method_key;
136 struct sshkey *);
139 int auth2_key_already_used(Authctxt *, const struct sshkey *);
146 void auth2_record_key(Authctxt *, int, const struct sshkey *);
199 int auth_key_is_revoked(struct sshkey *);
208 struct sshkey *get_hostkey_by_index(int);
209 struct sshkey *get_hostkey_public_by_index(int, struct ssh *);
212 int get_hostkey_index(struct sshkey *, int, struct ssh *);
[all …]
H A Dkrl.h39 struct sshkey;
48 const struct sshkey *ca_key, u_int64_t serial);
50 const struct sshkey *ca_key, u_int64_t lo, u_int64_t hi);
52 const struct sshkey *ca_key, const char *key_id);
53 int ssh_krl_revoke_key_explicit(struct ssh_krl *krl, const struct sshkey *key);
54 int ssh_krl_revoke_key_sha1(struct ssh_krl *krl, const struct sshkey *key);
55 int ssh_krl_revoke_key(struct ssh_krl *krl, const struct sshkey *key);
57 const struct sshkey **sign_keys, u_int nsign_keys);
59 const struct sshkey **sign_ca_keys, size_t nsign_ca_keys);
60 int ssh_krl_check_key(struct ssh_krl *krl, const struct sshkey *key);
[all …]
H A Dauthfile.c75 sshkey_save_private(struct sshkey *key, const char *filename, in sshkey_save_private()
170 struct sshkey **keyp, char **commentp, int *perm_ok) in sshkey_load_private_type()
203 struct sshkey **keyp, char **commentp) in sshkey_load_private_type_fd()
229 struct sshkey **keyp, char **commentp) in sshkey_load_private()
315 struct sshkey *pub = NULL; in sshkey_load_public()
358 sshkey_load_cert(const char *filename, struct sshkey **keyp) in sshkey_load_cert()
360 struct sshkey *pub = NULL; in sshkey_load_cert()
390 struct sshkey **keyp, int *perm_ok) in sshkey_load_private_cert()
392 struct sshkey *key = NULL, *cert = NULL; in sshkey_load_private_cert()
453 struct sshkey *pub = NULL; in sshkey_in_file()
[all …]
H A Dsshkey-xmss.c78 int sshkey_xmss_init_bds_state(struct sshkey *);
80 void sshkey_xmss_free_bds(struct sshkey *);
93 sshkey_xmss_init(struct sshkey *key, const char *name) in sshkey_xmss_init()
136 sshkey_xmss_free_state(struct sshkey *key) in sshkey_xmss_free_state()
162 sshkey_xmss_init_bds_state(struct sshkey *key) in sshkey_xmss_init_bds_state()
188 sshkey_xmss_free_bds(struct sshkey *key) in sshkey_xmss_free_bds()
211 sshkey_xmss_params(const struct sshkey *key) in sshkey_xmss_params()
221 sshkey_xmss_bds_state(const struct sshkey *key) in sshkey_xmss_bds_state()
246 sshkey_xmss_pklen(const struct sshkey *key) in sshkey_xmss_pklen()
256 sshkey_xmss_sklen(const struct sshkey *key) in sshkey_xmss_sklen()
[all …]
H A Dhostfile.h29 struct sshkey *key;
38 HostStatus check_key_in_hostkeys(struct hostkeys *, struct sshkey *,
43 int hostfile_read_key(char **, u_int *, struct sshkey *);
45 const struct sshkey *, int);
48 const char *host, const char *ip, struct sshkey **keys, size_t nkeys,
93 struct sshkey *key; /* Key, if parsed ok and HKF_WANT_MATCH_HOST set */
H A Dmonitor_wrap.h38 struct sshkey;
44 int mm_sshkey_sign(struct sshkey *, u_char **, size_t *, const u_char *, size_t,
54 int mm_key_allowed(enum mm_keytype, const char *, const char *, struct sshkey *,
56 int mm_user_key_allowed(struct ssh *, struct passwd *, struct sshkey *, int,
59 const char *, struct sshkey *);
60 int mm_sshkey_verify(const struct sshkey *, const u_char *, size_t,
H A Dssh_api.c38 int _ssh_verify_host_key(struct sshkey *, struct ssh *);
39 struct sshkey *_ssh_host_public_key(int, int, struct ssh *);
40 struct sshkey *_ssh_host_private_key(int, int, struct ssh *);
41 int _ssh_host_key_sign(struct sshkey *, struct sshkey *,
49 int mm_sshkey_sign(struct sshkey *, u_char **, u_int *,
176 ssh_add_hostkey(struct ssh *ssh, struct sshkey *key) in ssh_add_hostkey()
178 struct sshkey *pubkey = NULL; in ssh_add_hostkey()
211 int (*cb)(struct sshkey *, struct ssh *)) in ssh_set_verify_host_key_callback() argument
437 struct sshkey *
452 struct sshkey *
[all …]
H A Dsshkey.c490 struct sshkey *
493 struct sshkey *k; in sshkey_new()
558 struct sshkey *
644 sshkey_equal_public(const struct sshkey *a, const struct sshkey *b) in sshkey_equal_public()
721 sshkey_equal(const struct sshkey *a, const struct sshkey *b) in sshkey_equal()
1238 struct sshkey *k; in sshkey_read()
1624 struct sshkey *k; in sshkey_generate()
1673 sshkey_cert_copy(const struct sshkey *from_key, struct sshkey *to_key) in sshkey_cert_copy()
1729 sshkey_from_private(const struct sshkey *k, struct sshkey **pkp) in sshkey_from_private()
2489 sshkey_certify_custom(struct sshkey *k, struct sshkey *ca, const char *alg, in sshkey_certify_custom()
[all …]
H A Dauthfd.h22 struct sshkey **keys;
32 int ssh_add_identity_constrained(int sock, const struct sshkey *key,
34 int ssh_remove_identity(int sock, struct sshkey *key);
39 int ssh_agent_sign(int sock, const struct sshkey *key,
H A Dkex.h154 int (*verify_host_key)(struct sshkey *, struct ssh *);
155 struct sshkey *(*load_host_public_key)(int, int, struct ssh *);
156 struct sshkey *(*load_host_private_key)(int, int, struct ssh *);
157 int (*host_key_index)(struct sshkey *, int, struct ssh *);
158 int (*sign)(struct sshkey *, struct sshkey *, u_char **, size_t *,
H A Dsshconnect.h29 struct sshkey **keys;
45 int verify_host_key(char *, struct sockaddr *, struct sshkey *);
59 void maybe_add_key_to_agent(char *, const struct sshkey *, char *, char *);
H A Dssh-keygen.c299 static struct sshkey *
303 struct sshkey *prv; in load_identity()
394 struct sshkey *k; in do_convert_to()
442 static struct sshkey *
780 struct sshkey *prv; in do_print_public()
840 static struct sshkey *
843 struct sshkey *ret; in try_read_key()
1438 struct sshkey *public; in do_print_resource_record()
1467 struct sshkey *public; in do_change_comment()
1632 static struct sshkey *
[all …]
H A Dkrl.c85 struct sshkey *ca_key;
323 const struct sshkey *ca_key, u_int64_t lo, u_int64_t hi) in ssh_krl_revoke_cert_by_serial_range()
362 plain_key_blob(const struct sshkey *key, u_char **blob, size_t *blen) in plain_key_blob()
364 struct sshkey *kcopy; in plain_key_blob()
426 ssh_krl_revoke_key(struct ssh_krl *krl, const struct sshkey *key) in ssh_krl_revoke_key()
706 const struct sshkey **sign_keys, u_int nsign_keys) in ssh_krl_to_blob()
815 struct sshkey *ca_key = NULL; in parse_revoked_certs()
921 const struct sshkey **sign_ca_keys, size_t nsign_ca_keys) in ssh_krl_from_blob()
927 struct sshkey *key = NULL, **ca_used = NULL, **tmp_ca_used; in ssh_krl_from_blob()
1196 is_key_revoked(struct ssh_krl *krl, const struct sshkey *key) in is_key_revoked()
[all …]
H A Dssh-pkcs11-helper.c46 struct sshkey *key;
60 add_key(struct sshkey *k, char *name) in add_key()
87 static struct sshkey *
88 lookup_key(struct sshkey *k) in lookup_key()
113 struct sshkey **keys; in process_add()
181 struct sshkey *key, *found; in process_sign()
H A Dsshd.c511 struct sshkey *tmp; in demote_sensitive_data()
728 struct sshkey *key;
780 static struct sshkey *
784 struct sshkey *key;
809 struct sshkey *
815 struct sshkey *
821 struct sshkey *
829 struct sshkey *
868 struct sshkey *key;
1507 struct sshkey *key;
[all …]
H A Ddns.h55 struct sshkey *, int *);
56 int export_dns_rr(const char *, struct sshkey *, FILE *, int);
H A Dssh-pkcs11-client.c119 struct sshkey key; /* XXX */ in pkcs11_rsa_private_encrypt()
204 pkcs11_add_provider(char *name, char *pin, struct sshkey ***keysp) in pkcs11_add_provider()
206 struct sshkey *k; in pkcs11_add_provider()
228 *keysp = xcalloc(nkeys, sizeof(struct sshkey *)); in pkcs11_add_provider()
H A Dauth-options.h23 struct sshkey;
87 struct sshauthopt *sshauthopt_from_cert(struct sshkey *k);
/freebsd-12.1/crypto/openssh/regress/unittests/sshkey/
H A Dcommon.h18 const BIGNUM *rsa_n(struct sshkey *k);
19 const BIGNUM *rsa_e(struct sshkey *k);
20 const BIGNUM *rsa_p(struct sshkey *k);
21 const BIGNUM *rsa_q(struct sshkey *k);
22 const BIGNUM *dsa_g(struct sshkey *k);
23 const BIGNUM *dsa_pub_key(struct sshkey *k);
24 const BIGNUM *dsa_priv_key(struct sshkey *k);
H A Dcommon.c86 rsa_n(struct sshkey *k) in rsa_n()
97 rsa_e(struct sshkey *k) in rsa_e()
108 rsa_p(struct sshkey *k) in rsa_p()
119 rsa_q(struct sshkey *k) in rsa_q()
130 dsa_g(struct sshkey *k) in dsa_g()
141 dsa_pub_key(struct sshkey *k) in dsa_pub_key()
152 dsa_priv_key(struct sshkey *k) in dsa_priv_key()
H A Dtest_sshkey.c54 build_cert(struct sshbuf *b, const struct sshkey *k, const char *type, in build_cert()
55 const struct sshkey *sign_key, const struct sshkey *ca_key, in build_cert()
115 signature_test(struct sshkey *k, struct sshkey *bad, const char *sig_alg, in signature_test()
148 signature_tests(struct sshkey *k, struct sshkey *bad, const char *sig_alg) in signature_tests()
164 static struct sshkey *
168 struct sshkey *ret; in get_private()
179 struct sshkey *k1, *k2, *k3, *k4, *kr, *kd, *kf; in sshkey_tests()
181 struct sshkey *ke; in sshkey_tests()
/freebsd-12.1/crypto/openssh/regress/misc/fuzz-harness/
H A Dsig_fuzz.cc15 static struct sshkey *generate_or_die(int type, unsigned bits) { in generate_or_die()
17 struct sshkey *ret; in generate_or_die()
28 static struct sshkey *rsa = generate_or_die(KEY_RSA, 2048); in LLVMFuzzerTestOneInput()
29 static struct sshkey *dsa = generate_or_die(KEY_DSA, 1024); in LLVMFuzzerTestOneInput()
30 static struct sshkey *ecdsa256 = generate_or_die(KEY_ECDSA, 256); in LLVMFuzzerTestOneInput()
31 static struct sshkey *ecdsa384 = generate_or_die(KEY_ECDSA, 384); in LLVMFuzzerTestOneInput()
32 static struct sshkey *ecdsa521 = generate_or_die(KEY_ECDSA, 521); in LLVMFuzzerTestOneInput()
34 static struct sshkey *ed25519 = generate_or_die(KEY_ED25519, 0); in LLVMFuzzerTestOneInput()

1234