Symbol: sshkey
regress/usr.bin/ssh/misc/ssh-verify-attestation/ssh-verify-attestation.c
198
cred_matches_key_ecdsa(const fido_cred_t *cred, const struct sshkey *k)
regress/usr.bin/ssh/misc/ssh-verify-attestation/ssh-verify-attestation.c
200
struct sshkey *key = NULL;
regress/usr.bin/ssh/misc/ssh-verify-attestation/ssh-verify-attestation.c
264
cred_matches_key_ed25519(const fido_cred_t *cred, const struct sshkey *k)
regress/usr.bin/ssh/misc/ssh-verify-attestation/ssh-verify-attestation.c
266
struct sshkey *key = NULL;
regress/usr.bin/ssh/misc/ssh-verify-attestation/ssh-verify-attestation.c
304
cred_matches_key(const fido_cred_t *cred, const struct sshkey *k)
regress/usr.bin/ssh/misc/ssh-verify-attestation/ssh-verify-attestation.c
329
struct sshkey *k = NULL;
regress/usr.bin/ssh/unittests/authopt/tests.c
23
static struct sshkey *
regress/usr.bin/ssh/unittests/authopt/tests.c
26
struct sshkey *ret;
regress/usr.bin/ssh/unittests/authopt/tests.c
289
struct sshkey *cert;
regress/usr.bin/ssh/unittests/authopt/tests.c
376
struct sshkey *cert;
regress/usr.bin/ssh/unittests/kex/test_kex.c
193
struct sshkey *key = NULL;
regress/usr.bin/ssh/unittests/kex/test_kex.c
77
struct sshkey *key, int keytype, int bits)
regress/usr.bin/ssh/unittests/kex/test_kex.c
80
struct sshkey *private, *public;
regress/usr.bin/ssh/unittests/sshkey/common.c
108
rsa_q(struct sshkey *k)
regress/usr.bin/ssh/unittests/sshkey/common.c
75
rsa_n(struct sshkey *k)
regress/usr.bin/ssh/unittests/sshkey/common.c
86
rsa_e(struct sshkey *k)
regress/usr.bin/ssh/unittests/sshkey/common.c
97
rsa_p(struct sshkey *k)
regress/usr.bin/ssh/unittests/sshkey/common.h
18
const BIGNUM *rsa_n(struct sshkey *k);
regress/usr.bin/ssh/unittests/sshkey/common.h
19
const BIGNUM *rsa_e(struct sshkey *k);
regress/usr.bin/ssh/unittests/sshkey/common.h
20
const BIGNUM *rsa_p(struct sshkey *k);
regress/usr.bin/ssh/unittests/sshkey/common.h
21
const BIGNUM *rsa_q(struct sshkey *k);
regress/usr.bin/ssh/unittests/sshkey/test_file.c
37
struct sshkey *k1, *k2;
regress/usr.bin/ssh/unittests/sshkey/test_fuzz.c
104
struct sshkey *k1;
regress/usr.bin/ssh/unittests/sshkey/test_fuzz.c
41
public_fuzz(struct sshkey *k)
regress/usr.bin/ssh/unittests/sshkey/test_fuzz.c
43
struct sshkey *k1;
regress/usr.bin/ssh/unittests/sshkey/test_fuzz.c
69
sig_fuzz(struct sshkey *k, const char *sig_alg)
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
108
signature_test(struct sshkey *k, struct sshkey *bad, const char *sig_alg,
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
130
struct sshkey *k;
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
154
struct sshkey *k;
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
191
signature_tests(struct sshkey *k, struct sshkey *bad, const char *sig_alg)
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
220
static struct sshkey *
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
224
struct sshkey *ret;
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
235
struct sshkey *k1 = NULL, *k2 = NULL, *k3 = NULL, *k4 = NULL;
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
236
struct sshkey *kr = NULL, *kd = NULL, *ke = NULL, *kf = NULL;
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
47
build_cert(struct sshbuf *b, struct sshkey *k, const char *type,
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
48
struct sshkey *sign_key, struct sshkey *ca_key,
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
529
struct sshkey *k = NULL;
regress/usr.bin/ssh/unittests/sshsig/tests.c
39
static struct sshkey *
regress/usr.bin/ssh/unittests/sshsig/tests.c
42
struct sshkey *ret = NULL;
regress/usr.bin/ssh/unittests/sshsig/tests.c
52
struct sshkey *k, *sign_key;
usr.bin/ssh/auth-options.c
499
sshauthopt_from_cert(struct sshkey *k)
usr.bin/ssh/auth-options.h
23
struct sshkey;
usr.bin/ssh/auth-options.h
98
struct sshauthopt *sshauthopt_from_cert(struct sshkey *k);
usr.bin/ssh/auth.c
205
const struct sshkey *key = authctxt->auth_method_key;
usr.bin/ssh/auth.c
369
check_key_in_hostfiles(struct passwd *pw, struct sshkey *key, const char *host,
usr.bin/ssh/auth.c
458
auth_key_is_revoked(struct sshkey *key)
usr.bin/ssh/auth.h
132
const char *, char *, struct sshkey *);
usr.bin/ssh/auth.h
133
int user_key_allowed(struct ssh *ssh, struct passwd *, struct sshkey *,
usr.bin/ssh/auth.h
135
int auth2_key_already_used(Authctxt *, const struct sshkey *);
usr.bin/ssh/auth.h
142
void auth2_record_key(Authctxt *, int, const struct sshkey *);
usr.bin/ssh/auth.h
177
int auth_key_is_revoked(struct sshkey *);
usr.bin/ssh/auth.h
182
check_key_in_hostfiles(struct passwd *, struct sshkey *, const char *,
usr.bin/ssh/auth.h
186
struct sshkey *get_hostkey_by_index(int);
usr.bin/ssh/auth.h
187
struct sshkey *get_hostkey_public_by_index(int, struct ssh *);
usr.bin/ssh/auth.h
188
struct sshkey *get_hostkey_public_by_type(int, int, struct ssh *);
usr.bin/ssh/auth.h
189
struct sshkey *get_hostkey_private_by_type(int, int, struct ssh *);
usr.bin/ssh/auth.h
190
int get_hostkey_index(struct sshkey *, int, struct ssh *);
usr.bin/ssh/auth.h
191
int sshd_hostkey_sign(struct ssh *, struct sshkey *, struct sshkey *,
usr.bin/ssh/auth.h
214
int auth_check_authkey_line(struct passwd *, struct sshkey *,
usr.bin/ssh/auth.h
217
struct sshkey *, const char *, const char *, struct sshauthopt **);
usr.bin/ssh/auth.h
42
struct sshkey;
usr.bin/ssh/auth.h
80
struct sshkey **prev_keys;
usr.bin/ssh/auth.h
84
struct sshkey *auth_method_key;
usr.bin/ssh/auth2-hostbased.c
171
const char *cuser, char *chost, struct sshkey *key)
usr.bin/ssh/auth2-hostbased.c
63
struct sshkey *key = NULL;
usr.bin/ssh/auth2-pubkey.c
374
match_principals_command(struct passwd *user_pw, const struct sshkey *key,
usr.bin/ssh/auth2-pubkey.c
511
user_cert_trusted_ca(struct passwd *pw, struct sshkey *key,
usr.bin/ssh/auth2-pubkey.c
624
user_key_allowed2(struct passwd *pw, struct sshkey *key,
usr.bin/ssh/auth2-pubkey.c
653
user_key_command_allowed2(struct passwd *user_pw, struct sshkey *key,
usr.bin/ssh/auth2-pubkey.c
76
format_key(const struct sshkey *key)
usr.bin/ssh/auth2-pubkey.c
789
user_key_allowed(struct ssh *ssh, struct passwd *pw, struct sshkey *key,
usr.bin/ssh/auth2-pubkey.c
92
struct sshkey *key = NULL, *hostkey = NULL;
usr.bin/ssh/auth2-pubkeyfile.c
267
auth_check_authkey_line(struct passwd *pw, struct sshkey *key,
usr.bin/ssh/auth2-pubkeyfile.c
272
struct sshkey *found = NULL;
usr.bin/ssh/auth2-pubkeyfile.c
419
struct sshkey *key, const char *remote_ip,
usr.bin/ssh/auth2.c
672
const struct sshkey *key)
usr.bin/ssh/auth2.c
674
struct sshkey **tmp, *dup;
usr.bin/ssh/auth2.c
700
auth2_key_already_used(Authctxt *authctxt, const struct sshkey *key)
usr.bin/ssh/authfd.c
234
deserialise_identity2(struct sshbuf *ids, struct sshkey **keyp, char **commentp)
usr.bin/ssh/authfd.c
356
ssh_agent_has_key(int sock, const struct sshkey *key)
usr.bin/ssh/authfd.c
387
agent_encode_alg(const struct sshkey *key, const char *alg)
usr.bin/ssh/authfd.c
402
ssh_agent_sign(int sock, const struct sshkey *key,
usr.bin/ssh/authfd.c
515
int cert_only, struct sshkey **certs, size_t ncerts)
usr.bin/ssh/authfd.c
587
ssh_add_identity_constrained(int sock, struct sshkey *key,
usr.bin/ssh/authfd.c
642
ssh_remove_identity(int sock, const struct sshkey *key)
usr.bin/ssh/authfd.c
682
int cert_only, struct sshkey **certs, size_t ncerts)
usr.bin/ssh/authfd.c
747
ssh_agent_bind_hostkey(int sock, const struct sshkey *key,
usr.bin/ssh/authfd.h
20
struct sshkey;
usr.bin/ssh/authfd.h
25
struct sshkey **keys;
usr.bin/ssh/authfd.h
35
struct sshkey **keys;
usr.bin/ssh/authfd.h
50
int ssh_add_identity_constrained(int sock, struct sshkey *key,
usr.bin/ssh/authfd.h
53
int ssh_agent_has_key(int sock, const struct sshkey *key);
usr.bin/ssh/authfd.h
54
int ssh_remove_identity(int sock, const struct sshkey *key);
usr.bin/ssh/authfd.h
59
int cert_only, struct sshkey **certs, size_t ncerts);
usr.bin/ssh/authfd.h
62
int ssh_agent_sign(int sock, const struct sshkey *key,
usr.bin/ssh/authfd.h
66
int ssh_agent_bind_hostkey(int sock, const struct sshkey *key,
usr.bin/ssh/authfile.c
107
struct sshkey **keyp, char **commentp)
usr.bin/ssh/authfile.c
131
struct sshkey **keyp, char **commentp)
usr.bin/ssh/authfile.c
139
struct sshkey **keyp, char **commentp)
usr.bin/ssh/authfile.c
160
sshkey_load_pubkey_from_private(const char *filename, struct sshkey **pubkeyp)
usr.bin/ssh/authfile.c
163
struct sshkey *pubkey = NULL;
usr.bin/ssh/authfile.c
189
sshkey_try_load_public(struct sshkey **kp, const char *filename,
usr.bin/ssh/authfile.c
196
struct sshkey *k = NULL;
usr.bin/ssh/authfile.c
249
sshkey_load_public(const char *filename, struct sshkey **keyp, char **commentp)
usr.bin/ssh/authfile.c
285
sshkey_load_cert(const char *filename, struct sshkey **keyp)
usr.bin/ssh/authfile.c
287
struct sshkey *pub = NULL;
usr.bin/ssh/authfile.c
306
struct sshkey **keyp)
usr.bin/ssh/authfile.c
308
struct sshkey *key = NULL, *cert = NULL;
usr.bin/ssh/authfile.c
360
sshkey_in_file(struct sshkey *key, const char *filename, int strict_type,
usr.bin/ssh/authfile.c
367
struct sshkey *pub = NULL;
usr.bin/ssh/authfile.c
369
int (*sshkey_compare)(const struct sshkey *, const struct sshkey *) =
usr.bin/ssh/authfile.c
427
sshkey_check_revoked(struct sshkey *key, const char *revoked_keys_file)
usr.bin/ssh/authfile.c
477
sshkey_save_public(const struct sshkey *key, const char *path,
usr.bin/ssh/authfile.c
59
sshkey_save_private(struct sshkey *key, const char *filename,
usr.bin/ssh/authfile.h
31
struct sshkey;
usr.bin/ssh/authfile.h
36
int sshkey_save_private(struct sshkey *, const char *,
usr.bin/ssh/authfile.h
38
int sshkey_load_cert(const char *, struct sshkey **);
usr.bin/ssh/authfile.h
39
int sshkey_load_public(const char *, struct sshkey **, char **);
usr.bin/ssh/authfile.h
40
int sshkey_load_private(const char *, const char *, struct sshkey **, char **);
usr.bin/ssh/authfile.h
42
struct sshkey **);
usr.bin/ssh/authfile.h
44
struct sshkey **, char **);
usr.bin/ssh/authfile.h
46
struct sshkey **keyp, char **commentp);
usr.bin/ssh/authfile.h
48
int sshkey_in_file(struct sshkey *, const char *, int, int);
usr.bin/ssh/authfile.h
49
int sshkey_check_revoked(struct sshkey *key, const char *revoked_keys_file);
usr.bin/ssh/authfile.h
51
int sshkey_save_public(const struct sshkey *key, const char *path,
usr.bin/ssh/clientloop.c
2037
struct sshkey **keys;
usr.bin/ssh/clientloop.c
2047
struct sshkey **old_keys;
usr.bin/ssh/clientloop.c
2106
struct sshkey **tmp;
usr.bin/ssh/clientloop.c
2453
struct sshkey *key = NULL, **tmp;
usr.bin/ssh/dns.c
188
struct sshkey *hostkey, int *flags)
usr.bin/ssh/dns.c
296
export_dns_rr(const char *hostname, struct sshkey *key, FILE *f, int generic,
usr.bin/ssh/dns.c
79
u_char **digest, size_t *digest_len, struct sshkey *key)
usr.bin/ssh/dns.h
55
struct sshkey *, int *);
usr.bin/ssh/dns.h
56
int export_dns_rr(const char *, struct sshkey *, FILE *, int, int);
usr.bin/ssh/hostfile.c
156
hostfile_read_key(char **cpp, u_int *bitsp, struct sshkey *ret)
usr.bin/ssh/hostfile.c
314
check_key_not_revoked(struct hostkeys *hostkeys, struct sshkey *k)
usr.bin/ssh/hostfile.c
349
struct sshkey *k, int keytype, int nid, const struct hostkey_entry **found)
usr.bin/ssh/hostfile.c
406
check_key_in_hostkeys(struct hostkeys *hostkeys, struct sshkey *key,
usr.bin/ssh/hostfile.c
436
const struct sshkey *key, int store_hash)
usr.bin/ssh/hostfile.c
476
const struct sshkey *key, int store_hash)
usr.bin/ssh/hostfile.c
536
const struct sshkey *key, int store_hash)
usr.bin/ssh/hostfile.c
566
struct sshkey * const *keys;
usr.bin/ssh/hostfile.c
617
struct sshkey **keys, size_t nkeys, int store_hash, int quiet, int hash_alg)
usr.bin/ssh/hostfile.h
101
struct sshkey *key; /* Key, if parsed ok and HKF_WANT_MATCH_HOST set */
usr.bin/ssh/hostfile.h
29
struct sshkey *key;
usr.bin/ssh/hostfile.h
45
HostStatus check_key_in_hostkeys(struct hostkeys *, struct sshkey *,
usr.bin/ssh/hostfile.h
51
int hostfile_read_key(char **, u_int *, struct sshkey *);
usr.bin/ssh/hostfile.h
53
const struct sshkey *, int);
usr.bin/ssh/hostfile.h
56
const char *host, const char *ip, struct sshkey **keys, size_t nkeys,
usr.bin/ssh/kex.c
1165
kex_load_hostkey(struct ssh *ssh, struct sshkey **prvp, struct sshkey **pubp)
usr.bin/ssh/kex.c
1186
kex_verify_host_key(struct ssh *ssh, struct sshkey *server_host_key)
usr.bin/ssh/kex.h
161
struct sshkey *initial_hostkey;
usr.bin/ssh/kex.h
167
int (*verify_host_key)(struct sshkey *, struct ssh *);
usr.bin/ssh/kex.h
168
struct sshkey *(*load_host_public_key)(int, int, struct ssh *);
usr.bin/ssh/kex.h
169
struct sshkey *(*load_host_private_key)(int, int, struct ssh *);
usr.bin/ssh/kex.h
170
int (*host_key_index)(struct sshkey *, int, struct ssh *);
usr.bin/ssh/kex.h
171
int (*sign)(struct ssh *, struct sshkey *, struct sshkey *,
usr.bin/ssh/kex.h
211
int kex_load_hostkey(struct ssh *, struct sshkey **, struct sshkey **);
usr.bin/ssh/kex.h
212
int kex_verify_host_key(struct ssh *, struct sshkey *);
usr.bin/ssh/kexgen.c
143
struct sshkey *server_host_key = NULL;
usr.bin/ssh/kexgen.c
276
struct sshkey *server_host_private, *server_host_public;
usr.bin/ssh/kexgexc.c
146
struct sshkey *server_host_key = NULL;
usr.bin/ssh/kexgexs.c
128
struct sshkey *server_host_public, *server_host_private;
usr.bin/ssh/krl.c
1156
is_cert_revoked(const struct sshkey *key, struct revoked_certs *rc)
usr.bin/ssh/krl.c
1190
is_key_revoked(struct ssh_krl *krl, const struct sshkey *key)
usr.bin/ssh/krl.c
1253
ssh_krl_check_key(struct ssh_krl *krl, const struct sshkey *key)
usr.bin/ssh/krl.c
1270
ssh_krl_file_contains_key(const char *path, const struct sshkey *key)
usr.bin/ssh/krl.c
1297
struct sshkey *key = NULL;
usr.bin/ssh/krl.c
214
revoked_certs_for_ca_key(struct ssh_krl *krl, const struct sshkey *ca_key,
usr.bin/ssh/krl.c
318
ssh_krl_revoke_cert_by_serial(struct ssh_krl *krl, const struct sshkey *ca_key,
usr.bin/ssh/krl.c
326
const struct sshkey *ca_key, uint64_t lo, uint64_t hi)
usr.bin/ssh/krl.c
339
ssh_krl_revoke_cert_by_key_id(struct ssh_krl *krl, const struct sshkey *ca_key,
usr.bin/ssh/krl.c
365
plain_key_blob(const struct sshkey *key, u_char **blob, size_t *blen)
usr.bin/ssh/krl.c
367
struct sshkey *kcopy;
usr.bin/ssh/krl.c
402
ssh_krl_revoke_key_explicit(struct ssh_krl *krl, const struct sshkey *key)
usr.bin/ssh/krl.c
450
ssh_krl_revoke_key(struct ssh_krl *krl, const struct sshkey *key)
usr.bin/ssh/krl.c
81
struct sshkey *ca_key;
usr.bin/ssh/krl.c
874
struct sshkey *ca_key = NULL;
usr.bin/ssh/krl.h
42
struct sshkey;
usr.bin/ssh/krl.h
51
const struct sshkey *ca_key, uint64_t serial);
usr.bin/ssh/krl.h
53
const struct sshkey *ca_key, uint64_t lo, uint64_t hi);
usr.bin/ssh/krl.h
55
const struct sshkey *ca_key, const char *key_id);
usr.bin/ssh/krl.h
56
int ssh_krl_revoke_key_explicit(struct ssh_krl *krl, const struct sshkey *key);
usr.bin/ssh/krl.h
59
int ssh_krl_revoke_key(struct ssh_krl *krl, const struct sshkey *key);
usr.bin/ssh/krl.h
62
int ssh_krl_check_key(struct ssh_krl *krl, const struct sshkey *key);
usr.bin/ssh/krl.h
63
int ssh_krl_file_contains_key(const char *path, const struct sshkey *key);
usr.bin/ssh/monitor.c
1033
key_base_type_match(const char *method, const struct sshkey *key,
usr.bin/ssh/monitor.c
1058
struct sshkey *key = NULL;
usr.bin/ssh/monitor.c
1151
struct sshkey *hostkey = NULL;
usr.bin/ssh/monitor.c
1300
struct sshkey *key;
usr.bin/ssh/monitor.c
670
struct sshkey *pubkey, *key;
usr.bin/ssh/monitor_wrap.c
270
mm_sshkey_sign(struct ssh *ssh, struct sshkey *key, u_char **sigp, size_t *lenp,
usr.bin/ssh/monitor_wrap.c
493
mm_user_key_allowed(struct ssh *ssh, struct passwd *pw, struct sshkey *key,
usr.bin/ssh/monitor_wrap.c
502
const char *user, const char *host, struct sshkey *key)
usr.bin/ssh/monitor_wrap.c
509
struct sshkey *key, int pubkey_auth_attempt, struct sshauthopt **authoptp)
usr.bin/ssh/monitor_wrap.c
558
mm_sshkey_verify(const struct sshkey *key, const u_char *sig, size_t siglen,
usr.bin/ssh/monitor_wrap.h
40
struct sshkey;
usr.bin/ssh/monitor_wrap.h
50
int mm_sshkey_sign(struct ssh *, struct sshkey *, u_char **, size_t *,
usr.bin/ssh/monitor_wrap.h
57
int mm_key_allowed(enum mm_keytype, const char *, const char *, struct sshkey *,
usr.bin/ssh/monitor_wrap.h
59
int mm_user_key_allowed(struct ssh *ssh, struct passwd *, struct sshkey *, int,
usr.bin/ssh/monitor_wrap.h
62
const char *, struct sshkey *);
usr.bin/ssh/monitor_wrap.h
63
int mm_sshkey_verify(const struct sshkey *, const u_char *, size_t,
usr.bin/ssh/packet.h
38
struct sshkey;
usr.bin/ssh/packet.h
46
struct sshkey *key;
usr.bin/ssh/readconf.h
93
struct sshkey *identity_keys[SSH_MAX_IDENTITY_FILES];
usr.bin/ssh/readconf.h
98
struct sshkey *certificates[SSH_MAX_CERTIFICATE_FILES];
usr.bin/ssh/serverloop.c
662
struct sshkey *key = NULL, *key_pub = NULL, *key_prv = NULL;
usr.bin/ssh/ssh-add.c
106
delete_one(int agent_fd, const struct sshkey *key, const char *comment,
usr.bin/ssh/ssh-add.c
128
struct sshkey *key = NULL;
usr.bin/ssh/ssh-add.c
162
struct sshkey *public, *cert = NULL;
usr.bin/ssh/ssh-add.c
249
check_cert_lifetime(const struct sshkey *cert, int cert_lifetime)
usr.bin/ssh/ssh-add.c
274
struct sshkey *private = NULL, *cert = NULL;
usr.bin/ssh/ssh-add.c
458
struct sshkey **certs, size_t ncerts)
usr.bin/ssh/ssh-add.c
492
struct sshkey *key = NULL;
usr.bin/ssh/ssh-add.c
597
struct sshkey *key;
usr.bin/ssh/ssh-add.c
817
struct sshkey *k, **certs = NULL;
usr.bin/ssh/ssh-agent.c
1079
struct sshkey *k = NULL;
usr.bin/ssh/ssh-agent.c
110
struct sshkey *key;
usr.bin/ssh/ssh-agent.c
1183
struct sshkey ***certs, size_t *ncerts)
usr.bin/ssh/ssh-agent.c
1189
struct sshkey *k;
usr.bin/ssh/ssh-agent.c
1280
parse_key_constraints(struct sshbuf *m, struct sshkey *k, time_t *deathp,
usr.bin/ssh/ssh-agent.c
1283
int *cert_onlyp, size_t *ncerts, struct sshkey ***certs)
usr.bin/ssh/ssh-agent.c
131
struct sshkey *key;
usr.bin/ssh/ssh-agent.c
1345
struct sshkey *k = NULL;
usr.bin/ssh/ssh-agent.c
1520
add_p11_identity(struct sshkey *key, char *comment, const char *provider,
usr.bin/ssh/ssh-agent.c
1552
struct sshkey **keys = NULL, *k;
usr.bin/ssh/ssh-agent.c
1555
struct sshkey **certs = NULL;
usr.bin/ssh/ssh-agent.c
1679
struct sshkey *key = NULL;
usr.bin/ssh/ssh-agent.c
350
match_key_hop(const char *tag, const struct sshkey *key,
usr.bin/ssh/ssh-agent.c
405
permitted_by_dest_constraints(const struct sshkey *fromkey,
usr.bin/ssh/ssh-agent.c
406
const struct sshkey *tokey, Identity *id, const char *user,
usr.bin/ssh/ssh-agent.c
467
const struct sshkey *fromkey = NULL;
usr.bin/ssh/ssh-agent.c
568
lookup_identity(struct sshkey *key)
usr.bin/ssh/ssh-agent.c
661
agent_decode_alg(struct sshkey *key, u_int flags)
usr.bin/ssh/ssh-agent.c
685
parse_userauth_request(struct sshbuf *msg, const struct sshkey *expected_key,
usr.bin/ssh/ssh-agent.c
686
char **userp, struct sshbuf **sess_idp, struct sshkey **hostkeyp)
usr.bin/ssh/ssh-agent.c
692
struct sshkey *mkey = NULL, *hostkey = NULL;
usr.bin/ssh/ssh-agent.c
803
check_websafe_message_contents(struct sshkey *key, struct sshbuf *data)
usr.bin/ssh/ssh-agent.c
844
struct sshkey *key = NULL, *hostkey = NULL;
usr.bin/ssh/ssh-agent.c
994
struct sshkey *key = NULL;
usr.bin/ssh/ssh-ecdsa-sk.c
111
struct sshkey *key)
usr.bin/ssh/ssh-ecdsa-sk.c
124
struct sshkey *key)
usr.bin/ssh/ssh-ecdsa-sk.c
216
ssh_ecdsa_sk_verify(const struct sshkey *key,
usr.bin/ssh/ssh-ecdsa-sk.c
50
ssh_ecdsa_sk_cleanup(struct sshkey *k)
usr.bin/ssh/ssh-ecdsa-sk.c
57
ssh_ecdsa_sk_equal(const struct sshkey *a, const struct sshkey *b)
usr.bin/ssh/ssh-ecdsa-sk.c
67
ssh_ecdsa_sk_serialize_public(const struct sshkey *key, struct sshbuf *b,
usr.bin/ssh/ssh-ecdsa-sk.c
81
ssh_ecdsa_sk_serialize_private(const struct sshkey *key, struct sshbuf *b,
usr.bin/ssh/ssh-ecdsa-sk.c
98
ssh_ecdsa_sk_copy_public(const struct sshkey *from, struct sshkey *to)
usr.bin/ssh/ssh-ecdsa.c
110
ssh_ecdsa_cleanup(struct sshkey *k)
usr.bin/ssh/ssh-ecdsa.c
117
ssh_ecdsa_equal(const struct sshkey *a, const struct sshkey *b)
usr.bin/ssh/ssh-ecdsa.c
125
ssh_ecdsa_serialize_public(const struct sshkey *key, struct sshbuf *b,
usr.bin/ssh/ssh-ecdsa.c
141
ssh_ecdsa_serialize_private(const struct sshkey *key, struct sshbuf *b,
usr.bin/ssh/ssh-ecdsa.c
157
ssh_ecdsa_generate(struct sshkey *k, int bits)
usr.bin/ssh/ssh-ecdsa.c
186
ssh_ecdsa_copy_public(const struct sshkey *from, struct sshkey *to)
usr.bin/ssh/ssh-ecdsa.c
221
struct sshkey *key)
usr.bin/ssh/ssh-ecdsa.c
274
struct sshkey *key)
usr.bin/ssh/ssh-ecdsa.c
309
ssh_ecdsa_sign(struct sshkey *key,
usr.bin/ssh/ssh-ecdsa.c
357
ssh_ecdsa_encode_store_sig(const struct sshkey *key,
usr.bin/ssh/ssh-ecdsa.c
398
ssh_ecdsa_verify(const struct sshkey *key,
usr.bin/ssh/ssh-ecdsa.c
95
ssh_ecdsa_size(const struct sshkey *key)
usr.bin/ssh/ssh-ed25519-sk.c
109
struct sshkey *key)
usr.bin/ssh/ssh-ed25519-sk.c
121
ssh_ed25519_sk_verify(const struct sshkey *key,
usr.bin/ssh/ssh-ed25519-sk.c
38
ssh_ed25519_sk_cleanup(struct sshkey *k)
usr.bin/ssh/ssh-ed25519-sk.c
45
ssh_ed25519_sk_equal(const struct sshkey *a, const struct sshkey *b)
usr.bin/ssh/ssh-ed25519-sk.c
55
ssh_ed25519_sk_serialize_public(const struct sshkey *key, struct sshbuf *b,
usr.bin/ssh/ssh-ed25519-sk.c
69
ssh_ed25519_sk_serialize_private(const struct sshkey *key, struct sshbuf *b,
usr.bin/ssh/ssh-ed25519-sk.c
83
ssh_ed25519_sk_copy_public(const struct sshkey *from, struct sshkey *to)
usr.bin/ssh/ssh-ed25519-sk.c
96
struct sshkey *key)
usr.bin/ssh/ssh-ed25519.c
101
struct sshkey *key)
usr.bin/ssh/ssh-ed25519.c
119
struct sshkey *key)
usr.bin/ssh/ssh-ed25519.c
143
ssh_ed25519_sign(struct sshkey *key,
usr.bin/ssh/ssh-ed25519.c
225
ssh_ed25519_verify(const struct sshkey *key,
usr.bin/ssh/ssh-ed25519.c
33
ssh_ed25519_cleanup(struct sshkey *k)
usr.bin/ssh/ssh-ed25519.c
42
ssh_ed25519_equal(const struct sshkey *a, const struct sshkey *b)
usr.bin/ssh/ssh-ed25519.c
52
ssh_ed25519_serialize_public(const struct sshkey *key, struct sshbuf *b,
usr.bin/ssh/ssh-ed25519.c
66
ssh_ed25519_serialize_private(const struct sshkey *key, struct sshbuf *b,
usr.bin/ssh/ssh-ed25519.c
79
ssh_ed25519_generate(struct sshkey *k, int bits)
usr.bin/ssh/ssh-ed25519.c
89
ssh_ed25519_copy_public(const struct sshkey *from, struct sshkey *to)
usr.bin/ssh/ssh-keygen.c
1004
struct sshkey *private, *public;
usr.bin/ssh/ssh-keygen.c
1346
struct sshkey *private;
usr.bin/ssh/ssh-keygen.c
1423
struct sshkey *public;
usr.bin/ssh/ssh-keygen.c
1461
struct sshkey *private;
usr.bin/ssh/ssh-keygen.c
1462
struct sshkey *public;
usr.bin/ssh/ssh-keygen.c
1648
static struct sshkey *
usr.bin/ssh/ssh-keygen.c
1652
struct sshkey **keys = NULL, *public, *private = NULL;
usr.bin/ssh/ssh-keygen.c
1680
agent_signer(struct sshkey *key, u_char **sigp, size_t *lenp,
usr.bin/ssh/ssh-keygen.c
1698
struct sshkey *ca, *public;
usr.bin/ssh/ssh-keygen.c
2054
print_cert(struct sshkey *key)
usr.bin/ssh/ssh-keygen.c
2103
struct sshkey *key = NULL;
usr.bin/ssh/ssh-keygen.c
2208
const struct sshkey *ca, struct ssh_krl *krl)
usr.bin/ssh/ssh-keygen.c
2210
struct sshkey *key = NULL;
usr.bin/ssh/ssh-keygen.c
2370
struct sshkey *ca = NULL;
usr.bin/ssh/ssh-keygen.c
2425
struct sshkey *k;
usr.bin/ssh/ssh-keygen.c
2448
static struct sshkey *
usr.bin/ssh/ssh-keygen.c
2449
load_sign_key(const char *keypath, const struct sshkey *pubkey)
usr.bin/ssh/ssh-keygen.c
2454
struct sshkey *ret = NULL, *privkey = NULL;
usr.bin/ssh/ssh-keygen.c
2511
sign_one(struct sshkey *signkey, const char *filename, int fd,
usr.bin/ssh/ssh-keygen.c
2653
struct sshkey *pubkey = NULL, *privkey = NULL, *signkey = NULL;
usr.bin/ssh/ssh-keygen.c
2737
struct sshkey *sign_key = NULL;
usr.bin/ssh/ssh-keygen.c
282
static struct sshkey *
usr.bin/ssh/ssh-keygen.c
2827
struct sshkey *sign_key = NULL;
usr.bin/ssh/ssh-keygen.c
286
struct sshkey *prv;
usr.bin/ssh/ssh-keygen.c
3096
struct sshkey *key;
usr.bin/ssh/ssh-keygen.c
316
do_convert_to_ssh2(struct passwd *pw, struct sshkey *k)
usr.bin/ssh/ssh-keygen.c
3273
struct sshkey *private = NULL, *public = NULL;
usr.bin/ssh/ssh-keygen.c
345
do_convert_to_pkcs8(struct sshkey *k)
usr.bin/ssh/ssh-keygen.c
364
do_convert_to_pem(struct sshkey *k)
usr.bin/ssh/ssh-keygen.c
385
struct sshkey *k;
usr.bin/ssh/ssh-keygen.c
432
static struct sshkey *
usr.bin/ssh/ssh-keygen.c
435
struct sshkey *key = NULL;
usr.bin/ssh/ssh-keygen.c
586
do_convert_from_ssh2(struct passwd *pw, struct sshkey **k, int *private)
usr.bin/ssh/ssh-keygen.c
638
do_convert_from_pkcs8(struct sshkey **k, int *private)
usr.bin/ssh/ssh-keygen.c
675
do_convert_from_pem(struct sshkey **k, int *private)
usr.bin/ssh/ssh-keygen.c
700
struct sshkey *k = NULL;
usr.bin/ssh/ssh-keygen.c
754
struct sshkey *prv;
usr.bin/ssh/ssh-keygen.c
782
struct sshkey **keys = NULL;
usr.bin/ssh/ssh-keygen.c
825
static struct sshkey *
usr.bin/ssh/ssh-keygen.c
828
struct sshkey *ret;
usr.bin/ssh/ssh-keygen.c
841
fingerprint_one_key(const struct sshkey *public, const char *comment)
usr.bin/ssh/ssh-keygen.c
866
struct sshkey *privkey = NULL, *pubkey = NULL;
usr.bin/ssh/ssh-keygen.c
892
struct sshkey *public = NULL;
usr.bin/ssh/ssh-keyscan.c
114
static void keyprint(con *c, struct sshkey *key);
usr.bin/ssh/ssh-keyscan.c
184
key_print_wrapper(struct sshkey *hostkey, struct ssh *ssh)
usr.bin/ssh/ssh-keyscan.c
280
keyprint_one(const char *host, struct sshkey *key)
usr.bin/ssh/ssh-keyscan.c
307
keyprint(con *c, struct sshkey *key)
usr.bin/ssh/ssh-keysign.c
178
struct sshkey *keys[NUM_KEYTYPES], *key = NULL;
usr.bin/ssh/ssh-keysign.c
60
valid_request(struct passwd *pw, char *host, struct sshkey **ret, char **pkalgp,
usr.bin/ssh/ssh-keysign.c
64
struct sshkey *key = NULL;
usr.bin/ssh/ssh-pkcs11-client.c
101
helper_add_key(struct helper *helper, struct sshkey *key)
usr.bin/ssh/ssh-pkcs11-client.c
225
pkcs11_sign(struct sshkey *key,
usr.bin/ssh/ssh-pkcs11-client.c
287
pkcs11_make_cert(const struct sshkey *priv,
usr.bin/ssh/ssh-pkcs11-client.c
288
const struct sshkey *certpub, struct sshkey **certprivp)
usr.bin/ssh/ssh-pkcs11-client.c
291
struct sshkey *ret;
usr.bin/ssh/ssh-pkcs11-client.c
381
pkcs11_add_provider(char *name, char *pin, struct sshkey ***keysp,
usr.bin/ssh/ssh-pkcs11-client.c
384
struct sshkey *k;
usr.bin/ssh/ssh-pkcs11-client.c
412
*keysp = xcalloc(nkeys, sizeof(struct sshkey *));
usr.bin/ssh/ssh-pkcs11-client.c
458
pkcs11_key_free(struct sshkey *key)
usr.bin/ssh/ssh-pkcs11-client.c
73
helper_by_key(const struct sshkey *key)
usr.bin/ssh/ssh-pkcs11-helper.c
105
struct sshkey *key = NULL;
usr.bin/ssh/ssh-pkcs11-helper.c
60
struct sshkey **keys = NULL;
usr.bin/ssh/ssh-pkcs11.c
1082
static struct sshkey *
usr.bin/ssh/ssh-pkcs11.c
1090
struct sshkey *key = NULL;
usr.bin/ssh/ssh-pkcs11.c
1194
CK_OBJECT_HANDLE *obj, struct sshkey **keyp, char **labelp)
usr.bin/ssh/ssh-pkcs11.c
1205
struct sshkey *key = NULL;
usr.bin/ssh/ssh-pkcs11.c
1386
struct sshkey *key)
usr.bin/ssh/ssh-pkcs11.c
1408
struct sshkey ***keysp, char ***labelsp, int *nkeys)
usr.bin/ssh/ssh-pkcs11.c
1410
struct sshkey *key = NULL;
usr.bin/ssh/ssh-pkcs11.c
1483
*nkeys + 1, sizeof(struct sshkey *));
usr.bin/ssh/ssh-pkcs11.c
1514
struct sshkey ***keysp, char ***labelsp, int *nkeys)
usr.bin/ssh/ssh-pkcs11.c
1516
struct sshkey *key = NULL;
usr.bin/ssh/ssh-pkcs11.c
1602
*nkeys + 1, sizeof(struct sshkey *));
usr.bin/ssh/ssh-pkcs11.c
1629
static struct sshkey *
usr.bin/ssh/ssh-pkcs11.c
1747
static struct sshkey *
usr.bin/ssh/ssh-pkcs11.c
1827
struct sshkey ***keyp, char ***labelsp,
usr.bin/ssh/ssh-pkcs11.c
2022
pkcs11_add_provider(char *provider_id, char *pin, struct sshkey ***keyp,
usr.bin/ssh/ssh-pkcs11.c
2044
pkcs11_sign(struct sshkey *key,
usr.bin/ssh/ssh-pkcs11.c
2071
pkcs11_key_free(struct sshkey *key)
usr.bin/ssh/ssh-pkcs11.c
2077
struct sshkey *
usr.bin/ssh/ssh-pkcs11.c
2085
struct sshkey *k = NULL;
usr.bin/ssh/ssh-pkcs11.c
2143
struct sshkey *
usr.bin/ssh/ssh-pkcs11.c
2149
struct sshkey *k = NULL;
usr.bin/ssh/ssh-pkcs11.c
2254
pkcs11_add_provider(char *provider_id, char *pin, struct sshkey ***keyp,
usr.bin/ssh/ssh-pkcs11.c
396
CK_ATTRIBUTE *keyid_attrib, struct sshkey *key)
usr.bin/ssh/ssh-pkcs11.c
444
pkcs11_lookup_key(struct sshkey *key)
usr.bin/ssh/ssh-pkcs11.c
534
pkcs11_sign_rsa(struct sshkey *key,
usr.bin/ssh/ssh-pkcs11.c
623
pkcs11_sign_ecdsa(struct sshkey *key,
usr.bin/ssh/ssh-pkcs11.c
708
pkcs11_sign_ed25519(struct sshkey *key,
usr.bin/ssh/ssh-pkcs11.c
836
pkcs11_key_included(struct sshkey ***keysp, int *nkeys, struct sshkey *key)
usr.bin/ssh/ssh-pkcs11.c
847
static struct sshkey *
usr.bin/ssh/ssh-pkcs11.c
858
struct sshkey *key = NULL;
usr.bin/ssh/ssh-pkcs11.c
981
static struct sshkey *
usr.bin/ssh/ssh-pkcs11.c
991
struct sshkey *key = NULL;
usr.bin/ssh/ssh-pkcs11.h
27
struct sshkey;
usr.bin/ssh/ssh-pkcs11.h
31
int pkcs11_add_provider(char *, char *, struct sshkey ***, char ***);
usr.bin/ssh/ssh-pkcs11.h
33
int pkcs11_sign(struct sshkey *, u_char **, size_t *,
usr.bin/ssh/ssh-pkcs11.h
36
void pkcs11_key_free(struct sshkey *);
usr.bin/ssh/ssh-pkcs11.h
39
struct sshkey *
usr.bin/ssh/ssh-pkcs11.h
42
struct sshkey *
usr.bin/ssh/ssh-pkcs11.h
48
int pkcs11_make_cert(const struct sshkey *,
usr.bin/ssh/ssh-pkcs11.h
49
const struct sshkey *, struct sshkey **);
usr.bin/ssh/ssh-rsa.c
114
ssh_rsa_generate(struct sshkey *k, int bits)
usr.bin/ssh/ssh-rsa.c
150
ssh_rsa_copy_public(const struct sshkey *from, struct sshkey *to)
usr.bin/ssh/ssh-rsa.c
189
struct sshkey *key)
usr.bin/ssh/ssh-rsa.c
228
struct sshkey *key)
usr.bin/ssh/ssh-rsa.c
33
ssh_rsa_size(const struct sshkey *k)
usr.bin/ssh/ssh-rsa.c
397
ssh_rsa_sign(struct sshkey *key,
usr.bin/ssh/ssh-rsa.c
41
ssh_rsa_alloc(struct sshkey *k)
usr.bin/ssh/ssh-rsa.c
489
ssh_rsa_verify(const struct sshkey *key,
usr.bin/ssh/ssh-rsa.c
49
ssh_rsa_cleanup(struct sshkey *k)
usr.bin/ssh/ssh-rsa.c
56
ssh_rsa_equal(const struct sshkey *a, const struct sshkey *b)
usr.bin/ssh/ssh-rsa.c
64
ssh_rsa_serialize_public(const struct sshkey *key, struct sshbuf *b,
usr.bin/ssh/ssh-rsa.c
85
ssh_rsa_serialize_private(const struct sshkey *key, struct sshbuf *b,
usr.bin/ssh/ssh-sk-client.c
246
sshsk_sign(const char *provider, struct sshkey *key,
usr.bin/ssh/ssh-sk-client.c
309
struct sshkey **keyp, struct sshbuf *attest)
usr.bin/ssh/ssh-sk-client.c
313
struct sshkey *key = NULL;
usr.bin/ssh/ssh-sk-client.c
410
struct sshkey *key = NULL;
usr.bin/ssh/ssh-sk-helper.c
100
pkcs11_key_free(struct sshkey *key)
usr.bin/ssh/ssh-sk-helper.c
109
struct sshkey *key = NULL;
usr.bin/ssh/ssh-sk-helper.c
170
struct sshkey *key;
usr.bin/ssh/ssh-sk-helper.c
90
pkcs11_sign(struct sshkey *key,
usr.bin/ssh/ssh-sk.c
188
sshsk_ecdsa_assemble(struct sk_enroll_response *resp, struct sshkey **keyp)
usr.bin/ssh/ssh-sk.c
190
struct sshkey *key = NULL;
usr.bin/ssh/ssh-sk.c
257
sshsk_ed25519_assemble(struct sk_enroll_response *resp, struct sshkey **keyp)
usr.bin/ssh/ssh-sk.c
259
struct sshkey *key = NULL;
usr.bin/ssh/ssh-sk.c
290
struct sk_enroll_response *resp, struct sshkey **keyp)
usr.bin/ssh/ssh-sk.c
292
struct sshkey *key = NULL;
usr.bin/ssh/ssh-sk.c
462
struct sshkey **keyp, struct sshbuf *attest)
usr.bin/ssh/ssh-sk.c
465
struct sshkey *key = NULL;
usr.bin/ssh/ssh-sk.c
633
sshsk_sign(const char *provider_path, struct sshkey *key,
usr.bin/ssh/ssh-sk.c
790
struct sshkey *key = NULL;
usr.bin/ssh/ssh-sk.h
22
struct sshkey;
usr.bin/ssh/ssh-sk.h
35
struct sshkey *key;
usr.bin/ssh/ssh-sk.h
53
struct sshkey **keyp, struct sshbuf *attest);
usr.bin/ssh/ssh-sk.h
61
int sshsk_sign(const char *provider_path, struct sshkey *key,
usr.bin/ssh/ssh.c
2326
struct sshkey *public;
usr.bin/ssh/ssh.c
2330
struct sshkey *identity_keys[SSH_MAX_IDENTITY_FILES];
usr.bin/ssh/ssh.c
2333
struct sshkey *certificates[SSH_MAX_CERTIFICATE_FILES];
usr.bin/ssh/ssh.c
2336
struct sshkey **keys = NULL;
usr.bin/ssh/ssh.c
505
check_load(int r, struct sshkey **k, const char *path, const char *message)
usr.bin/ssh/ssh_api.c
194
ssh_add_hostkey(struct ssh *ssh, struct sshkey *key)
usr.bin/ssh/ssh_api.c
196
struct sshkey *pubkey = NULL;
usr.bin/ssh/ssh_api.c
229
int (*cb)(struct sshkey *, struct ssh *))
usr.bin/ssh/ssh_api.c
42
int _ssh_verify_host_key(struct sshkey *, struct ssh *);
usr.bin/ssh/ssh_api.c
43
struct sshkey *_ssh_host_public_key(int, int, struct ssh *);
usr.bin/ssh/ssh_api.c
44
struct sshkey *_ssh_host_private_key(int, int, struct ssh *);
usr.bin/ssh/ssh_api.c
45
int _ssh_host_key_sign(struct ssh *, struct sshkey *, struct sshkey *,
usr.bin/ssh/ssh_api.c
474
struct sshkey *
usr.bin/ssh/ssh_api.c
489
struct sshkey *
usr.bin/ssh/ssh_api.c
505
_ssh_verify_host_key(struct sshkey *hostkey, struct ssh *ssh)
usr.bin/ssh/ssh_api.c
51
int mm_sshkey_sign(struct sshkey *, u_char **, u_int *,
usr.bin/ssh/ssh_api.c
577
_ssh_host_key_sign(struct ssh *ssh, struct sshkey *privkey,
usr.bin/ssh/ssh_api.c
578
struct sshkey *pubkey, u_char **signature, size_t *slen,
usr.bin/ssh/ssh_api.c
59
mm_sshkey_sign(struct sshkey *key, u_char **sigp, u_int *lenp,
usr.bin/ssh/ssh_api.h
63
int ssh_add_hostkey(struct ssh *ssh, struct sshkey *key);
usr.bin/ssh/ssh_api.h
72
int (*cb)(struct sshkey *, struct ssh *));
usr.bin/ssh/sshconnect.c
1429
verify_host_key(char *host, struct sockaddr *hostaddr, struct sshkey *host_key,
usr.bin/ssh/sshconnect.c
1435
struct sshkey *plain = NULL;
usr.bin/ssh/sshconnect.c
1601
show_other_keys(struct hostkeys *hostkeys, struct sshkey *key)
usr.bin/ssh/sshconnect.c
1641
warn_changed_key(struct sshkey *host_key)
usr.bin/ssh/sshconnect.c
1704
maybe_add_key_to_agent(const char *authfile, struct sshkey *private,
usr.bin/ssh/sshconnect.c
56
struct sshkey *previous_host_key = NULL;
usr.bin/ssh/sshconnect.c
647
const struct sshkey *key;
usr.bin/ssh/sshconnect.c
67
static int show_other_keys(struct hostkeys *, struct sshkey *);
usr.bin/ssh/sshconnect.c
68
static void warn_changed_key(struct sshkey *);
usr.bin/ssh/sshconnect.c
683
hostkey_accepted_by_hostkeyalgs(const struct sshkey *key)
usr.bin/ssh/sshconnect.c
752
hostkeys_find_by_key(const char *host, const char *ip, const struct sshkey *key,
usr.bin/ssh/sshconnect.c
795
const struct sshkey *key,
usr.bin/ssh/sshconnect.c
831
const struct sshkey *host_key, const char *hostfile_hostname)
usr.bin/ssh/sshconnect.c
916
struct sshkey *host_key, int readonly, int clobber_port,
usr.bin/ssh/sshconnect.c
922
struct sshkey *raw_key = NULL;
usr.bin/ssh/sshconnect.h
101
const struct sshkey *, const char *);
usr.bin/ssh/sshconnect.h
103
int hostkey_accepted_by_hostkeyalgs(const struct sshkey *);
usr.bin/ssh/sshconnect.h
27
struct sshkey;
usr.bin/ssh/sshconnect.h
31
struct sshkey **keys;
usr.bin/ssh/sshconnect.h
82
int verify_host_key(char *, struct sockaddr *, struct sshkey *,
usr.bin/ssh/sshconnect.h
96
void maybe_add_key_to_agent(const char *, struct sshkey *,
usr.bin/ssh/sshconnect2.c
1152
key_sig_algorithm(struct ssh *ssh, const struct sshkey *key)
usr.bin/ssh/sshconnect2.c
1204
struct sshkey *sign_key = NULL, *prv = NULL;
usr.bin/ssh/sshconnect2.c
1518
static struct sshkey *
usr.bin/ssh/sshconnect2.c
1521
struct sshkey *private = NULL;
usr.bin/ssh/sshconnect2.c
1598
key_type_allowed(struct sshkey *key, const char *allowlist)
usr.bin/ssh/sshconnect2.c
1624
key_type_allowed_by_config(struct sshkey *key)
usr.bin/ssh/sshconnect2.c
1673
struct sshkey *key;
usr.bin/ssh/sshconnect2.c
2017
ssh_keysign(struct ssh *ssh, struct sshkey *key, u_char **sigp, size_t *lenp,
usr.bin/ssh/sshconnect2.c
2136
struct sshkey *private = NULL;
usr.bin/ssh/sshconnect2.c
298
struct sshkey *key; /* public/private key */
usr.bin/ssh/sshconnect2.c
373
static struct sshkey *load_identity_file(Identity *);
usr.bin/ssh/sshconnect2.c
677
struct sshkey *key = NULL;
usr.bin/ssh/sshconnect2.c
82
static int key_type_allowed(struct sshkey *, const char *);
usr.bin/ssh/sshconnect2.c
85
verify_host_key_callback(struct sshkey *hostkey, struct ssh *ssh)
usr.bin/ssh/sshd-auth.c
129
struct sshkey **host_pubkeys; /* all public host keys */
usr.bin/ssh/sshd-auth.c
130
struct sshkey **host_certificates; /* all public host certificates */
usr.bin/ssh/sshd-auth.c
221
struct sshkey *key;
usr.bin/ssh/sshd-auth.c
271
struct sshkey *
usr.bin/ssh/sshd-auth.c
275
struct sshkey *key;
usr.bin/ssh/sshd-auth.c
308
struct sshkey *
usr.bin/ssh/sshd-auth.c
315
struct sshkey *
usr.bin/ssh/sshd-auth.c
321
struct sshkey *
usr.bin/ssh/sshd-auth.c
330
get_hostkey_index(struct sshkey *key, int compare, struct ssh *ssh)
usr.bin/ssh/sshd-auth.c
367
struct sshkey *k;
usr.bin/ssh/sshd-auth.c
731
sshd_hostkey_sign(struct ssh *ssh, struct sshkey *privkey,
usr.bin/ssh/sshd-auth.c
732
struct sshkey *pubkey, u_char **signature, size_t *slenp,
usr.bin/ssh/sshd-session.c
1208
sshd_hostkey_sign(struct ssh *ssh, struct sshkey *privkey,
usr.bin/ssh/sshd-session.c
1209
struct sshkey *pubkey, u_char **signature, size_t *slenp,
usr.bin/ssh/sshd-session.c
140
struct sshkey **host_keys; /* all private host keys */
usr.bin/ssh/sshd-session.c
141
struct sshkey **host_pubkeys; /* all public host keys */
usr.bin/ssh/sshd-session.c
142
struct sshkey **host_certificates; /* all public host certificates */
usr.bin/ssh/sshd-session.c
233
struct sshkey *tmp;
usr.bin/ssh/sshd-session.c
395
static struct sshkey *
usr.bin/ssh/sshd-session.c
399
struct sshkey *key;
usr.bin/ssh/sshd-session.c
434
struct sshkey *
usr.bin/ssh/sshd-session.c
440
struct sshkey *
usr.bin/ssh/sshd-session.c
446
struct sshkey *
usr.bin/ssh/sshd-session.c
454
struct sshkey *
usr.bin/ssh/sshd-session.c
463
get_hostkey_index(struct sshkey *key, int compare, struct ssh *ssh)
usr.bin/ssh/sshd-session.c
493
struct sshkey *key;
usr.bin/ssh/sshd-session.c
556
struct sshkey *k;
usr.bin/ssh/sshd.c
118
struct sshkey **host_keys; /* all private host keys */
usr.bin/ssh/sshd.c
119
struct sshkey **host_pubkeys; /* all public host keys */
usr.bin/ssh/sshd.c
120
struct sshkey **host_certificates; /* all public host certificates */
usr.bin/ssh/sshd.c
1200
struct sshkey *key)
usr.bin/ssh/sshd.c
1272
struct sshkey *key;
usr.bin/ssh/sshd.c
1273
struct sshkey *pubkey;
usr.bin/ssh/sshd.c
1517
sizeof(struct sshkey *));
usr.bin/ssh/sshd.c
1519
sizeof(struct sshkey *));
usr.bin/ssh/sshd.c
1625
sizeof(struct sshkey *));
usr.bin/ssh/sshkey.c
1097
const struct sshkey *k)
usr.bin/ssh/sshkey.c
1193
sshkey_fingerprint(const struct sshkey *k, int dgst_alg,
usr.bin/ssh/sshkey.c
1257
sshkey_read(struct sshkey *ret, char **cpp)
usr.bin/ssh/sshkey.c
1259
struct sshkey *k;
usr.bin/ssh/sshkey.c
1331
sshkey_to_base64(const struct sshkey *key, char **b64p)
usr.bin/ssh/sshkey.c
1360
sshkey_format_text(const struct sshkey *key, struct sshbuf *b)
usr.bin/ssh/sshkey.c
1377
sshkey_write(const struct sshkey *key, FILE *f)
usr.bin/ssh/sshkey.c
1400
sshkey_cert_type(const struct sshkey *k)
usr.bin/ssh/sshkey.c
1413
sshkey_check_rsa_length(const struct sshkey *k, int min_size)
usr.bin/ssh/sshkey.c
1451
sshkey_generate(int type, u_int bits, struct sshkey **keyp)
usr.bin/ssh/sshkey.c
1453
struct sshkey *k;
usr.bin/ssh/sshkey.c
1477
sshkey_cert_copy(const struct sshkey *from_key, struct sshkey *to_key)
usr.bin/ssh/sshkey.c
1547
sshkey_copy_public_sk(const struct sshkey *from, struct sshkey *to)
usr.bin/ssh/sshkey.c
1556
sshkey_from_private(const struct sshkey *k, struct sshkey **pkp)
usr.bin/ssh/sshkey.c
1558
struct sshkey *n = NULL;
usr.bin/ssh/sshkey.c
1583
sshkey_is_shielded(struct sshkey *k)
usr.bin/ssh/sshkey.c
1589
sshkey_shield_private(struct sshkey *k)
usr.bin/ssh/sshkey.c
1596
struct sshkey *kswap = NULL, tmp;
usr.bin/ssh/sshkey.c
161
sshkey_impl_from_key(const struct sshkey *k)
usr.bin/ssh/sshkey.c
169
sshkey_type(const struct sshkey *k)
usr.bin/ssh/sshkey.c
1723
sshkey_unshield_private(struct sshkey *k)
usr.bin/ssh/sshkey.c
1729
struct sshkey *kswap = NULL, tmp;
usr.bin/ssh/sshkey.c
1812
cert_parse(struct sshbuf *b, struct sshkey *key, struct sshbuf *certbuf)
usr.bin/ssh/sshkey.c
1938
sshkey_deserialize_sk(struct sshbuf *b, struct sshkey *key)
usr.bin/ssh/sshkey.c
1947
sshkey_from_blob_internal(struct sshbuf *b, struct sshkey **keyp,
usr.bin/ssh/sshkey.c
1952
struct sshkey *key = NULL;
usr.bin/ssh/sshkey.c
199
sshkey_ssh_name(const struct sshkey *k)
usr.bin/ssh/sshkey.c
2014
sshkey_from_blob(const u_char *blob, size_t blen, struct sshkey **keyp)
usr.bin/ssh/sshkey.c
2027
sshkey_fromb(struct sshbuf *b, struct sshkey **keyp)
usr.bin/ssh/sshkey.c
2033
sshkey_froms(struct sshbuf *buf, struct sshkey **keyp)
usr.bin/ssh/sshkey.c
205
sshkey_ssh_name_plain(const struct sshkey *k)
usr.bin/ssh/sshkey.c
2078
sshkey_check_cert_sigtype(const struct sshkey *key, const char *allowed)
usr.bin/ssh/sshkey.c
2138
sshkey_sign(struct sshkey *key,
usr.bin/ssh/sshkey.c
2181
sshkey_verify(const struct sshkey *key,
usr.bin/ssh/sshkey.c
2200
sshkey_to_certified(struct sshkey *k)
usr.bin/ssh/sshkey.c
2214
sshkey_drop_cert(struct sshkey *k)
usr.bin/ssh/sshkey.c
2226
sshkey_certify_custom(struct sshkey *k, struct sshkey *ca, const char *alg,
usr.bin/ssh/sshkey.c
2337
default_key_sign(struct sshkey *key, u_char **sigp, size_t *lenp,
usr.bin/ssh/sshkey.c
2349
sshkey_certify(struct sshkey *k, struct sshkey *ca, const char *alg,
usr.bin/ssh/sshkey.c
2357
sshkey_cert_check_authority(const struct sshkey *k,
usr.bin/ssh/sshkey.c
2416
sshkey_cert_check_authority_now(const struct sshkey *k,
usr.bin/ssh/sshkey.c
2432
sshkey_cert_check_host(const struct sshkey *key, const char *host,
usr.bin/ssh/sshkey.c
2478
sshkey_serialize_private_sk(const struct sshkey *key, struct sshbuf *b)
usr.bin/ssh/sshkey.c
2492
sshkey_private_serialize_opt(struct sshkey *key, struct sshbuf *buf,
usr.bin/ssh/sshkey.c
2536
sshkey_private_serialize(struct sshkey *key, struct sshbuf *b)
usr.bin/ssh/sshkey.c
2545
sshkey_private_deserialize_sk(struct sshbuf *buf, struct sshkey *k)
usr.bin/ssh/sshkey.c
2562
sshkey_private_deserialize(struct sshbuf *buf, struct sshkey **kp)
usr.bin/ssh/sshkey.c
2568
struct sshkey *k = NULL;
usr.bin/ssh/sshkey.c
2772
sshkey_private_to_blob2(struct sshkey *prv, struct sshbuf *blob,
usr.bin/ssh/sshkey.c
2973
struct sshbuf **decryptedp, struct sshkey **pubkeyp)
usr.bin/ssh/sshkey.c
2981
struct sshkey *pubkey = NULL;
usr.bin/ssh/sshkey.c
3120
struct sshkey **keyp, char **commentp)
usr.bin/ssh/sshkey.c
3125
struct sshkey *k = NULL, *pubkey = NULL;
usr.bin/ssh/sshkey.c
3180
struct sshkey **keyp)
usr.bin/ssh/sshkey.c
3184
struct sshkey *pubkey = NULL;
usr.bin/ssh/sshkey.c
3231
sshkey_private_to_blob_pem_pkcs8(struct sshkey *key, struct sshbuf *buf,
usr.bin/ssh/sshkey.c
3328
sshkey_private_to_fileblob(struct sshkey *key, struct sshbuf *blob,
usr.bin/ssh/sshkey.c
3429
const char *passphrase, struct sshkey **keyp)
usr.bin/ssh/sshkey.c
3432
struct sshkey *prv = NULL;
usr.bin/ssh/sshkey.c
3568
const char *passphrase, struct sshkey **keyp, char **commentp)
usr.bin/ssh/sshkey.c
3591
struct sshkey **keyp, char **commentp)
usr.bin/ssh/sshkey.c
3610
struct sshkey **pubkeyp)
usr.bin/ssh/sshkey.c
368
sshkey_size(const struct sshkey *k)
usr.bin/ssh/sshkey.c
391
sshkey_is_cert(const struct sshkey *k)
usr.bin/ssh/sshkey.c
399
sshkey_is_sk(const struct sshkey *k)
usr.bin/ssh/sshkey.c
661
struct sshkey *
usr.bin/ssh/sshkey.c
664
struct sshkey *k;
usr.bin/ssh/sshkey.c
694
sshkey_sk_cleanup(struct sshkey *k)
usr.bin/ssh/sshkey.c
725
sshkey_free_contents(struct sshkey *k)
usr.bin/ssh/sshkey.c
743
sshkey_free(struct sshkey *k)
usr.bin/ssh/sshkey.c
766
sshkey_sk_fields_equal(const struct sshkey *a, const struct sshkey *b)
usr.bin/ssh/sshkey.c
780
sshkey_equal_public(const struct sshkey *a, const struct sshkey *b)
usr.bin/ssh/sshkey.c
793
sshkey_equal(const struct sshkey *a, const struct sshkey *b)
usr.bin/ssh/sshkey.c
807
sshkey_serialize_sk(const struct sshkey *key, struct sshbuf *b)
usr.bin/ssh/sshkey.c
818
to_blob_buf(const struct sshkey *key, struct sshbuf *b, int force_plain,
usr.bin/ssh/sshkey.c
83
struct sshkey **keyp, int allow_cert);
usr.bin/ssh/sshkey.c
850
sshkey_putb(const struct sshkey *key, struct sshbuf *b)
usr.bin/ssh/sshkey.c
856
sshkey_puts_opts_internal(const struct sshkey *key, struct sshbuf *b,
usr.bin/ssh/sshkey.c
872
sshkey_puts(const struct sshkey *key, struct sshbuf *b)
usr.bin/ssh/sshkey.c
878
sshkey_putb_plain(const struct sshkey *key, struct sshbuf *b)
usr.bin/ssh/sshkey.c
884
sshkey_puts_plain(const struct sshkey *key, struct sshbuf *b)
usr.bin/ssh/sshkey.c
890
to_blob(const struct sshkey *key, u_char **blobp, size_t *lenp, int force_plain,
usr.bin/ssh/sshkey.c
922
sshkey_to_blob(const struct sshkey *key, u_char **blobp, size_t *lenp)
usr.bin/ssh/sshkey.c
928
sshkey_plain_to_blob(const struct sshkey *key, u_char **blobp, size_t *lenp)
usr.bin/ssh/sshkey.c
934
sshkey_fingerprint_raw(const struct sshkey *k, int dgst_alg,
usr.bin/ssh/sshkey.h
106
struct sshkey *signature_key;
usr.bin/ssh/sshkey.h
145
u_int (*size)(const struct sshkey *); /* optional */
usr.bin/ssh/sshkey.h
146
int (*alloc)(struct sshkey *); /* optional */
usr.bin/ssh/sshkey.h
147
void (*cleanup)(struct sshkey *); /* optional */
usr.bin/ssh/sshkey.h
148
int (*equal)(const struct sshkey *, const struct sshkey *);
usr.bin/ssh/sshkey.h
149
int (*serialize_public)(const struct sshkey *, struct sshbuf *,
usr.bin/ssh/sshkey.h
152
struct sshkey *);
usr.bin/ssh/sshkey.h
153
int (*serialize_private)(const struct sshkey *, struct sshbuf *,
usr.bin/ssh/sshkey.h
156
struct sshkey *);
usr.bin/ssh/sshkey.h
157
int (*generate)(struct sshkey *, int); /* optional */
usr.bin/ssh/sshkey.h
158
int (*copy_public)(const struct sshkey *, struct sshkey *);
usr.bin/ssh/sshkey.h
159
int (*sign)(struct sshkey *, u_char **, size_t *,
usr.bin/ssh/sshkey.h
162
int (*verify)(const struct sshkey *, const u_char *, size_t,
usr.bin/ssh/sshkey.h
179
struct sshkey *sshkey_new(int);
usr.bin/ssh/sshkey.h
180
void sshkey_free(struct sshkey *);
usr.bin/ssh/sshkey.h
181
int sshkey_equal_public(const struct sshkey *,
usr.bin/ssh/sshkey.h
182
const struct sshkey *);
usr.bin/ssh/sshkey.h
183
int sshkey_equal(const struct sshkey *, const struct sshkey *);
usr.bin/ssh/sshkey.h
184
char *sshkey_fingerprint(const struct sshkey *,
usr.bin/ssh/sshkey.h
186
int sshkey_fingerprint_raw(const struct sshkey *k,
usr.bin/ssh/sshkey.h
188
const char *sshkey_type(const struct sshkey *);
usr.bin/ssh/sshkey.h
189
const char *sshkey_cert_type(const struct sshkey *);
usr.bin/ssh/sshkey.h
190
int sshkey_format_text(const struct sshkey *, struct sshbuf *);
usr.bin/ssh/sshkey.h
191
int sshkey_write(const struct sshkey *, FILE *);
usr.bin/ssh/sshkey.h
192
int sshkey_read(struct sshkey *, char **);
usr.bin/ssh/sshkey.h
193
u_int sshkey_size(const struct sshkey *);
usr.bin/ssh/sshkey.h
195
int sshkey_generate(int type, u_int bits, struct sshkey **keyp);
usr.bin/ssh/sshkey.h
196
int sshkey_from_private(const struct sshkey *, struct sshkey **);
usr.bin/ssh/sshkey.h
198
int sshkey_is_shielded(struct sshkey *);
usr.bin/ssh/sshkey.h
199
int sshkey_shield_private(struct sshkey *);
usr.bin/ssh/sshkey.h
200
int sshkey_unshield_private(struct sshkey *);
usr.bin/ssh/sshkey.h
204
int sshkey_is_cert(const struct sshkey *);
usr.bin/ssh/sshkey.h
205
int sshkey_is_sk(const struct sshkey *);
usr.bin/ssh/sshkey.h
212
int sshkey_to_certified(struct sshkey *);
usr.bin/ssh/sshkey.h
213
int sshkey_drop_cert(struct sshkey *);
usr.bin/ssh/sshkey.h
214
int sshkey_cert_copy(const struct sshkey *, struct sshkey *);
usr.bin/ssh/sshkey.h
215
int sshkey_cert_check_authority(const struct sshkey *, int, int,
usr.bin/ssh/sshkey.h
217
int sshkey_cert_check_authority_now(const struct sshkey *, int, int,
usr.bin/ssh/sshkey.h
219
int sshkey_cert_check_host(const struct sshkey *, const char *,
usr.bin/ssh/sshkey.h
223
int sshkey_check_cert_sigtype(const struct sshkey *, const char *);
usr.bin/ssh/sshkey.h
225
int sshkey_certify(struct sshkey *, struct sshkey *,
usr.bin/ssh/sshkey.h
228
typedef int sshkey_certify_signer(struct sshkey *, u_char **, size_t *,
usr.bin/ssh/sshkey.h
231
int sshkey_certify_custom(struct sshkey *, struct sshkey *, const char *,
usr.bin/ssh/sshkey.h
244
const char *sshkey_ssh_name(const struct sshkey *);
usr.bin/ssh/sshkey.h
245
const char *sshkey_ssh_name_plain(const struct sshkey *);
usr.bin/ssh/sshkey.h
249
int sshkey_from_blob(const u_char *, size_t, struct sshkey **);
usr.bin/ssh/sshkey.h
250
int sshkey_fromb(struct sshbuf *, struct sshkey **);
usr.bin/ssh/sshkey.h
251
int sshkey_froms(struct sshbuf *, struct sshkey **);
usr.bin/ssh/sshkey.h
252
int sshkey_to_blob(const struct sshkey *, u_char **, size_t *);
usr.bin/ssh/sshkey.h
253
int sshkey_to_base64(const struct sshkey *, char **);
usr.bin/ssh/sshkey.h
254
int sshkey_putb(const struct sshkey *, struct sshbuf *);
usr.bin/ssh/sshkey.h
255
int sshkey_puts(const struct sshkey *, struct sshbuf *);
usr.bin/ssh/sshkey.h
256
int sshkey_plain_to_blob(const struct sshkey *, u_char **, size_t *);
usr.bin/ssh/sshkey.h
257
int sshkey_putb_plain(const struct sshkey *, struct sshbuf *);
usr.bin/ssh/sshkey.h
258
int sshkey_puts_plain(const struct sshkey *, struct sshbuf *);
usr.bin/ssh/sshkey.h
260
int sshkey_sign(struct sshkey *, u_char **, size_t *,
usr.bin/ssh/sshkey.h
262
int sshkey_verify(const struct sshkey *, const u_char *, size_t,
usr.bin/ssh/sshkey.h
279
int sshkey_private_serialize(struct sshkey *key, struct sshbuf *buf);
usr.bin/ssh/sshkey.h
280
int sshkey_private_deserialize(struct sshbuf *buf, struct sshkey **keyp);
usr.bin/ssh/sshkey.h
283
int sshkey_private_to_fileblob(struct sshkey *key, struct sshbuf *blob,
usr.bin/ssh/sshkey.h
287
const char *passphrase, struct sshkey **keyp, char **commentp);
usr.bin/ssh/sshkey.h
289
const char *passphrase, struct sshkey **keyp, char **commentp);
usr.bin/ssh/sshkey.h
291
int type, struct sshkey **pubkeyp);
usr.bin/ssh/sshkey.h
293
int sshkey_check_rsa_length(const struct sshkey *, int);
usr.bin/ssh/sshkey.h
305
int sshkey_sk_fields_equal(const struct sshkey *a, const struct sshkey *b);
usr.bin/ssh/sshkey.h
306
void sshkey_sk_cleanup(struct sshkey *k);
usr.bin/ssh/sshkey.h
307
int sshkey_serialize_sk(const struct sshkey *key, struct sshbuf *b);
usr.bin/ssh/sshkey.h
308
int sshkey_copy_public_sk(const struct sshkey *from, struct sshkey *to);
usr.bin/ssh/sshkey.h
309
int sshkey_deserialize_sk(struct sshbuf *b, struct sshkey *key);
usr.bin/ssh/sshkey.h
310
int sshkey_serialize_private_sk(const struct sshkey *key,
usr.bin/ssh/sshkey.h
312
int sshkey_private_deserialize_sk(struct sshbuf *buf, struct sshkey *k);
usr.bin/ssh/sshkey.h
319
int ssh_ecdsa_encode_store_sig(const struct sshkey *,
usr.bin/ssh/sshsig.c
1029
sshsig_find_principals(const char *path, const struct sshkey *sign_key,
usr.bin/ssh/sshsig.c
1147
sshsig_get_pubkey(struct sshbuf *signature, struct sshkey **pubkey)
usr.bin/ssh/sshsig.c
1149
struct sshkey *pk = NULL;
usr.bin/ssh/sshsig.c
162
sshsig_wrap_sign(struct sshkey *key, const char *hashalg,
usr.bin/ssh/sshsig.c
305
struct sshkey **sign_keyp, struct sshkey_sig_details **sig_details)
usr.bin/ssh/sshsig.c
309
struct sshkey *key = NULL;
usr.bin/ssh/sshsig.c
446
sshsig_signb(struct sshkey *key, const char *hashalg,
usr.bin/ssh/sshsig.c
474
const char *expect_namespace, struct sshkey **sign_keyp,
usr.bin/ssh/sshsig.c
574
sshsig_sign_fd(struct sshkey *key, const char *hashalg,
usr.bin/ssh/sshsig.c
602
const char *expect_namespace, struct sshkey **sign_keyp,
usr.bin/ssh/sshsig.c
735
const char *required_principal, char **principalsp, struct sshkey **keyp,
usr.bin/ssh/sshsig.c
741
struct sshkey *key = NULL;
usr.bin/ssh/sshsig.c
837
char **principalsp, const struct sshkey *cert, uint64_t verify_time)
usr.bin/ssh/sshsig.c
894
const struct sshkey *sign_key, const char *principal,
usr.bin/ssh/sshsig.c
897
struct sshkey *found_key = NULL;
usr.bin/ssh/sshsig.c
988
sshsig_check_allowed_keys(const char *path, const struct sshkey *sign_key,
usr.bin/ssh/sshsig.h
104
int sshsig_find_principals(const char *path, const struct sshkey *sign_key,
usr.bin/ssh/sshsig.h
22
struct sshkey;
usr.bin/ssh/sshsig.h
26
typedef int sshsig_signer(struct sshkey *, u_char **, size_t *,
usr.bin/ssh/sshsig.h
37
int sshsig_signb(struct sshkey *key, const char *hashalg,
usr.bin/ssh/sshsig.h
49
struct sshkey **sign_keyp, struct sshkey_sig_details **sig_details);
usr.bin/ssh/sshsig.h
58
int sshsig_sign_fd(struct sshkey *key, const char *hashalg,
usr.bin/ssh/sshsig.h
69
const char *sig_namespace, struct sshkey **sign_keyp,
usr.bin/ssh/sshsig.h
88
int sshsig_check_allowed_keys(const char *path, const struct sshkey *sign_key,
usr.bin/ssh/sshsig.h
99
int sshsig_get_pubkey(struct sshbuf *signature, struct sshkey **pubkey);