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 29 struct sshkey;
33 int pkcs11_add_provider(char *, char *, struct sshkey ***, char ***);
35 int pkcs11_sign(struct sshkey *, u_char **, size_t *,
38 void pkcs11_key_free(struct sshkey *);
41 struct sshkey *
44 struct sshkey *
50 int pkcs11_make_cert(const struct sshkey *,
51 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.26 2026/04/08 18:58:41 christos Exp $ */
2 /* $OpenBSD: sshkey.h,v 1.73 2026/03/03 09:57:26 dtucker 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, uint64_t serial);
54 const struct sshkey *ca_key, uint64_t lo, uint64_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 *);
192 int auth_key_is_revoked(struct sshkey *);
197 check_key_in_hostfiles(struct passwd *, struct sshkey *, const char *,
201 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;
83 int verify_host_key(char *, struct sockaddr *, struct sshkey *,
97 void maybe_add_key_to_agent(const char *, struct sshkey *,
102 const struct sshkey *, const char *);
104 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;
51 int mm_sshkey_sign(struct ssh *, struct sshkey *, u_char **, size_t *,
58 int mm_key_allowed(enum mm_keytype, const char *, const char *, struct sshkey *,
60 int mm_user_key_allowed(struct ssh *ssh, struct passwd *, struct sshkey *, int,
63 const char *, struct sshkey *);
64 int mm_sshkey_verify(const struct sshkey *, const u_char *, size_t,
authfile.c 43 #include "sshkey.h"
62 sshkey_save_private(struct sshkey *key, const char *filename,
110 struct sshkey **keyp, char **commentp)
134 struct sshkey **keyp, char **commentp)
142 struct sshkey **keyp, char **commentp)
163 sshkey_load_pubkey_from_private(const char *filename, struct sshkey **pubkeyp)
166 struct sshkey *pubkey = NULL;
192 sshkey_try_load_public(struct sshkey **kp, const char *filename,
199 struct sshkey *k = NULL;
252 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"
35 ssh_ed25519_cleanup(struct sshkey *k)
44 ssh_ed25519_equal(const struct sshkey *a, const struct sshkey *b)
54 ssh_ed25519_serialize_public(const struct sshkey *key, struct sshbuf *b,
68 ssh_ed25519_serialize_private(const struct sshkey *key, struct sshbuf *b,
81 ssh_ed25519_generate(struct sshkey *k, int bits)
91 ssh_ed25519_copy_public(const struct sshkey *from, struct sshkey *to)
103 struct sshkey *key
    [all...]
kex.h 162 struct sshkey *initial_hostkey;
168 int (*verify_host_key)(struct sshkey *, struct ssh *);
169 struct sshkey *(*load_host_public_key)(int, int, struct ssh *);
170 struct sshkey *(*load_host_private_key)(int, int, struct ssh *);
171 int (*host_key_index)(struct sshkey *, int, struct ssh *);
172 int (*sign)(struct ssh *, struct sshkey *, struct sshkey *,
212 int kex_load_hostkey(struct ssh *, struct sshkey **, struct sshkey **);
213 int kex_verify_host_key(struct ssh *, struct sshkey *);
    [all...]
ssh-ed25519-sk.c 34 #include "sshkey.h"
42 ssh_ed25519_sk_cleanup(struct sshkey *k)
49 ssh_ed25519_sk_equal(const struct sshkey *a, const struct sshkey *b)
59 ssh_ed25519_sk_serialize_public(const struct sshkey *key, struct sshbuf *b,
73 ssh_ed25519_sk_serialize_private(const struct sshkey *key, struct sshbuf *b,
87 ssh_ed25519_sk_copy_public(const struct sshkey *from, struct sshkey *to)
100 struct sshkey *key)
113 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 43 #include "sshkey.h"
99 ssh_ecdsa_size(const struct sshkey *key)
114 ssh_ecdsa_cleanup(struct sshkey *k)
121 ssh_ecdsa_equal(const struct sshkey *a, const struct sshkey *b)
129 ssh_ecdsa_serialize_public(const struct sshkey *key, struct sshbuf *b,
145 ssh_ecdsa_serialize_private(const struct sshkey *key, struct sshbuf *b,
161 ssh_ecdsa_generate(struct sshkey *k, int bits)
190 ssh_ecdsa_copy_public(const struct sshkey *from, struct sshkey *to
    [all...]
ssh-pkcs11-client.c 39 #include "sshkey.h"
77 helper_by_key(const struct sshkey *key)
105 helper_add_key(struct helper *helper, struct sshkey *key)
229 pkcs11_sign(struct sshkey *key,
291 pkcs11_make_cert(const struct sshkey *priv,
292 const struct sshkey *certpub, struct sshkey **certprivp)
295 struct sshkey *ret;
385 pkcs11_add_provider(char *name, char *pin, struct sshkey ***keysp,
388 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,
199 ssh_add_hostkey(struct ssh *ssh, struct sshkey *key)
201 struct sshkey *pubkey = NULL
    [all...]
sshkey.c 1 /* $NetBSD: sshkey.c,v 1.37 2026/04/08 18:58:41 christos Exp $ */
2 /* $OpenBSD: sshkey.c,v 1.161 2026/02/06 22:59:18 dtucker Exp $ */
30 __RCSID("$NetBSD: sshkey.c,v 1.37 2026/04/08 18:58:41 christos Exp $");
65 #include "sshkey.h"
91 struct sshkey **keyp, int allow_cert);
169 sshkey_impl_from_key(const struct sshkey *k)
177 sshkey_type(const struct sshkey *k)
207 sshkey_ssh_name(const struct sshkey *k)
213 sshkey_ssh_name_plain(const struct sshkey *k)
376 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"
37 ssh_rsa_size(const struct sshkey *k)
45 ssh_rsa_alloc(struct sshkey *k)
53 ssh_rsa_cleanup(struct sshkey *k)
60 ssh_rsa_equal(const struct sshkey *a, const struct sshkey *b)
68 ssh_rsa_serialize_public(const struct sshkey *key, struct sshbuf *b,
89 ssh_rsa_serialize_private(const struct sshkey *key, struct sshbuf *b,
118 ssh_rsa_generate(struct sshkey *k, int bits)
154 ssh_rsa_copy_public(const struct sshkey *from, struct sshkey *to
    [all...]
sshd-auth.c 78 #include "sshkey.h"
143 struct sshkey **host_pubkeys; /* all public host keys */
144 struct sshkey **host_certificates; /* all public host certificates */
240 struct sshkey *key;
290 struct sshkey *
294 struct sshkey *key;
327 struct sshkey *
334 struct sshkey *
340 struct sshkey *
349 get_hostkey_index(struct sshkey *key, int compare, struct ssh *ssh
    [all...]

Completed in 35 milliseconds

1 2 3