HomeSort by: relevance | last modified time | path
    Searched refs:sshkey (Results 1 - 25 of 65) sorted by relevancy

1 2 3

  /src/crypto/external/bsd/openssh/dist/
ssh-pkcs11.h 27 struct sshkey;
31 int pkcs11_add_provider(char *, char *, struct sshkey ***, char ***);
33 int pkcs11_sign(struct sshkey *, u_char **, size_t *,
36 void pkcs11_key_free(struct sshkey *);
39 struct sshkey *
42 struct sshkey *
48 int pkcs11_make_cert(const struct sshkey *,
49 const struct sshkey *, struct sshkey **);
authfile.h 32 struct sshkey;
37 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 **);
45 struct sshkey **, char **);
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)
    [all...]
sshkey.h 1 /* $NetBSD: sshkey.h,v 1.25 2025/12/28 09:54:07 nia Exp $ */
2 /* $OpenBSD: sshkey.h,v 1.70 2025/08/29 03:50:38 djm Exp $ */
108 struct sshkey *signature_key;
113 struct sshkey { struct
147 u_int (*size)(const struct sshkey *); /* optional */
148 int (*alloc)(struct sshkey *); /* optional */
149 void (*cleanup)(struct sshkey *); /* optional */
150 int (*equal)(const struct sshkey *, const struct sshkey *);
151 int (*serialize_public)(const struct sshkey *, struct sshbuf *
    [all...]
sshsig.h 22 struct sshkey;
26 typedef int sshsig_signer(struct sshkey *, u_char **, size_t *,
37 int sshsig_signb(struct sshkey *key, const char *hashalg,
49 struct sshkey **sign_keyp, struct sshkey_sig_details **sig_details);
58 int sshsig_sign_fd(struct sshkey *key, const char *hashalg,
69 const char *sig_namespace, struct sshkey **sign_keyp,
88 int sshsig_check_allowed_keys(const char *path, const struct sshkey *sign_key,
99 int sshsig_get_pubkey(struct sshbuf *signature, struct sshkey **pubkey);
101 /* Find principal in allowed_keys file, given a sshkey. Returns
104 int sshsig_find_principals(const char *path, const struct sshkey *sign_key
    [all...]
dns.h 56 struct sshkey *, int *);
57 int export_dns_rr(const char *, struct sshkey *, FILE *, int, int);
krl.h 43 struct sshkey;
52 const struct sshkey *ca_key, u_int64_t serial);
54 const struct sshkey *ca_key, u_int64_t lo, u_int64_t hi);
56 const struct sshkey *ca_key, const char *key_id);
57 int ssh_krl_revoke_key_explicit(struct ssh_krl *krl, const struct sshkey *key);
60 int ssh_krl_revoke_key(struct ssh_krl *krl, const struct sshkey *key);
63 int ssh_krl_check_key(struct ssh_krl *krl, const struct sshkey *key);
64 int ssh_krl_file_contains_key(const char *path, const struct sshkey *key);
auth.h 48 struct sshkey;
89 struct sshkey **prev_keys;
93 struct sshkey *auth_method_key;
145 const char *, char *, struct sshkey *);
146 int user_key_allowed(struct ssh *ssh, struct passwd *, struct sshkey *,
148 int auth2_key_already_used(Authctxt *, const struct sshkey *);
155 void auth2_record_key(Authctxt *, int, const struct sshkey *);
194 int auth_key_is_revoked(struct sshkey *);
199 check_key_in_hostfiles(struct passwd *, struct sshkey *, const char *,
203 struct sshkey *get_hostkey_by_index(int)
    [all...]
authfd.h 21 struct sshkey;
26 struct sshkey **keys;
36 struct sshkey **keys;
51 int ssh_add_identity_constrained(int sock, struct sshkey *key,
54 int ssh_agent_has_key(int sock, const struct sshkey *key);
55 int ssh_remove_identity(int sock, const struct sshkey *key);
60 int cert_only, struct sshkey **certs, size_t ncerts);
63 int ssh_agent_sign(int sock, const struct sshkey *key,
67 int ssh_agent_bind_hostkey(int sock, const struct sshkey *key,
ssh-sk.h 22 struct sshkey;
35 struct sshkey *key;
53 struct sshkey **keyp, struct sshbuf *attest);
61 int sshsk_sign(const char *provider_path, struct sshkey *key,
sshconnect.h 28 struct sshkey;
32 struct sshkey **keys;
84 int verify_host_key(char *, struct sockaddr *, struct sshkey *,
98 void maybe_add_key_to_agent(const char *, struct sshkey *,
103 const struct sshkey *, const char *);
105 int hostkey_accepted_by_hostkeyalgs(const struct sshkey *);
hostfile.h 30 struct sshkey *key;
46 HostStatus check_key_in_hostkeys(struct hostkeys *, struct sshkey *,
52 int hostfile_read_key(char **, u_int *, struct sshkey *);
54 const struct sshkey *, int);
57 const char *host, const char *ip, struct sshkey **keys, size_t nkeys,
102 struct sshkey *key; /* Key, if parsed ok and HKF_WANT_MATCH_HOST set */
monitor_wrap.h 41 struct sshkey;
50 int mm_sshkey_sign(struct ssh *, struct sshkey *, u_char **, size_t *,
57 int mm_key_allowed(enum mm_keytype, const char *, const char *, struct sshkey *,
59 int mm_user_key_allowed(struct ssh *ssh, struct passwd *, struct sshkey *, int,
62 const char *, struct sshkey *);
63 int mm_sshkey_verify(const struct sshkey *, const u_char *, size_t,
authfile.c 48 #include "sshkey.h"
67 sshkey_save_private(struct sshkey *key, const char *filename,
115 struct sshkey **keyp, char **commentp)
139 struct sshkey **keyp, char **commentp)
147 struct sshkey **keyp, char **commentp)
168 sshkey_load_pubkey_from_private(const char *filename, struct sshkey **pubkeyp)
171 struct sshkey *pubkey = NULL;
197 sshkey_try_load_public(struct sshkey **kp, const char *filename,
204 struct sshkey *k = NULL;
257 sshkey_load_public(const char *filename, struct sshkey **keyp, char **commentp
    [all...]
auth-options.h 24 struct sshkey;
99 struct sshauthopt *sshauthopt_from_cert(struct sshkey *k);
ssh-ed25519.c 31 #include "sshkey.h"
36 ssh_ed25519_cleanup(struct sshkey *k)
45 ssh_ed25519_equal(const struct sshkey *a, const struct sshkey *b)
55 ssh_ed25519_serialize_public(const struct sshkey *key, struct sshbuf *b,
69 ssh_ed25519_serialize_private(const struct sshkey *key, struct sshbuf *b,
82 ssh_ed25519_generate(struct sshkey *k, int bits)
92 ssh_ed25519_copy_public(const struct sshkey *from, struct sshkey *to)
104 struct sshkey *key
    [all...]
kex.h 161 struct sshkey *initial_hostkey;
167 int (*verify_host_key)(struct sshkey *, struct ssh *);
168 struct sshkey *(*load_host_public_key)(int, int, struct ssh *);
169 struct sshkey *(*load_host_private_key)(int, int, struct ssh *);
170 int (*host_key_index)(struct sshkey *, int, struct ssh *);
171 int (*sign)(struct ssh *, struct sshkey *, struct sshkey *,
211 int kex_load_hostkey(struct ssh *, struct sshkey **, struct sshkey **);
212 int kex_verify_host_key(struct ssh *, struct sshkey *);
    [all...]
ssh-ed25519-sk.c 34 #include "sshkey.h"
43 ssh_ed25519_sk_cleanup(struct sshkey *k)
50 ssh_ed25519_sk_equal(const struct sshkey *a, const struct sshkey *b)
60 ssh_ed25519_sk_serialize_public(const struct sshkey *key, struct sshbuf *b,
74 ssh_ed25519_sk_serialize_private(const struct sshkey *key, struct sshbuf *b,
88 ssh_ed25519_sk_copy_public(const struct sshkey *from, struct sshkey *to)
101 struct sshkey *key)
114 struct sshkey *key
    [all...]
ssh_api.h 28 #include "sshkey.h"
65 int ssh_add_hostkey(struct ssh *ssh, struct sshkey *key);
74 int (*cb)(struct sshkey *, struct ssh *));
ssh-ecdsa.c 44 #include "sshkey.h"
100 ssh_ecdsa_size(const struct sshkey *key)
115 ssh_ecdsa_cleanup(struct sshkey *k)
122 ssh_ecdsa_equal(const struct sshkey *a, const struct sshkey *b)
130 ssh_ecdsa_serialize_public(const struct sshkey *key, struct sshbuf *b,
146 ssh_ecdsa_serialize_private(const struct sshkey *key, struct sshbuf *b,
162 ssh_ecdsa_generate(struct sshkey *k, int bits)
191 ssh_ecdsa_copy_public(const struct sshkey *from, struct sshkey *to
    [all...]
ssh-pkcs11-client.c 42 #include "sshkey.h"
80 helper_by_key(const struct sshkey *key)
108 helper_add_key(struct helper *helper, struct sshkey *key)
232 pkcs11_sign(struct sshkey *key,
294 pkcs11_make_cert(const struct sshkey *priv,
295 const struct sshkey *certpub, struct sshkey **certprivp)
298 struct sshkey *ret;
387 pkcs11_add_provider(char *name, char *pin, struct sshkey ***keysp,
390 struct sshkey *k
    [all...]
ssh_api.c 32 #include "sshkey.h"
47 int _ssh_verify_host_key(struct sshkey *, struct ssh *);
48 struct sshkey *_ssh_host_public_key(int, int, struct ssh *);
49 struct sshkey *_ssh_host_private_key(int, int, struct ssh *);
50 int _ssh_host_key_sign(struct ssh *, struct sshkey *, struct sshkey *,
56 int mm_sshkey_sign(struct sshkey *, u_char **, u_int *,
64 mm_sshkey_sign(struct sshkey *key, u_char **sigp, u_int *lenp,
202 ssh_add_hostkey(struct ssh *ssh, struct sshkey *key)
204 struct sshkey *pubkey = NULL
    [all...]
sshkey.c 1 /* $NetBSD: sshkey.c,v 1.36 2025/10/11 15:45:08 christos Exp $ */
2 /* $OpenBSD: sshkey.c,v 1.155 2025/10/03 00:08:02 djm Exp $ */
30 __RCSID("$NetBSD: sshkey.c,v 1.36 2025/10/11 15:45:08 christos Exp $");
65 #include "sshkey.h"
91 struct sshkey **keyp, int allow_cert);
167 sshkey_impl_from_key(const struct sshkey *k)
175 sshkey_type(const struct sshkey *k)
205 sshkey_ssh_name(const struct sshkey *k)
211 sshkey_ssh_name_plain(const struct sshkey *k)
363 sshkey_size(const struct sshkey *k
    [all...]
ssh-ecdsa-sk.c 48 #include "sshkey.h"
54 ssh_ecdsa_sk_cleanup(struct sshkey *k)
61 ssh_ecdsa_sk_equal(const struct sshkey *a, const struct sshkey *b)
71 ssh_ecdsa_sk_serialize_public(const struct sshkey *key, struct sshbuf *b,
85 ssh_ecdsa_sk_serialize_private(const struct sshkey *key, struct sshbuf *b,
102 ssh_ecdsa_sk_copy_public(const struct sshkey *from, struct sshkey *to)
115 struct sshkey *key)
128 struct sshkey *key
    [all...]
ssh-rsa.c 33 #include "sshkey.h"
38 ssh_rsa_size(const struct sshkey *k)
46 ssh_rsa_alloc(struct sshkey *k)
54 ssh_rsa_cleanup(struct sshkey *k)
61 ssh_rsa_equal(const struct sshkey *a, const struct sshkey *b)
69 ssh_rsa_serialize_public(const struct sshkey *key, struct sshbuf *b,
90 ssh_rsa_serialize_private(const struct sshkey *key, struct sshbuf *b,
119 ssh_rsa_generate(struct sshkey *k, int bits)
155 ssh_rsa_copy_public(const struct sshkey *from, struct sshkey *to
    [all...]
sshd-auth.c 77 #include "sshkey.h"
140 struct sshkey **host_pubkeys; /* all public host keys */
141 struct sshkey **host_certificates; /* all public host certificates */
237 struct sshkey *key;
287 struct sshkey *
291 struct sshkey *key;
324 struct sshkey *
331 struct sshkey *
337 struct sshkey *
346 get_hostkey_index(struct sshkey *key, int compare, struct ssh *ssh
    [all...]

Completed in 76 milliseconds

1 2 3