| /freebsd-13.1/crypto/openssh/ |
| H A D | sshkey.h | 120 struct sshkey *signature_key; 125 struct sshkey { struct 167 struct sshkey *sshkey_new(int); argument 168 void sshkey_free(struct sshkey *); 170 const struct sshkey *); 171 int sshkey_equal(const struct sshkey *, const struct sshkey *); 184 int sshkey_from_private(const struct sshkey *, struct sshkey **); 196 int sshkey_drop_cert(struct sshkey *); 197 int sshkey_cert_copy(const struct sshkey *, struct sshkey *); 208 int sshkey_certify(struct sshkey *, struct sshkey *, [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 *, u_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 | 46 struct sshkey; 87 struct sshkey **prev_keys; 91 struct sshkey *auth_method_key; 134 const char *, char *, struct sshkey *); 137 int auth2_key_already_used(Authctxt *, const struct sshkey *); 144 void auth2_record_key(Authctxt *, int, const struct sshkey *); 195 int auth_key_is_revoked(struct sshkey *); 204 struct sshkey *get_hostkey_by_index(int); 205 struct sshkey *get_hostkey_public_by_index(int, struct ssh *); 208 int get_hostkey_index(struct sshkey *, int, struct ssh *); [all …]
|
| H A D | krl.h | 40 struct sshkey; 49 const struct sshkey *ca_key, u_int64_t serial); 51 const struct sshkey *ca_key, u_int64_t lo, u_int64_t hi); 53 const struct sshkey *ca_key, const char *key_id); 54 int ssh_krl_revoke_key_explicit(struct ssh_krl *krl, const struct sshkey *key); 57 int ssh_krl_revoke_key(struct ssh_krl *krl, const struct sshkey *key); 59 struct sshkey **sign_keys, u_int nsign_keys); 61 const struct sshkey **sign_ca_keys, size_t nsign_ca_keys); 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 | 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 | 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() 301 struct sshkey *pub = NULL; in sshkey_load_cert() 320 struct sshkey **keyp) in sshkey_load_private_cert() 322 struct sshkey *key = NULL, *cert = NULL; in sshkey_load_private_cert() 383 struct sshkey *pub = NULL; in sshkey_in_file() [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 *, 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 | 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 | kex.h | 156 int (*verify_host_key)(struct sshkey *, struct ssh *); 157 struct sshkey *(*load_host_public_key)(int, int, struct ssh *); 158 struct sshkey *(*load_host_private_key)(int, int, struct ssh *); 159 int (*host_key_index)(struct sshkey *, int, struct ssh *); 160 int (*sign)(struct ssh *, struct sshkey *, struct sshkey *, 190 int kex_load_hostkey(struct ssh *, struct sshkey **, struct sshkey **); 191 int kex_verify_host_key(struct ssh *, struct sshkey *);
|
| H A D | authfd.h | 22 struct sshkey **keys; 33 int ssh_add_identity_constrained(int sock, struct sshkey *key, 36 int ssh_agent_has_key(int sock, const struct sshkey *key); 37 int ssh_remove_identity(int sock, const struct sshkey *key); 42 int ssh_agent_sign(int sock, const struct sshkey *key,
|
| H A D | ssh-sk.h | 22 struct sshkey; 47 struct sshkey **keyp, struct sshbuf *attest); 55 int sshsk_sign(const char *provider_path, struct sshkey *key, 66 const char *pin, struct sshkey ***keysp, size_t *nkeysp);
|
| H A D | ssh_api.c | 45 int _ssh_verify_host_key(struct sshkey *, struct ssh *); 46 struct sshkey *_ssh_host_public_key(int, int, struct ssh *); 47 struct sshkey *_ssh_host_private_key(int, int, struct ssh *); 48 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, in mm_sshkey_sign() 186 ssh_add_hostkey(struct ssh *ssh, struct sshkey *key) in ssh_add_hostkey() 188 struct sshkey *pubkey = NULL; in ssh_add_hostkey() 221 int (*cb)(struct sshkey *, struct ssh *)) in ssh_set_verify_host_key_callback() argument 466 struct sshkey * [all …]
|
| H A D | sshconnect.h | 29 struct sshkey **keys; 75 int verify_host_key(char *, struct sockaddr *, struct sshkey *, 89 void maybe_add_key_to_agent(const char *, struct sshkey *, 94 const struct sshkey *, const char *);
|
| H A D | ssh-pkcs11.h | 27 int pkcs11_add_provider(char *, char *, struct sshkey ***, char ***); 30 struct sshkey * 33 struct sshkey *
|
| H A D | sshkey.c | 543 struct sshkey * 546 struct sshkey *k; in sshkey_new() 704 sshkey_equal_public(const struct sshkey *a, const struct sshkey *b) in sshkey_equal_public() 787 sshkey_equal(const struct sshkey *a, const struct sshkey *b) in sshkey_equal() 1312 struct sshkey *k; in sshkey_read() 1716 struct sshkey *k; in sshkey_generate() 1765 sshkey_cert_copy(const struct sshkey *from_key, struct sshkey *to_key) in sshkey_cert_copy() 1835 sshkey_from_private(const struct sshkey *k, struct sshkey **pkp) in sshkey_from_private() 1837 struct sshkey *n = NULL; in sshkey_from_private() 2890 sshkey_certify_custom(struct sshkey *k, struct sshkey *ca, const char *alg, in sshkey_certify_custom() [all …]
|
| H A D | sshsig.c | 153 sshsig_wrap_sign(struct sshkey *key, const char *hashalg, in sshsig_wrap_sign() 295 struct sshkey *key = NULL; in sshsig_wrap_verify() 432 sshsig_signb(struct sshkey *key, const char *hashalg, in sshsig_signb() 460 const char *expect_namespace, struct sshkey **sign_keyp, in sshsig_verifyb() 559 sshsig_sign_fd(struct sshkey *key, const char *hashalg, in sshsig_sign_fd() 587 const char *expect_namespace, struct sshkey **sign_keyp, in sshsig_verify_fd() 726 struct sshkey *key = NULL; in parse_principals_key_and_options() 817 const struct sshkey *sign_key, const char *principal, in check_allowed_keys_line() 820 struct sshkey *found_key = NULL; in check_allowed_keys_line() 986 struct sshkey *found_key = NULL; in get_matching_principals_from_line() [all …]
|
| /freebsd-13.1/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 | 88 rsa_n(struct sshkey *k) in rsa_n() 99 rsa_e(struct sshkey *k) in rsa_e() 110 rsa_p(struct sshkey *k) in rsa_p() 121 rsa_q(struct sshkey *k) in rsa_q() 132 dsa_g(struct sshkey *k) in dsa_g() 143 dsa_pub_key(struct sshkey *k) in dsa_pub_key() 154 dsa_priv_key(struct sshkey *k) in dsa_priv_key()
|
| H A D | test_sshkey.c | 56 build_cert(struct sshbuf *b, struct sshkey *k, const char *type, in build_cert() 57 struct sshkey *sign_key, struct sshkey *ca_key, in build_cert() 118 signature_test(struct sshkey *k, struct sshkey *bad, const char *sig_alg, in signature_test() 152 signature_tests(struct sshkey *k, struct sshkey *bad, const char *sig_alg) in signature_tests() 168 static struct sshkey * 172 struct sshkey *ret; in get_private() 183 struct sshkey *k1, *k2, *k3, *kf; in sshkey_tests() 185 struct sshkey *k4, *kr, *kd; in sshkey_tests() 187 struct sshkey *ke; in sshkey_tests()
|
| /freebsd-13.1/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 | ssh-sk-null.cc | 31 struct sshkey **keyp, struct sshbuf *attest) in sshsk_enroll() 37 sshsk_sign(const char *provider_path, struct sshkey *key, in sshsk_sign() 46 const char *pin, struct sshkey ***keysp, size_t *nkeysp) in sshsk_load_resident()
|
| 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()
|
| H A D | kex_fuzz.cc | 32 struct sshkey **privkeys, **pubkeys; 124 store_key(struct shared_state *st, struct sshkey *pubkey, in store_key() 125 struct sshkey *privkey) in store_key() 133 st->pubkeys = (struct sshkey **)xrecallocarray(st->pubkeys, in store_key() 135 st->privkeys = (struct sshkey **)xrecallocarray(st->privkeys, in store_key() 157 static struct sshkey * 166 static struct sshkey * 180 struct sshkey *privkey = NULL, *pubkey = NULL; in do_kex_with_key() 259 struct sshkey *privkey = NULL, *pubkey = NULL; in prepare_key() 309 struct sshkey *privkey = NULL, *pubkey = NULL;
|