Home
last modified time | relevance | path

Searched refs:sshbuf (Results 1 – 25 of 125) sorted by relevance

12345

/external/openssh/
Dsshbuf.h40 struct sshbuf { struct
50 struct sshbuf *parent; /* If child, pointer to parent */ argument
57 struct sshbuf *sshbuf_new(void);
63 struct sshbuf *sshbuf_from(const void *blob, size_t len);
71 struct sshbuf *sshbuf_fromb(struct sshbuf *buf);
80 int sshbuf_froms(struct sshbuf *buf, struct sshbuf **bufp);
85 void sshbuf_free(struct sshbuf *buf);
90 void sshbuf_reset(struct sshbuf *buf);
95 size_t sshbuf_max_size(const struct sshbuf *buf);
101 int sshbuf_set_max_size(struct sshbuf *buf, size_t max_size);
[all …]
Dkex.h148 struct sshbuf *my;
149 struct sshbuf *peer;
150 struct sshbuf *client_version;
151 struct sshbuf *server_version;
172 struct sshbuf *client_pub;
188 int kex_buf2prop(struct sshbuf *, int *, char ***);
189 int kex_prop2buf(struct sshbuf *, char *proposal[PROPOSAL_MAX]);
197 int kex_derive_keys(struct ssh *, u_char *, u_int, const struct sshbuf *);
207 int kex_dh_enc(struct kex *, const struct sshbuf *, struct sshbuf **,
208 struct sshbuf **);
[all …]
Dsshsig.h20 struct sshbuf;
36 const char *sk_provider, const struct sshbuf *message,
37 const char *sig_namespace, struct sshbuf **out,
45 int sshsig_verifyb(struct sshbuf *signature,
46 const struct sshbuf *message, const char *sig_namespace,
58 struct sshbuf **out, sshsig_signer *signer, void *signer_ctx);
65 int sshsig_verify_fd(struct sshbuf *signature, int fd,
74 int sshsig_armor(const struct sshbuf *blob, struct sshbuf **out);
79 int sshsig_dearmor(struct sshbuf *sig, struct sshbuf **out);
96 int sshsig_get_pubkey(struct sshbuf *signature, struct sshkey **pubkey);
Dsshbuf-getput-basic.c35 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 …]
Dsshbuf.c32 sshbuf_check_sanity(const struct sshbuf *buf) in sshbuf_check_sanity()
53 sshbuf_maybe_pack(struct sshbuf *buf, int force) in sshbuf_maybe_pack()
68 struct sshbuf *
71 struct sshbuf *ret; in sshbuf_new()
87 struct sshbuf *
90 struct sshbuf *ret; in sshbuf_from()
105 sshbuf_set_parent(struct sshbuf *child, struct sshbuf *parent) in sshbuf_set_parent()
117 struct sshbuf *
118 sshbuf_fromb(struct sshbuf *buf) in sshbuf_fromb()
120 struct sshbuf *ret; in sshbuf_fromb()
[all …]
Dkexecdh.c46 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 …]
Dsshkey.h54 struct sshbuf;
109 struct sshbuf *certblob; /* Kept around for use on wire */
116 struct sshbuf *critical;
117 struct sshbuf *extensions;
145 struct sshbuf *sk_key_handle;
146 struct sshbuf *sk_reserved;
176 int sshkey_format_text(const struct sshkey *, struct sshbuf *);
225 int sshkey_fromb(struct sshbuf *, struct sshkey **);
226 int sshkey_froms(struct sshbuf *, struct sshkey **);
229 int sshkey_putb(const struct sshkey *, struct sshbuf *);
[all …]
Dkexgen.c50 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 …]
Dkexc25519.c60 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()
Dsshkey-xmss.h38 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 *);
Dmonitor.c108 extern struct sshbuf *loginmsg;
112 static struct sshbuf *child_state;
116 int mm_answer_moduli(struct ssh *, int, struct sshbuf *);
117 int mm_answer_sign(struct ssh *, int, struct sshbuf *);
118 int mm_answer_pwnamallow(struct ssh *, int, struct sshbuf *);
119 int mm_answer_auth2_read_banner(struct ssh *, int, struct sshbuf *);
120 int mm_answer_authserv(struct ssh *, int, struct sshbuf *);
121 int mm_answer_authpassword(struct ssh *, int, struct sshbuf *);
122 int mm_answer_bsdauthquery(struct ssh *, int, struct sshbuf *);
123 int mm_answer_bsdauthrespond(struct ssh *, int, struct sshbuf *);
[all …]
Dkexdh.c72 kex_dh_compute_key(struct kex *kex, BIGNUM *dh_pub, struct sshbuf *out) in kex_dh_compute_key()
117 struct sshbuf *buf = NULL; in kex_dh_keypair()
142 kex_dh_enc(struct kex *kex, const struct sshbuf *client_blob, in kex_dh_enc()
143 struct sshbuf **server_blobp, struct sshbuf **shared_secretp) in kex_dh_enc()
146 struct sshbuf *server_blob = NULL; in kex_dh_enc()
174 kex_dh_dec(struct kex *kex, const struct sshbuf *dh_blob, in kex_dh_dec()
175 struct sshbuf **shared_secretp) in kex_dh_dec()
177 struct sshbuf *buf = NULL; in kex_dh_dec()
Dsshsig.c48 sshsig_armor(const struct sshbuf *blob, struct sshbuf **out) in sshsig_armor()
50 struct sshbuf *buf = NULL; in sshsig_armor()
89 sshsig_dearmor(struct sshbuf *sig, struct sshbuf **out) in sshsig_dearmor()
93 struct sshbuf *buf = NULL; in sshsig_dearmor()
94 struct sshbuf *sbuf = NULL; in sshsig_dearmor()
154 const char *sk_provider, const struct sshbuf *h_message, in sshsig_wrap_sign()
155 const char *sig_namespace, struct sshbuf **out, in sshsig_wrap_sign()
161 struct sshbuf *blob = NULL; in sshsig_wrap_sign()
162 struct sshbuf *tosign = NULL; in sshsig_wrap_sign()
226 sshsig_parse_preamble(struct sshbuf *buf) in sshsig_parse_preamble()
[all …]
Dkexsntrup4591761x25519.c43 struct sshbuf *buf = NULL; in kex_kem_sntrup4591761x25519_keypair()
72 const struct sshbuf *client_blob, struct sshbuf **server_blobp, in kex_kem_sntrup4591761x25519_enc()
73 struct sshbuf **shared_secretp) in kex_kem_sntrup4591761x25519_enc()
75 struct sshbuf *server_blob = NULL; in kex_kem_sntrup4591761x25519_enc()
76 struct sshbuf *buf = NULL; in kex_kem_sntrup4591761x25519_enc()
159 const struct sshbuf *server_blob, struct sshbuf **shared_secretp) in kex_kem_sntrup4591761x25519_dec()
161 struct sshbuf *buf = NULL; in kex_kem_sntrup4591761x25519_dec()
Dkexgex.c49 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()
Dsshbuf-misc.c66 sshbuf_dump(struct sshbuf *buf, FILE *f) in sshbuf_dump()
73 sshbuf_dtob16(struct sshbuf *buf) in sshbuf_dtob16()
93 sshbuf_dtob64(const struct sshbuf *d, struct sshbuf *b64, int wrap) in sshbuf_dtob64()
131 sshbuf_dtob64_string(const struct sshbuf *buf, int wrap) in sshbuf_dtob64_string()
133 struct sshbuf *tmp; in sshbuf_dtob64_string()
148 sshbuf_b64tod(struct sshbuf *buf, const char *b64) in sshbuf_b64tod()
171 sshbuf_dup_string(struct sshbuf *buf) in sshbuf_dup_string()
194 sshbuf_cmp(const struct sshbuf *b, size_t offset, in sshbuf_cmp()
209 sshbuf_find(const struct sshbuf *b, size_t start_offset, in sshbuf_find()
Dssh-sk-helper.c53 static struct sshbuf *reply_error(int r, char *fmt, ...)
56 static struct sshbuf *
61 struct sshbuf *resp; in reply_error()
91 static struct sshbuf *
92 process_sign(struct sshbuf *req) in process_sign()
95 struct sshbuf *resp, *kbuf; in process_sign()
144 static struct sshbuf *
145 process_enroll(struct sshbuf *req) in process_enroll()
151 struct sshbuf *challenge, *attest, *kbuf, *resp; in process_enroll()
208 static struct sshbuf *
[all …]
Dmonitor_wrap.c81 extern struct sshbuf *loginmsg;
87 struct sshbuf *log_msg; in mm_log_handler()
122 mm_request_send(int sock, enum monitor_reqtype type, struct sshbuf *m) in mm_request_send()
140 mm_request_receive(int sock, struct sshbuf *m) in mm_request_receive()
164 mm_request_receive_expect(int sock, enum monitor_reqtype type, struct sshbuf *m) in mm_request_receive_expect()
186 struct sshbuf *m; in mm_choose_dh()
222 struct sshbuf *m; in mm_sshkey_sign()
249 struct sshbuf *m; in mm_getpwnamallow()
342 struct sshbuf *m; in mm_auth2_read_banner()
372 struct sshbuf *m; in mm_inform_authserv()
[all …]
Dmux.c77 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 …]
Dsshbuf-getput-crypto.c36 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()
/external/openssh/regress/unittests/sshbuf/
DMakefile16 SRCS+=sshbuf-getput-basic.c sshbuf-getput-crypto.c sshbuf-misc.c sshbuf.c
17 SRCS+=sshbuf-io.c atomicio.c misc.c xmalloc.c log.c fatal.c ssherr.c cleanup.c
/external/openssh/regress/unittests/conversion/
DMakefile7 SRCS+=sshbuf-getput-basic.c sshbuf-getput-crypto.c sshbuf-misc.c sshbuf.c
/external/openssh/regress/unittests/match/
DMakefile7 SRCS+=sshbuf-getput-basic.c sshbuf-getput-crypto.c sshbuf-misc.c sshbuf.c
/external/openssh/regress/unittests/hostkeys/
DMakefile7 SRCS+=sshbuf-getput-basic.c sshbuf-getput-crypto.c sshbuf-misc.c sshbuf.c
8 SRCS+=sshbuf-io.c atomicio.c sshkey.c authfile.c cipher.c log.c ssh-rsa.c
/external/openssh/regress/unittests/sshkey/
DMakefile7 SRCS+=sshbuf-getput-basic.c sshbuf-getput-crypto.c sshbuf-misc.c sshbuf.c
8 SRCS+=sshbuf-io.c atomicio.c sshkey.c authfile.c cipher.c log.c ssh-rsa.c

12345