HomeSort by: relevance | last modified time | path
    Searched refs:sshkey (Results 1 - 25 of 66) 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.28 2026/10/07 17:32:09 christos Exp $ */
2 /* $OpenBSD: sshkey.h,v 1.75 2026/09/16 00:31:27 djm Exp $ */
110 struct sshkey *signature_key;
115 struct sshkey { struct
152 u_int (*size)(const struct sshkey *); /* optional */
153 int (*alloc)(struct sshkey *); /* optional */
154 void (*cleanup)(struct sshkey *); /* optional */
155 int (*equal)(const struct sshkey *, const struct sshkey *);
156 int (*serialize_public)(const struct sshkey *, struct sshbuf *
    [all...]
sshsig.h 24 struct sshkey;
28 typedef int sshsig_signer(struct sshkey *, u_char **, size_t *,
39 int sshsig_signb(struct sshkey *key, const char *hashalg,
51 struct sshkey **sign_keyp, struct sshkey_sig_details **sig_details);
60 int sshsig_sign_fd(struct sshkey *key, const char *hashalg,
71 const char *sig_namespace, struct sshkey **sign_keyp,
90 int sshsig_check_allowed_keys(const char *path, const struct sshkey *sign_key,
101 int sshsig_get_pubkey(struct sshbuf *signature, struct sshkey **pubkey);
103 /* Find principal in allowed_keys file, given a sshkey. Returns
106 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;
91 struct sshkey **prev_keys;
95 struct sshkey *auth_method_key;
147 const char *, char *, struct sshkey *);
148 int user_key_allowed(struct ssh *ssh, struct passwd *, struct sshkey *,
150 int auth2_key_already_used(Authctxt *, const struct sshkey *);
157 void auth2_record_key(Authctxt *, int, const struct sshkey *);
195 int auth_key_is_revoked(struct sshkey *);
200 check_key_in_hostfiles(struct passwd *, struct sshkey *, const char *,
204 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 24 struct sshkey;
37 struct sshkey *key;
55 struct sshkey **keyp, struct sshbuf *attest);
63 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 *,
99 void maybe_add_key_to_agent(const char *, struct sshkey *,
104 const struct sshkey *, const char *);
106 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,
200 struct sshkey *k = NULL;
258 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)
92 ssh_ed25519_copy_public(const struct sshkey *from, struct sshkey *to)
104 struct sshkey *key
    [all...]
kex.h 165 struct sshkey *initial_hostkey;
174 int (*verify_host_key)(struct sshkey *, struct ssh *);
175 struct sshkey *(*load_host_public_key)(int, int, struct ssh *);
176 struct sshkey *(*load_host_private_key)(int, int, struct ssh *);
177 int (*host_key_index)(struct sshkey *, int, struct ssh *);
178 int (*sign)(struct ssh *, struct sshkey *, struct sshkey *,
218 int kex_load_hostkey(struct ssh *, struct sshkey **, struct sshkey **);
219 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-mldsa-eddsa.c 34 #include "sshkey.h"
221 /* sshkey integration */
224 ssh_mldsa44_ed25519_cleanup(struct sshkey *k)
233 ssh_mldsa44_ed25519_equal(const struct sshkey *a, const struct sshkey *b)
244 ssh_mldsa44_ed25519_serialize_public(const struct sshkey *key, struct sshbuf *b,
259 ssh_mldsa44_ed25519_serialize_private(const struct sshkey *key, struct sshbuf *b,
280 struct sshkey *key)
298 struct sshkey *key)
324 ssh_mldsa44_ed25519_generate(struct sshkey *k, int bits
    [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...]
sshkey.c 1 /* $NetBSD: sshkey.c,v 1.39 2026/10/07 17:32:09 christos Exp $ */
2 /* $OpenBSD: sshkey.c,v 1.165 2026/10/01 07:07:49 djm Exp $ */
30 __RCSID("$NetBSD: sshkey.c,v 1.39 2026/10/07 17:32:09 christos Exp $");
65 #include "sshkey.h"
92 struct sshkey **keyp, int allow_cert,
175 sshkey_impl_from_key(const struct sshkey *k)
183 sshkey_type(const struct sshkey *k)
213 sshkey_ssh_name(const struct sshkey *k)
219 sshkey_ssh_name_plain(const struct sshkey *k)
382 sshkey_size(const 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,
201 ssh_add_hostkey(struct ssh *ssh, struct sshkey *key)
203 struct sshkey *pubkey = NULL
    [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...]

Completed in 32 milliseconds

1 2 3