/dflybsd-src/crypto/openssh/ |
H A D | sshbuf.h | 36 struct sshbuf; 42 struct sshbuf *sshbuf_new(void); 48 struct sshbuf *sshbuf_from(const void *blob, size_t len); 56 struct sshbuf *sshbuf_fromb(struct sshbuf *buf); 65 int sshbuf_froms(struct sshbuf *buf, struct sshbuf **bufp); 70 void sshbuf_free(struct sshbuf *buf); 75 void sshbuf_reset(struct sshbuf *buf); 80 size_t sshbuf_max_size(const struct sshbuf *buf); 86 int sshbuf_set_max_size(struct sshbuf *buf, size_t max_size); 91 size_t sshbuf_len(const struct sshbuf *buf); [all …]
|
H A D | kex.h | 139 struct sshbuf; 156 struct sshbuf *my; 157 struct sshbuf *peer; 158 struct sshbuf *client_version; 159 struct sshbuf *server_version; 160 struct sshbuf *session_id; 161 struct sshbuf *initial_sig; 183 struct sshbuf *client_pub; 207 int kex_buf2prop(struct sshbuf *, int *, char ***); 208 int kex_prop2buf(struct sshbuf *, char *proposal[PROPOSAL_MAX]); [all …]
|
H A D | sshkey.h | 56 struct sshbuf; 111 struct sshbuf *certblob; /* Kept around for use on wire */ 118 struct sshbuf *critical; 119 struct sshbuf *extensions; 147 struct sshbuf *sk_key_handle; 148 struct sshbuf *sk_reserved; 172 int (*serialize_public)(const struct sshkey *, struct sshbuf *, 174 int (*deserialize_public)(const char *, struct sshbuf *, 176 int (*serialize_private)(const struct sshkey *, struct sshbuf *, 178 int (*deserialize_private)(const char *, struct sshbuf *, [all …]
|
H A D | sshbuf-getput-basic.c | 35 sshbuf_get(struct sshbuf *buf, void *v, size_t len) in sshbuf_get() 48 sshbuf_get_u64(struct sshbuf *buf, u_int64_t *valp) in sshbuf_get_u64() 61 sshbuf_get_u32(struct sshbuf *buf, u_int32_t *valp) in sshbuf_get_u32() 74 sshbuf_get_u16(struct sshbuf *buf, u_int16_t *valp) in sshbuf_get_u16() 87 sshbuf_get_u8(struct sshbuf *buf, u_char *valp) in sshbuf_get_u8() 100 check_offset(const struct sshbuf *buf, int wr, size_t offset, size_t len) in check_offset() 114 check_roffset(const struct sshbuf *buf, size_t offset, size_t len, in check_roffset() 127 sshbuf_peek_u64(const struct sshbuf *buf, size_t offset, u_int64_t *valp) in sshbuf_peek_u64() 142 sshbuf_peek_u32(const struct sshbuf *buf, size_t offset, u_int32_t *valp) in sshbuf_peek_u32() 157 sshbuf_peek_u16(const struct sshbuf *buf, size_t offset, u_int16_t *valp) in sshbuf_peek_u16() [all …]
|
H A D | sshbuf.c | 42 struct sshbuf { struct 51 struct sshbuf *parent; /* If child, pointer to parent */ argument 55 sshbuf_check_sanity(const struct sshbuf *buf) in sshbuf_check_sanity() 76 sshbuf_maybe_pack(struct sshbuf *buf, int force) in sshbuf_maybe_pack() 91 struct sshbuf * 94 struct sshbuf *ret; in sshbuf_new() 110 struct sshbuf * 113 struct sshbuf *ret; in sshbuf_from() 128 sshbuf_set_parent(struct sshbuf *child, struct sshbuf *parent) in sshbuf_set_parent() 142 struct sshbuf * [all …]
|
H A D | sshsig.h | 21 struct sshbuf; 38 const char *sk_provider, const char *sk_pin, const struct sshbuf *message, 39 const char *sig_namespace, struct sshbuf **out, 47 int sshsig_verifyb(struct sshbuf *signature, 48 const struct sshbuf *message, const char *sig_namespace, 61 struct sshbuf **out, sshsig_signer *signer, void *signer_ctx); 68 int sshsig_verify_fd(struct sshbuf *signature, int fd, 77 int sshsig_armor(const struct sshbuf *blob, struct sshbuf **out); 82 int sshsig_dearmor(struct sshbuf *sig, struct sshbuf **out); 99 int sshsig_get_pubkey(struct sshbuf *signature, struct sshkey **pubkey);
|
H A D | kexecdh.c | 46 kex_ecdh_dec_key_group(struct kex *, const struct sshbuf *, EC_KEY *key, 47 const EC_GROUP *, struct sshbuf **); 55 struct sshbuf *buf = NULL; in kex_ecdh_keypair() 92 kex_ecdh_enc(struct kex *kex, const struct sshbuf *client_blob, in kex_ecdh_enc() 93 struct sshbuf **server_blobp, struct sshbuf **shared_secretp) in kex_ecdh_enc() 98 struct sshbuf *server_blob = NULL; in kex_ecdh_enc() 138 kex_ecdh_dec_key_group(struct kex *kex, const struct sshbuf *ec_blob, in kex_ecdh_dec_key_group() 139 EC_KEY *key, const EC_GROUP *group, struct sshbuf **shared_secretp) in kex_ecdh_dec_key_group() 141 struct sshbuf *buf = NULL; in kex_ecdh_dec_key_group() 200 kex_ecdh_dec(struct kex *kex, const struct sshbuf *server_blob, in kex_ecdh_dec() [all …]
|
H A D | kexsntrup761x25519.c | 45 struct sshbuf *buf = NULL; in kex_kem_sntrup761x25519_keypair() 74 const struct sshbuf *client_blob, struct sshbuf **server_blobp, in kex_kem_sntrup761x25519_enc() 75 struct sshbuf **shared_secretp) in kex_kem_sntrup761x25519_enc() 77 struct sshbuf *server_blob = NULL; in kex_kem_sntrup761x25519_enc() 78 struct sshbuf *buf = NULL; in kex_kem_sntrup761x25519_enc() 161 const struct sshbuf *server_blob, struct sshbuf **shared_secretp) in kex_kem_sntrup761x25519_dec() 163 struct sshbuf *buf = NULL; in kex_kem_sntrup761x25519_dec() 228 struct sshbuf; 239 const struct sshbuf *client_blob, struct sshbuf **server_blobp, in kex_kem_sntrup761x25519_enc() 240 struct sshbuf **shared_secretp) in kex_kem_sntrup761x25519_enc() [all …]
|
H A D | kexgen.c | 50 const struct sshbuf *client_version, in kex_gen_hash() 51 const struct sshbuf *server_version, in kex_gen_hash() 52 const struct sshbuf *client_kexinit, in kex_gen_hash() 53 const struct sshbuf *server_kexinit, in kex_gen_hash() 54 const struct sshbuf *server_host_key_blob, in kex_gen_hash() 55 const struct sshbuf *client_pub, in kex_gen_hash() 56 const struct sshbuf *server_pub, in kex_gen_hash() 57 const struct sshbuf *shared_secret, in kex_gen_hash() 60 struct sshbuf *b; in kex_gen_hash() 143 struct sshbuf *shared_secret = NULL; in input_kex_gen_reply() [all …]
|
H A D | kexc25519.c | 60 const u_char pub[CURVE25519_SIZE], struct sshbuf *out, int raw) in kexc25519_shared_key_ext() 86 const u_char pub[CURVE25519_SIZE], struct sshbuf *out) in kexc25519_shared_key() 94 struct sshbuf *buf = NULL; in kex_c25519_keypair() 114 kex_c25519_enc(struct kex *kex, const struct sshbuf *client_blob, in kex_c25519_enc() 115 struct sshbuf **server_blobp, struct sshbuf **shared_secretp) in kex_c25519_enc() 117 struct sshbuf *server_blob = NULL; in kex_c25519_enc() 118 struct sshbuf *buf = NULL; in kex_c25519_enc() 166 kex_c25519_dec(struct kex *kex, const struct sshbuf *server_blob, in kex_c25519_dec() 167 struct sshbuf **shared_secretp) in kex_c25519_dec() 169 struct sshbuf *buf = NULL; in kex_c25519_dec()
|
H A D | monitor.c | 107 extern struct sshbuf *loginmsg; 111 static struct sshbuf *child_state; 115 int mm_answer_moduli(struct ssh *, int, struct sshbuf *); 116 int mm_answer_sign(struct ssh *, int, struct sshbuf *); 117 int mm_answer_pwnamallow(struct ssh *, int, struct sshbuf *); 118 int mm_answer_auth2_read_banner(struct ssh *, int, struct sshbuf *); 119 int mm_answer_authserv(struct ssh *, int, struct sshbuf *); 120 int mm_answer_authpassword(struct ssh *, int, struct sshbuf *); 121 int mm_answer_bsdauthquery(struct ssh *, int, struct sshbuf *); 122 int mm_answer_bsdauthrespond(struct ssh *, int, struct sshbuf *); [all …]
|
H A D | sshbuf-misc.c | 67 sshbuf_dump(const struct sshbuf *buf, FILE *f) in sshbuf_dump() 74 sshbuf_dtob16(struct sshbuf *buf) in sshbuf_dtob16() 94 sshbuf_dtob64(const struct sshbuf *d, struct sshbuf *b64, int wrap) in sshbuf_dtob64() 132 sshbuf_dtob64_string(const struct sshbuf *buf, int wrap) in sshbuf_dtob64_string() 134 struct sshbuf *tmp; in sshbuf_dtob64_string() 149 sshbuf_b64tod(struct sshbuf *buf, const char *b64) in sshbuf_b64tod() 172 sshbuf_dtourlb64(const struct sshbuf *d, struct sshbuf *b64, int wrap) in sshbuf_dtourlb64() 176 struct sshbuf *b = NULL; in sshbuf_dtourlb64() 215 sshbuf_dup_string(struct sshbuf *buf) in sshbuf_dup_string() 238 sshbuf_cmp(const struct sshbuf *b, size_t offset, in sshbuf_cmp() [all …]
|
H A D | sshkey-xmss.h | 38 int sshkey_xmss_serialize_state(const struct sshkey *, struct sshbuf *); 39 int sshkey_xmss_serialize_state_opt(const struct sshkey *, struct sshbuf *, 41 int sshkey_xmss_serialize_pk_info(const struct sshkey *, struct sshbuf *, 43 int sshkey_xmss_deserialize_state(struct sshkey *, struct sshbuf *); 44 int sshkey_xmss_deserialize_state_opt(struct sshkey *, struct sshbuf *); 45 int sshkey_xmss_deserialize_pk_info(struct sshkey *, struct sshbuf *);
|
H A D | sshsig.c | 49 sshsig_armor(const struct sshbuf *blob, struct sshbuf **out) in sshsig_armor() 51 struct sshbuf *buf = NULL; in sshsig_armor() 88 sshsig_dearmor(struct sshbuf *sig, struct sshbuf **out) in sshsig_dearmor() 92 struct sshbuf *buf = NULL; in sshsig_dearmor() 93 struct sshbuf *sbuf = NULL; in sshsig_dearmor() 165 const char *sk_provider, const char *sk_pin, const struct sshbuf *h_message, in sshsig_wrap_sign() 166 const char *sig_namespace, struct sshbuf **out, in sshsig_wrap_sign() 172 struct sshbuf *blob = NULL; in sshsig_wrap_sign() 173 struct sshbuf *tosign = NULL; in sshsig_wrap_sign() 237 sshsig_parse_preamble(struct sshbuf *buf) in sshsig_parse_preamble() [all …]
|
H A D | authfd.c | 138 ssh_request_reply(int sock, struct sshbuf *request, struct sshbuf *reply) in ssh_request_reply() 182 ssh_request_reply_decode(int sock, struct sshbuf *request) in ssh_request_reply_decode() 184 struct sshbuf *reply; in ssh_request_reply_decode() 219 struct sshbuf *msg; in ssh_lock_agent() 236 deserialise_identity2(struct sshbuf *ids, struct sshkey **keyp, char **commentp) in deserialise_identity2() 266 struct sshbuf *msg; in ssh_fetch_identitylist() 408 struct sshbuf *msg; in ssh_agent_sign() 458 encode_dest_constraint_hop(struct sshbuf *m, in encode_dest_constraint_hop() 461 struct sshbuf *b; in encode_dest_constraint_hop() 486 encode_dest_constraint(struct sshbuf *m, const struct dest_constraint *dc) in encode_dest_constraint() [all …]
|
H A D | kexdh.c | 73 kex_dh_compute_key(struct kex *kex, BIGNUM *dh_pub, struct sshbuf *out) in kex_dh_compute_key() 118 struct sshbuf *buf = NULL; in kex_dh_keypair() 143 kex_dh_enc(struct kex *kex, const struct sshbuf *client_blob, in kex_dh_enc() 144 struct sshbuf **server_blobp, struct sshbuf **shared_secretp) in kex_dh_enc() 147 struct sshbuf *server_blob = NULL; in kex_dh_enc() 175 kex_dh_dec(struct kex *kex, const struct sshbuf *dh_blob, in kex_dh_dec() 176 struct sshbuf **shared_secretp) in kex_dh_dec() 178 struct sshbuf *buf = NULL; in kex_dh_dec()
|
H A D | mux.c | 77 extern struct sshbuf *command; 86 struct sshbuf *cmd; 155 Channel *, struct sshbuf *, struct sshbuf *); 157 Channel *, struct sshbuf *, struct sshbuf *); 159 Channel *, struct sshbuf *, struct sshbuf *); 161 Channel *, struct sshbuf *, struct sshbuf *); 163 Channel *, struct sshbuf *, struct sshbuf *); 165 Channel *, struct sshbuf *, struct sshbuf *); 167 Channel *, struct sshbuf *, struct sshbuf *); 169 Channel *, struct sshbuf *, struct sshbuf *); [all …]
|
H A D | monitor_wrap.c | 83 extern struct sshbuf *loginmsg; 89 struct sshbuf *log_msg; in mm_log_handler() 156 mm_request_send(int sock, enum monitor_reqtype type, struct sshbuf *m) in mm_request_send() 179 mm_request_receive(int sock, struct sshbuf *m) in mm_request_receive() 211 mm_request_receive_expect(int sock, enum monitor_reqtype type, struct sshbuf *m) in mm_request_receive_expect() 232 struct sshbuf *m; in mm_choose_dh() 268 struct sshbuf *m; in mm_sshkey_sign() 293 mm_decode_activate_server_options(struct ssh *ssh, struct sshbuf *m) in mm_decode_activate_server_options() 347 struct sshbuf *m; in mm_getpwnamallow() 409 struct sshbuf *m; in mm_auth2_read_banner() [all …]
|
H A D | kexgex.c | 49 const struct sshbuf *client_version, in kexgex_hash() 50 const struct sshbuf *server_version, in kexgex_hash() 51 const struct sshbuf *client_kexinit, in kexgex_hash() 52 const struct sshbuf *server_kexinit, in kexgex_hash() 53 const struct sshbuf *server_host_key_blob, in kexgex_hash() 62 struct sshbuf *b; in kexgex_hash()
|
H A D | monitor.h | 69 struct sshbuf; 91 void mm_request_send(int, enum monitor_reqtype, struct sshbuf *); 92 void mm_request_receive(int, struct sshbuf *); 93 void mm_request_receive_expect(int, enum monitor_reqtype, struct sshbuf *); 97 void mm_encode_server_options(struct sshbuf *);
|
H A D | sshbuf-getput-crypto.c | 36 sshbuf_get_bignum2(struct sshbuf *buf, BIGNUM **valp) in sshbuf_get_bignum2() 74 sshbuf_get_ec(struct sshbuf *buf, EC_POINT *v, const EC_GROUP *g) in sshbuf_get_ec() 95 sshbuf_get_eckey(struct sshbuf *buf, EC_KEY *v) in sshbuf_get_eckey() 131 sshbuf_put_bignum2(struct sshbuf *buf, const BIGNUM *v) in sshbuf_put_bignum2() 154 sshbuf_put_ec(struct sshbuf *buf, const EC_POINT *v, const EC_GROUP *g) in sshbuf_put_ec() 174 sshbuf_put_eckey(struct sshbuf *buf, const EC_KEY *v) in sshbuf_put_eckey()
|
H A D | packet.h | 42 struct sshbuf; 91 typedef int (ssh_packet_hook_fn)(struct ssh *, struct sshbuf *, 158 int ssh_packet_get_state(struct ssh *, struct sshbuf *); 159 int ssh_packet_set_state(struct ssh *, struct sshbuf *); 186 int sshpkt_putb(struct ssh *ssh, const struct sshbuf *b); 192 int sshpkt_put_stringb(struct ssh *ssh, const struct sshbuf *v); 204 int sshpkt_getb_froms(struct ssh *ssh, struct sshbuf **valp);
|
H A D | ssh-ecdsa-sk.c | 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() 128 ssh_ecdsa_sk_deserialize_public(const char *ktype, struct sshbuf *b, in ssh_ecdsa_sk_deserialize_public() 141 ssh_ecdsa_sk_deserialize_private(const char *ktype, struct sshbuf *b, in ssh_ecdsa_sk_deserialize_private() 171 const char *origin, const struct sshbuf *wrapper, in webauthn_check_prepare_hash() 172 uint8_t flags, const struct sshbuf *extensions, in webauthn_check_prepare_hash() 176 struct sshbuf *chall = NULL, *m = NULL; in webauthn_check_prepare_hash() 245 struct sshbuf *b = NULL, *sigbuf = NULL, *original_signed = NULL; in ssh_ecdsa_sk_verify() 246 struct sshbuf *webauthn_wrapper = NULL, *webauthn_exts = NULL; in ssh_ecdsa_sk_verify()
|
H A D | sshkey.c | 93 struct sshbuf *buf, enum sshkey_serialize_rep); 94 static int sshkey_from_blob_internal(struct sshbuf *buf, 731 sshkey_serialize_sk(const struct sshkey *key, struct sshbuf *b) in sshkey_serialize_sk() 742 to_blob_buf(const struct sshkey *key, struct sshbuf *b, int force_plain, in to_blob_buf() 774 sshkey_putb(const struct sshkey *key, struct sshbuf *b) in sshkey_putb() 780 sshkey_puts_opts(const struct sshkey *key, struct sshbuf *b, in sshkey_puts_opts() 783 struct sshbuf *tmp; in sshkey_puts_opts() 796 sshkey_puts(const struct sshkey *key, struct sshbuf *b) in sshkey_puts() 802 sshkey_putb_plain(const struct sshkey *key, struct sshbuf *b) in sshkey_putb_plain() 813 struct sshbuf *b = NULL; in to_blob() [all …]
|
H A D | msg.h | 28 struct sshbuf; 29 int ssh_msg_send(int, u_char, struct sshbuf *); 30 int ssh_msg_recv(int, struct sshbuf *);
|