Home
last modified time | relevance | path

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

12

/netbsd-src/crypto/external/bsd/openssh/dist/
H A Dsshkey-xmss.h34 size_t sshkey_xmss_pklen(const struct sshkey *);
35 size_t sshkey_xmss_sklen(const struct sshkey *);
36 int sshkey_xmss_init(struct sshkey *, const char *);
37 void sshkey_xmss_free_state(struct sshkey *);
38 int sshkey_xmss_generate_private_key(struct sshkey *, int);
39 int sshkey_xmss_serialize_state(const struct sshkey *, struct sshbuf *);
40 int sshkey_xmss_serialize_state_opt(const struct sshkey *, struct sshbuf *,
42 int sshkey_xmss_serialize_pk_info(const struct sshkey *, struct sshbuf *,
44 int sshkey_xmss_deserialize_state(struct sshkey *, struct sshbuf *);
45 int sshkey_xmss_deserialize_state_opt(struct sshkey *, struct sshbuf *);
[all …]
H A Dauth.h50 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 *);
196 int auth_key_is_revoked(struct sshkey *);
201 check_key_in_hostfiles(struct passwd *, struct sshkey *, const char *,
205 struct sshkey *get_hostkey_by_index(int);
[all …]
H A Dauthfile.h32 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 …]
H A Dsshsig.h22 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);
104 int sshsig_find_principals(const char *path, const struct sshkey *sign_key,
H A Dauthfile.c68 sshkey_save_private(struct sshkey *key, const char *filename, in sshkey_save_private()
116 struct sshkey **keyp, char **commentp) in sshkey_load_private_type()
142 struct sshkey **keyp, char **commentp) in sshkey_load_private()
150 struct sshkey **keyp, char **commentp) in sshkey_load_private_type_fd()
171 sshkey_load_pubkey_from_private(const char *filename, struct sshkey **pubkeyp) in sshkey_load_pubkey_from_private()
174 struct sshkey *pubkey = NULL; in sshkey_load_pubkey_from_private()
202 sshkey_try_load_public(struct sshkey **kp, const char *filename, in sshkey_try_load_public()
209 struct sshkey *k = NULL; in sshkey_try_load_public()
262 sshkey_load_public(const char *filename, struct sshkey **keyp, char **commentp) in sshkey_load_public()
298 sshkey_load_cert(const char *filename, struct sshkey **keyp) in sshkey_load_cert()
[all …]
H A Dauthfd.h21 struct sshkey;
26 struct sshkey **keys;
36 struct sshkey **keys;
51 int ssh_add_identity_constrained(int sock, struct sshkey *key,
55 int ssh_agent_has_key(int sock, const struct sshkey *key);
56 int ssh_remove_identity(int sock, const struct sshkey *key);
61 int cert_only, struct sshkey **certs, size_t ncerts);
64 int ssh_agent_sign(int sock, const struct sshkey *key,
68 int ssh_agent_bind_hostkey(int sock, const struct sshkey *key,
H A Dkrl.h43 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);
H A Dssh-pkcs11.h29 int pkcs11_add_provider(char *, char *, struct sshkey ***, char ***);
32 struct sshkey *
35 struct sshkey *
41 int pkcs11_make_cert(const struct sshkey *,
42 const struct sshkey *, struct sshkey **);
H A Dssh-ed25519.c36 ssh_ed25519_cleanup(struct sshkey *k) in ssh_ed25519_cleanup()
45 ssh_ed25519_equal(const struct sshkey *a, const struct sshkey *b) in ssh_ed25519_equal()
55 ssh_ed25519_serialize_public(const struct sshkey *key, struct sshbuf *b, in ssh_ed25519_serialize_public()
69 ssh_ed25519_serialize_private(const struct sshkey *key, struct sshbuf *b, in ssh_ed25519_serialize_private()
82 ssh_ed25519_generate(struct sshkey *k, int bits) in ssh_ed25519_generate()
92 ssh_ed25519_copy_public(const struct sshkey *from, struct sshkey *to) in ssh_ed25519_copy_public()
104 struct sshkey *key) in ssh_ed25519_deserialize_public()
122 struct sshkey *key) in ssh_ed25519_deserialize_private()
146 ssh_ed25519_sign(struct sshkey *key, in ssh_ed25519_sign()
205 ssh_ed25519_verify(const struct sshkey *key, in ssh_ed25519_verify()
H A Dsshconnect.h28 struct sshkey;
32 struct sshkey **keys;
80 int verify_host_key(char *, struct sockaddr *, struct sshkey *,
94 void maybe_add_key_to_agent(const char *, struct sshkey *,
99 const struct sshkey *, const char *);
101 int hostkey_accepted_by_hostkeyalgs(const struct sshkey *);
H A Dsshkey-xmss.c76 int sshkey_xmss_init_bds_state(struct sshkey *);
77 int sshkey_xmss_init_enc_key(struct sshkey *, const char *);
78 void sshkey_xmss_free_bds(struct sshkey *);
79 int sshkey_xmss_get_state_from_file(struct sshkey *, const char *,
81 int sshkey_xmss_encrypt_state(const struct sshkey *, struct sshbuf *,
83 int sshkey_xmss_decrypt_state(const struct sshkey *, struct sshbuf *,
85 int sshkey_xmss_serialize_enc_key(const struct sshkey *, struct sshbuf *);
86 int sshkey_xmss_deserialize_enc_key(struct sshkey *, struct sshbuf *);
92 sshkey_xmss_init(struct sshkey *key, const char *name) in sshkey_xmss_init()
135 sshkey_xmss_free_state(struct sshkey *key) in sshkey_xmss_free_state()
[all …]
H A Dssh-ed25519-sk.c43 ssh_ed25519_sk_cleanup(struct sshkey *k) in ssh_ed25519_sk_cleanup()
50 ssh_ed25519_sk_equal(const struct sshkey *a, const struct sshkey *b) in ssh_ed25519_sk_equal()
60 ssh_ed25519_sk_serialize_public(const struct sshkey *key, struct sshbuf *b, in ssh_ed25519_sk_serialize_public()
74 ssh_ed25519_sk_serialize_private(const struct sshkey *key, struct sshbuf *b, in ssh_ed25519_sk_serialize_private()
88 ssh_ed25519_sk_copy_public(const struct sshkey *from, struct sshkey *to) in ssh_ed25519_sk_copy_public()
101 struct sshkey *key) in ssh_ed25519_sk_deserialize_public()
114 struct sshkey *key) in ssh_ed25519_sk_deserialize_private()
126 ssh_ed25519_sk_verify(const struct sshkey *key, in ssh_ed25519_sk_verify()
H A Dmonitor_wrap.h37 struct sshkey;
46 int mm_sshkey_sign(struct ssh *, struct sshkey *, u_char **, size_t *,
53 int mm_key_allowed(enum mm_keytype, const char *, const char *, struct sshkey *,
55 int mm_user_key_allowed(struct ssh *ssh, struct passwd *, struct sshkey *, int,
58 const char *, struct sshkey *);
59 int mm_sshkey_verify(const struct sshkey *, const u_char *, size_t,
H A Dhostfile.h30 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 */
H A Dssh-dss.c49 ssh_dss_size(const struct sshkey *key) in ssh_dss_size()
60 ssh_dss_alloc(struct sshkey *k) in ssh_dss_alloc()
68 ssh_dss_cleanup(struct sshkey *k) in ssh_dss_cleanup()
75 ssh_dss_equal(const struct sshkey *a, const struct sshkey *b) in ssh_dss_equal()
103 ssh_dss_serialize_public(const struct sshkey *key, struct sshbuf *b, in ssh_dss_serialize_public()
126 ssh_dss_serialize_private(const struct sshkey *key, struct sshbuf *b, in ssh_dss_serialize_private()
144 ssh_dss_generate(struct sshkey *k, int bits) in ssh_dss_generate()
162 ssh_dss_copy_public(const struct sshkey *from, struct sshkey *to) in ssh_dss_copy_public()
200 struct sshkey *key) in ssh_dss_deserialize_public()
237 struct sshkey *key) in ssh_dss_deserialize_private()
[all …]
H A Dssh-xmss.c41 ssh_xmss_cleanup(struct sshkey *k) in ssh_xmss_cleanup()
55 ssh_xmss_equal(const struct sshkey *a, const struct sshkey *b) in ssh_xmss_equal()
67 ssh_xmss_serialize_public(const struct sshkey *key, struct sshbuf *b, in ssh_xmss_serialize_public()
85 ssh_xmss_serialize_private(const struct sshkey *key, struct sshbuf *b, in ssh_xmss_serialize_private()
105 ssh_xmss_copy_public(const struct sshkey *from, struct sshkey *to) in ssh_xmss_copy_public()
131 struct sshkey *key) in ssh_xmss_deserialize_public()
163 struct sshkey *key) in ssh_xmss_deserialize_private()
199 ssh_xmss_sign(struct sshkey *key, in ssh_xmss_sign()
275 ssh_xmss_verify(const struct sshkey *key, in ssh_xmss_verify()
H A Dssh-sk.h22 struct sshkey;
35 struct sshkey *key;
53 struct sshkey **keyp, struct sshbuf *attest);
61 int sshsk_sign(const char *provider_path, struct sshkey *key,
H A Dsshsig.c166 sshsig_wrap_sign(struct sshkey *key, const char *hashalg, in sshsig_wrap_sign()
304 struct sshkey **sign_keyp, struct sshkey_sig_details **sig_details) in sshsig_wrap_verify()
308 struct sshkey *key = NULL; in sshsig_wrap_verify()
445 sshsig_signb(struct sshkey *key, const char *hashalg, in sshsig_signb()
473 const char *expect_namespace, struct sshkey **sign_keyp, in sshsig_verifyb()
573 sshsig_sign_fd(struct sshkey *key, const char *hashalg, in sshsig_sign_fd()
601 const char *expect_namespace, struct sshkey **sign_keyp, in sshsig_verify_fd()
734 const char *required_principal, char **principalsp, struct sshkey **keyp, in parse_principals_key_and_options()
740 struct sshkey *key = NULL; in parse_principals_key_and_options()
836 char **principalsp, const struct sshkey *cert, uint64_t verify_time) in cert_filter_principals()
[all …]
H A Dauthfd.c238 deserialise_identity2(struct sshbuf *ids, struct sshkey **keyp, char **commentp) in deserialise_identity2()
360 ssh_agent_has_key(int sock, const struct sshkey *key) in ssh_agent_has_key()
391 agent_encode_alg(const struct sshkey *key, const char *alg) in agent_encode_alg()
406 ssh_agent_sign(int sock, const struct sshkey *key, in ssh_agent_sign()
512 int cert_only, struct sshkey **certs, size_t ncerts) in encode_constraints()
589 ssh_add_identity_constrained(int sock, struct sshkey *key, in ssh_add_identity_constrained()
650 ssh_remove_identity(int sock, const struct sshkey *key) in ssh_remove_identity()
690 int cert_only, struct sshkey **certs, size_t ncerts) in ssh_update_card()
755 ssh_agent_bind_hostkey(int sock, const struct sshkey *key, in ssh_agent_bind_hostkey()
H A Ddns.h57 struct sshkey *, int *);
58 int export_dns_rr(const char *, struct sshkey *, FILE *, int, int);
H A Dssh-agent.c114 struct sshkey *key;
135 struct sshkey *key;
352 match_key_hop(const char *tag, const struct sshkey *key, in match_key_hop()
407 permitted_by_dest_constraints(const struct sshkey *fromkey, in permitted_by_dest_constraints()
408 const struct sshkey *tokey, Identity *id, const char *user, in permitted_by_dest_constraints()
469 const struct sshkey *fromkey = NULL; in identity_permitted()
570 lookup_identity(struct sshkey *key) in lookup_identity()
658 agent_decode_alg(struct sshkey *key, u_int flags) in agent_decode_alg()
682 parse_userauth_request(struct sshbuf *msg, const struct sshkey *expected_key, in parse_userauth_request()
683 char **userp, struct sshbuf **sess_idp, struct sshkey **hostkeyp) in parse_userauth_request()
[all …]
H A Dkrl.c89 struct sshkey *ca_key;
219 revoked_certs_for_ca_key(struct ssh_krl *krl, const struct sshkey *ca_key, in revoked_certs_for_ca_key()
327 ssh_krl_revoke_cert_by_serial(struct ssh_krl *krl, const struct sshkey *ca_key, in ssh_krl_revoke_cert_by_serial()
335 const struct sshkey *ca_key, u_int64_t lo, u_int64_t hi) in ssh_krl_revoke_cert_by_serial_range()
348 ssh_krl_revoke_cert_by_key_id(struct ssh_krl *krl, const struct sshkey *ca_key, in ssh_krl_revoke_cert_by_key_id()
374 plain_key_blob(const struct sshkey *key, u_char **blob, size_t *blen) in plain_key_blob()
376 struct sshkey *kcopy; in plain_key_blob()
411 ssh_krl_revoke_key_explicit(struct ssh_krl *krl, const struct sshkey *key) in ssh_krl_revoke_key_explicit()
459 ssh_krl_revoke_key(struct ssh_krl *krl, const struct sshkey *key) in ssh_krl_revoke_key()
882 struct sshkey *ca_key = NULL; in parse_revoked_certs()
[all …]
H A Dsshconnect.c71 struct sshkey *previous_host_key = NULL;
82 static int show_other_keys(struct hostkeys *, struct sshkey *);
83 static void warn_changed_key(struct sshkey *);
726 const struct sshkey *key;
762 hostkey_accepted_by_hostkeyalgs(const struct sshkey *key) in hostkey_accepted_by_hostkeyalgs()
831 hostkeys_find_by_key(const char *host, const char *ip, const struct sshkey *key, in hostkeys_find_by_key()
874 const struct sshkey *key, in other_hostkeys_message()
910 const struct sshkey *host_key, const char *hostfile_hostname) in load_hostkeys_command()
995 struct sshkey *host_key, int readonly, int clobber_port, in check_host_key()
1001 struct sshkey *raw_key = NULL; in check_host_key()
[all …]
H A Dauth-options.h24 struct sshkey;
99 struct sshauthopt *sshauthopt_from_cert(struct sshkey *k);
/netbsd-src/crypto/external/bsd/netpgp/dist/
H A Dtst182 sshkey=$(/usr/bin/ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key.pub | awk '{ gsub(":", "", $2); print …
183 echo "host sshkey \"$sshkey\" = netpgpkey \"$netpgpkey\""
184 [ $sshkey = $netpgpkey ] && good=33
188 sshkey=$(/usr/bin/ssh-keygen -l -f /home/agc/.ssh/id_rsa.pub | awk '{ gsub(":", "", $2); print $2 }…
189 echo "user sshkey \"$sshkey\" = netpgpkey \"$netpgpkey\""
190 [ $sshkey = $netpgpkey ] && good=34

12