| /freebsd-14.2/crypto/openssh/ |
| H A D | sshkey.h | 125 struct sshkey { struct 171 int (*equal)(const struct sshkey *, const struct sshkey *); 175 struct sshkey *); 179 struct sshkey *); 181 int (*copy_public)(const struct sshkey *, struct sshkey *); 206 int sshkey_equal(const struct sshkey *, const struct sshkey *); 219 int sshkey_from_private(const struct sshkey *, struct sshkey **); 236 int sshkey_cert_copy(const struct sshkey *, struct sshkey *); 247 int sshkey_certify(struct sshkey *, struct sshkey *, 253 int sshkey_certify_custom(struct sshkey *, struct sshkey *, const char *, [all …]
|
| H A D | sshkey-xmss.h | 33 size_t sshkey_xmss_pklen(const struct sshkey *); 34 size_t sshkey_xmss_sklen(const struct sshkey *); 35 int sshkey_xmss_init(struct sshkey *, const char *); 36 void sshkey_xmss_free_state(struct sshkey *); 37 int sshkey_xmss_generate_private_key(struct sshkey *, int); 47 int sshkey_xmss_siglen(const struct sshkey *, size_t *); 48 void *sshkey_xmss_params(const struct sshkey *); 49 void *sshkey_xmss_bds_state(const struct sshkey *); 50 int sshkey_xmss_get_state(const struct sshkey *, int); 51 int sshkey_xmss_enable_maxsign(struct sshkey *, u_int32_t); [all …]
|
| H A D | authfile.h | 31 struct sshkey; 36 int sshkey_save_private(struct sshkey *, const char *, 38 int sshkey_load_cert(const char *, struct sshkey **); 39 int sshkey_load_public(const char *, struct sshkey **, char **); 40 int sshkey_load_private(const char *, const char *, struct sshkey **, char **); 42 struct sshkey **); 44 struct sshkey **, char **); 46 struct sshkey **keyp, char **commentp); 48 int sshkey_in_file(struct sshkey *, const char *, int, int); 49 int sshkey_check_revoked(struct sshkey *key, const char *revoked_keys_file); [all …]
|
| H A D | auth.h | 47 struct sshkey; 89 struct sshkey **prev_keys; 93 struct sshkey *auth_method_key; 137 const char *, char *, struct sshkey *); 140 int auth2_key_already_used(Authctxt *, const struct sshkey *); 147 void auth2_record_key(Authctxt *, int, const struct sshkey *); 196 int auth_key_is_revoked(struct sshkey *); 205 struct sshkey *get_hostkey_by_index(int); 206 struct sshkey *get_hostkey_public_by_index(int, struct ssh *); 209 int get_hostkey_index(struct sshkey *, int, struct ssh *); [all …]
|
| H A D | 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); 104 int sshsig_find_principals(const char *path, const struct sshkey *sign_key,
|
| H A D | krl.h | 42 struct sshkey; 51 const struct sshkey *ca_key, u_int64_t serial); 53 const struct sshkey *ca_key, u_int64_t lo, u_int64_t hi); 55 const struct sshkey *ca_key, const char *key_id); 56 int ssh_krl_revoke_key_explicit(struct ssh_krl *krl, const struct sshkey *key); 59 int ssh_krl_revoke_key(struct ssh_krl *krl, const struct sshkey *key); 62 int ssh_krl_check_key(struct ssh_krl *krl, const struct sshkey *key); 63 int ssh_krl_file_contains_key(const char *path, const struct sshkey *key);
|
| H A D | authfd.h | 20 struct sshkey; 25 struct sshkey **keys; 35 struct sshkey **keys; 50 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,
|
| H A D | ssh-pkcs11.h | 27 int pkcs11_add_provider(char *, char *, struct sshkey ***, char ***); 30 struct sshkey * 33 struct sshkey * 39 int pkcs11_make_cert(const struct sshkey *, 40 const struct sshkey *, struct sshkey **);
|
| H A D | authfile.c | 68 sshkey_save_private(struct sshkey *key, const char *filename, in sshkey_save_private() 119 struct sshkey **keyp, char **commentp) in sshkey_load_private_type() 145 struct sshkey **keyp, char **commentp) in sshkey_load_private() 153 struct sshkey **keyp, char **commentp) in sshkey_load_private_type_fd() 177 struct sshkey *pubkey = NULL; in sshkey_load_pubkey_from_private() 212 struct sshkey *k = NULL; in sshkey_try_load_public() 303 struct sshkey *pub = NULL; in sshkey_load_cert() 322 struct sshkey **keyp) in sshkey_load_private_cert() 324 struct sshkey *key = NULL, *cert = NULL; in sshkey_load_private_cert() 385 struct sshkey *pub = NULL; in sshkey_in_file() [all …]
|
| H A D | ssh-ed25519.c | 36 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 D | sshkey.c | 608 struct sshkey * 611 struct sshkey *k; in sshkey_new() 690 sshkey_sk_fields_equal(const struct sshkey *a, const struct sshkey *b) in sshkey_sk_fields_equal() 704 sshkey_equal_public(const struct sshkey *a, const struct sshkey *b) in sshkey_equal_public() 717 sshkey_equal(const struct sshkey *a, const struct sshkey *b) in sshkey_equal() 1177 struct sshkey *k; in sshkey_read() 1400 struct sshkey *k; in sshkey_generate() 1424 sshkey_cert_copy(const struct sshkey *from_key, struct sshkey *to_key) in sshkey_cert_copy() 1494 sshkey_copy_public_sk(const struct sshkey *from, struct sshkey *to) in sshkey_copy_public_sk() 1503 sshkey_from_private(const struct sshkey *k, struct sshkey **pkp) in sshkey_from_private() [all …]
|
| H A D | monitor_wrap.h | 39 struct sshkey; 48 int mm_sshkey_sign(struct ssh *, struct sshkey *, u_char **, size_t *, 55 int mm_key_allowed(enum mm_keytype, const char *, const char *, struct sshkey *, 57 int mm_user_key_allowed(struct ssh *ssh, struct passwd *, struct sshkey *, int, 60 const char *, struct sshkey *); 61 int mm_sshkey_verify(const struct sshkey *, const u_char *, size_t,
|
| H A D | hostfile.h | 29 struct sshkey *key; 45 HostStatus check_key_in_hostkeys(struct hostkeys *, struct sshkey *, 51 int hostfile_read_key(char **, u_int *, struct sshkey *); 53 const struct sshkey *, int); 56 const char *host, const char *ip, struct sshkey **keys, size_t nkeys, 101 struct sshkey *key; /* Key, if parsed ok and HKF_WANT_MATCH_HOST set */
|
| H A D | ssh-ed25519-sk.c | 42 ssh_ed25519_sk_cleanup(struct sshkey *k) in ssh_ed25519_sk_cleanup() 49 ssh_ed25519_sk_equal(const struct sshkey *a, const struct sshkey *b) in ssh_ed25519_sk_equal() 59 ssh_ed25519_sk_serialize_public(const struct sshkey *key, struct sshbuf *b, in ssh_ed25519_sk_serialize_public() 73 ssh_ed25519_sk_serialize_private(const struct sshkey *key, struct sshbuf *b, in ssh_ed25519_sk_serialize_private() 87 ssh_ed25519_sk_copy_public(const struct sshkey *from, struct sshkey *to) in ssh_ed25519_sk_copy_public() 100 struct sshkey *key) in ssh_ed25519_sk_deserialize_public() 113 struct sshkey *key) in ssh_ed25519_sk_deserialize_private() 125 ssh_ed25519_sk_verify(const struct sshkey *key, in ssh_ed25519_sk_verify()
|
| H A D | 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 *, 205 int kex_load_hostkey(struct ssh *, struct sshkey **, struct sshkey **); 206 int kex_verify_host_key(struct ssh *, struct sshkey *);
|
| H A D | sshkey-xmss.c | 79 int sshkey_xmss_init_bds_state(struct sshkey *); 81 void sshkey_xmss_free_bds(struct sshkey *); 95 sshkey_xmss_init(struct sshkey *key, const char *name) in sshkey_xmss_init() 138 sshkey_xmss_free_state(struct sshkey *key) in sshkey_xmss_free_state() 164 sshkey_xmss_init_bds_state(struct sshkey *key) in sshkey_xmss_init_bds_state() 190 sshkey_xmss_free_bds(struct sshkey *key) in sshkey_xmss_free_bds() 213 sshkey_xmss_params(const struct sshkey *key) in sshkey_xmss_params() 223 sshkey_xmss_bds_state(const struct sshkey *key) in sshkey_xmss_bds_state() 248 sshkey_xmss_pklen(const struct sshkey *key) in sshkey_xmss_pklen() 258 sshkey_xmss_sklen(const struct sshkey *key) in sshkey_xmss_sklen() [all …]
|
| H A D | ssh-ecdsa.c | 49 ssh_ecdsa_size(const struct sshkey *key) in ssh_ecdsa_size() 66 ssh_ecdsa_cleanup(struct sshkey *k) in ssh_ecdsa_cleanup() 73 ssh_ecdsa_equal(const struct sshkey *a, const struct sshkey *b) in ssh_ecdsa_equal() 95 ssh_ecdsa_serialize_public(const struct sshkey *key, struct sshbuf *b, in ssh_ecdsa_serialize_public() 111 ssh_ecdsa_serialize_private(const struct sshkey *key, struct sshbuf *b, in ssh_ecdsa_serialize_private() 127 ssh_ecdsa_generate(struct sshkey *k, int bits) in ssh_ecdsa_generate() 145 ssh_ecdsa_copy_public(const struct sshkey *from, struct sshkey *to) in ssh_ecdsa_copy_public() 158 struct sshkey *key) in ssh_ecdsa_deserialize_public() 201 struct sshkey *key) in ssh_ecdsa_deserialize_private() 226 ssh_ecdsa_sign(struct sshkey *key, in ssh_ecdsa_sign() [all …]
|
| H A D | ssh-dss.c | 51 ssh_dss_size(const struct sshkey *key) in ssh_dss_size() 62 ssh_dss_alloc(struct sshkey *k) in ssh_dss_alloc() 70 ssh_dss_cleanup(struct sshkey *k) in ssh_dss_cleanup() 77 ssh_dss_equal(const struct sshkey *a, const struct sshkey *b) in ssh_dss_equal() 105 ssh_dss_serialize_public(const struct sshkey *key, struct sshbuf *b, in ssh_dss_serialize_public() 146 ssh_dss_generate(struct sshkey *k, int bits) in ssh_dss_generate() 164 ssh_dss_copy_public(const struct sshkey *from, struct sshkey *to) in ssh_dss_copy_public() 202 struct sshkey *key) in ssh_dss_deserialize_public() 239 struct sshkey *key) in ssh_dss_deserialize_private() 259 ssh_dss_sign(struct sshkey *key, in ssh_dss_sign() [all …]
|
| H A D | 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,
|
| H A D | ssh-xmss.c | 43 ssh_xmss_cleanup(struct sshkey *k) in ssh_xmss_cleanup() 57 ssh_xmss_equal(const struct sshkey *a, const struct sshkey *b) in ssh_xmss_equal() 69 ssh_xmss_serialize_public(const struct sshkey *key, struct sshbuf *b, in ssh_xmss_serialize_public() 87 ssh_xmss_serialize_private(const struct sshkey *key, struct sshbuf *b, in ssh_xmss_serialize_private() 107 ssh_xmss_copy_public(const struct sshkey *from, struct sshkey *to) in ssh_xmss_copy_public() 133 struct sshkey *key) in ssh_xmss_deserialize_public() 165 struct sshkey *key) in ssh_xmss_deserialize_private() 201 ssh_xmss_sign(struct sshkey *key, in ssh_xmss_sign() 277 ssh_xmss_verify(const struct sshkey *key, in ssh_xmss_verify()
|
| H A D | ssh-ecdsa-sk.c | 55 ssh_ecdsa_sk_verify(const struct sshkey *key, in ssh_ecdsa_sk_verify() 68 ssh_ecdsa_sk_cleanup(struct sshkey *k) in ssh_ecdsa_sk_cleanup() 75 ssh_ecdsa_sk_equal(const struct sshkey *a, const struct sshkey *b) in ssh_ecdsa_sk_equal() 85 ssh_ecdsa_sk_serialize_public(const struct sshkey *key, struct sshbuf *b, in ssh_ecdsa_sk_serialize_public() 99 ssh_ecdsa_sk_serialize_private(const struct sshkey *key, struct sshbuf *b, in ssh_ecdsa_sk_serialize_private() 116 ssh_ecdsa_sk_copy_public(const struct sshkey *from, struct sshkey *to) in ssh_ecdsa_sk_copy_public() 129 struct sshkey *key) in ssh_ecdsa_sk_deserialize_public() 142 struct sshkey *key) in ssh_ecdsa_sk_deserialize_private() 234 ssh_ecdsa_sk_verify(const struct sshkey *key, in ssh_ecdsa_sk_verify()
|
| /freebsd-14.2/crypto/openssh/regress/unittests/sshkey/ |
| H A D | common.h | 18 const BIGNUM *rsa_n(struct sshkey *k); 19 const BIGNUM *rsa_e(struct sshkey *k); 20 const BIGNUM *rsa_p(struct sshkey *k); 21 const BIGNUM *rsa_q(struct sshkey *k); 22 const BIGNUM *dsa_g(struct sshkey *k); 23 const BIGNUM *dsa_pub_key(struct sshkey *k); 24 const BIGNUM *dsa_priv_key(struct sshkey *k);
|
| H A D | common.c | 87 rsa_n(struct sshkey *k) in rsa_n() 98 rsa_e(struct sshkey *k) in rsa_e() 109 rsa_p(struct sshkey *k) in rsa_p() 120 rsa_q(struct sshkey *k) in rsa_q() 131 dsa_g(struct sshkey *k) in dsa_g() 142 dsa_pub_key(struct sshkey *k) in dsa_pub_key() 153 dsa_priv_key(struct sshkey *k) in dsa_priv_key()
|
| /freebsd-14.2/crypto/openssh/regress/misc/fuzz-harness/ |
| H A D | sig_fuzz.cc | 15 static struct sshkey *generate_or_die(int type, unsigned bits) { in generate_or_die() 17 struct sshkey *ret; in generate_or_die() 28 static struct sshkey *rsa = generate_or_die(KEY_RSA, 2048); in LLVMFuzzerTestOneInput() 29 static struct sshkey *dsa = generate_or_die(KEY_DSA, 1024); in LLVMFuzzerTestOneInput() 30 static struct sshkey *ecdsa256 = generate_or_die(KEY_ECDSA, 256); in LLVMFuzzerTestOneInput() 31 static struct sshkey *ecdsa384 = generate_or_die(KEY_ECDSA, 384); in LLVMFuzzerTestOneInput() 32 static struct sshkey *ecdsa521 = generate_or_die(KEY_ECDSA, 521); in LLVMFuzzerTestOneInput() 35 static struct sshkey *ed25519 = generate_or_die(KEY_ED25519, 0); in LLVMFuzzerTestOneInput()
|
| H A D | agent_fuzz_helper.c | 21 static struct sshkey * 25 struct sshkey *pubkey; in pubkey_or_die() 39 static struct sshkey * 44 struct sshkey *privkey; in privkey_or_die() 63 struct sshkey *cert; in add_key() 180 pkcs11_make_cert(const struct sshkey *priv, in pkcs11_make_cert() 181 const struct sshkey *certpub, struct sshkey **certprivp) in pkcs11_make_cert()
|