Home
last modified time | relevance | path

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

123

/external/openssh/
Dsshbuf.h40 struct sshbuf { struct
50 struct sshbuf *parent; /* If child, pointer to parent */ argument
59 void sshbuf_init(struct sshbuf *buf);
66 struct sshbuf *sshbuf_new(void);
72 struct sshbuf *sshbuf_from(const void *blob, size_t len);
80 struct sshbuf *sshbuf_fromb(struct sshbuf *buf);
89 int sshbuf_froms(struct sshbuf *buf, struct sshbuf **bufp);
94 void sshbuf_free(struct sshbuf *buf);
99 void sshbuf_reset(struct sshbuf *buf);
104 size_t sshbuf_max_size(const struct sshbuf *buf);
[all …]
Dsshbuf.c32 sshbuf_check_sanity(const struct sshbuf *buf) in sshbuf_check_sanity()
54 sshbuf_maybe_pack(struct sshbuf *buf, int force) in sshbuf_maybe_pack()
69 struct sshbuf *
72 struct sshbuf *ret; in sshbuf_new()
88 struct sshbuf *
91 struct sshbuf *ret; in sshbuf_from()
106 sshbuf_set_parent(struct sshbuf *child, struct sshbuf *parent) in sshbuf_set_parent()
118 struct sshbuf *
119 sshbuf_fromb(struct sshbuf *buf) in sshbuf_fromb()
121 struct sshbuf *ret; in sshbuf_fromb()
[all …]
Dsshbuf-getput-basic.c32 sshbuf_get(struct sshbuf *buf, void *v, size_t len) in sshbuf_get()
45 sshbuf_get_u64(struct sshbuf *buf, u_int64_t *valp) in sshbuf_get_u64()
58 sshbuf_get_u32(struct sshbuf *buf, u_int32_t *valp) in sshbuf_get_u32()
71 sshbuf_get_u16(struct sshbuf *buf, u_int16_t *valp) in sshbuf_get_u16()
84 sshbuf_get_u8(struct sshbuf *buf, u_char *valp) in sshbuf_get_u8()
97 sshbuf_get_string(struct sshbuf *buf, u_char **valp, size_t *lenp) in sshbuf_get_string()
124 sshbuf_get_string_direct(struct sshbuf *buf, const u_char **valp, size_t *lenp) in sshbuf_get_string_direct()
150 sshbuf_peek_string_direct(const struct sshbuf *buf, const u_char **valp, in sshbuf_peek_string_direct()
181 sshbuf_get_cstring(struct sshbuf *buf, char **valp, size_t *lenp) in sshbuf_get_cstring()
216 sshbuf_get_stringb(struct sshbuf *buf, struct sshbuf *v) in sshbuf_get_stringb()
[all …]
Dsshkey.h52 struct sshbuf;
86 struct sshbuf *certblob; /* Kept around for use on wire */
93 struct sshbuf *critical;
94 struct sshbuf *extensions;
162 int sshkey_fromb(struct sshbuf *, struct sshkey **);
163 int sshkey_froms(struct sshbuf *, struct sshkey **);
166 int sshkey_putb(const struct sshkey *, struct sshbuf *);
167 int sshkey_puts(const struct sshkey *, struct sshbuf *);
169 int sshkey_putb_plain(const struct sshkey *, struct sshbuf *);
181 int sshkey_private_serialize(const struct sshkey *key, struct sshbuf *buf);
[all …]
Dsshbuf-getput-crypto.c35 sshbuf_get_bignum2(struct sshbuf *buf, BIGNUM *v) in sshbuf_get_bignum2()
49 sshbuf_get_bignum1(struct sshbuf *buf, BIGNUM *v) in sshbuf_get_bignum1()
90 sshbuf_get_ec(struct sshbuf *buf, EC_POINT *v, const EC_GROUP *g) in sshbuf_get_ec()
111 sshbuf_get_eckey(struct sshbuf *buf, EC_KEY *v) in sshbuf_get_eckey()
147 sshbuf_put_bignum2(struct sshbuf *buf, const BIGNUM *v) in sshbuf_put_bignum2()
169 sshbuf_put_bignum1(struct sshbuf *buf, const BIGNUM *v) in sshbuf_put_bignum1()
192 sshbuf_put_ec(struct sshbuf *buf, const EC_POINT *v, const EC_GROUP *g) in sshbuf_put_ec()
218 sshbuf_put_eckey(struct sshbuf *buf, const EC_KEY *v) in sshbuf_put_eckey()
Dauthfd.c125 ssh_request_reply(int sock, struct sshbuf *request, struct sshbuf *reply) in ssh_request_reply()
185 struct sshbuf *msg; in ssh_lock_agent()
204 deserialise_identity1(struct sshbuf *ids, struct sshkey **keyp, char **commentp) in deserialise_identity1()
241 deserialise_identity2(struct sshbuf *ids, struct sshkey **keyp, char **commentp) in deserialise_identity2()
271 struct sshbuf *msg; in ssh_fetch_identitylist()
393 struct sshbuf *msg; in ssh_decrypt_challenge()
448 struct sshbuf *msg; in ssh_agent_sign()
499 ssh_encode_identity_rsa1(struct sshbuf *b, RSA *key, const char *comment) in ssh_encode_identity_rsa1()
518 ssh_encode_identity_ssh2(struct sshbuf *b, struct sshkey *key, in ssh_encode_identity_ssh2()
530 encode_constraints(struct sshbuf *m, u_int life, u_int confirm) in encode_constraints()
[all …]
Dmsg.h28 struct sshbuf;
29 int ssh_msg_send(int, u_char, struct sshbuf *);
30 int ssh_msg_recv(int, struct sshbuf *);
Dkex.h144 struct sshbuf *my;
145 struct sshbuf *peer;
179 int kex_buf2prop(struct sshbuf *, int *, char ***);
180 int kex_prop2buf(struct sshbuf *, char *proposal[PROPOSAL_MAX]);
186 int kex_derive_keys(struct ssh *, u_char *, u_int, const struct sshbuf *);
224 const u_char pub[CURVE25519_SIZE], struct sshbuf *out)
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(struct sshbuf *buf) in sshbuf_dtob64()
114 sshbuf_b64tod(struct sshbuf *buf, const char *b64) in sshbuf_b64tod()
140 sshbuf_dup_string(struct sshbuf *buf) in sshbuf_dup_string()
Dsftp-common.h31 struct sshbuf;
48 int decode_attrib(struct sshbuf *, Attrib *);
49 int encode_attrib(struct sshbuf *, const Attrib *);
Dpacket.h42 struct sshbuf;
84 typedef int (ssh_packet_hook_fn)(struct ssh *, struct sshbuf *,
154 int ssh_packet_get_state(struct ssh *, struct sshbuf *);
155 int ssh_packet_set_state(struct ssh *, struct sshbuf *);
177 int sshpkt_putb(struct ssh *ssh, const struct sshbuf *b);
183 int sshpkt_put_stringb(struct ssh *ssh, const struct sshbuf *v);
Ddigest.h33 struct sshbuf;
57 int ssh_digest_buffer(int alg, const struct sshbuf *b, u_char *d, size_t dlen)
65 const struct sshbuf *b);
Dkrl.h40 struct sshbuf;
56 int ssh_krl_to_blob(struct ssh_krl *krl, struct sshbuf *buf,
58 int ssh_krl_from_blob(struct sshbuf *buf, struct ssh_krl **krlp,
Dkey.h90 void key_private_serialize(const Key *, struct sshbuf *);
91 Key *key_private_deserialize(struct sshbuf *);
96 int key_load_file(int, const char *, struct sshbuf *);
DAndroid.mk123 sshbuf-getput-basic.c \
124 sshbuf-getput-crypto.c \
125 sshbuf-misc.c \
126 sshbuf.c \
Dauthfile.h30 struct sshbuf;
38 int sshkey_load_file(int, struct sshbuf *);
Dhmac.h24 struct sshbuf;
33 int ssh_hmac_update_buffer(struct ssh_hmac_ctx *ctx, const struct sshbuf *b);
Dsftp-client.c109 send_msg(struct sftp_conn *conn, struct sshbuf *m) in send_msg()
133 get_msg(struct sftp_conn *conn, struct sshbuf *m) in get_msg()
170 struct sshbuf *msg; in send_string_request()
188 struct sshbuf *msg; in send_string_attrs_request()
206 struct sshbuf *msg; in get_status()
237 struct sshbuf *msg; in get_handle()
281 struct sshbuf *msg; in get_decode_stat()
327 struct sshbuf *msg; in get_decode_statvfs()
387 struct sshbuf *msg; in do_init()
494 struct sshbuf *msg; in do_close()
[all …]
Dsshkey.c75 static int sshkey_from_blob_internal(struct sshbuf *buf,
727 to_blob_buf(const struct sshkey *key, struct sshbuf *b, int force_plain) in to_blob_buf()
802 sshkey_putb(const struct sshkey *key, struct sshbuf *b) in sshkey_putb()
808 sshkey_puts(const struct sshkey *key, struct sshbuf *b) in sshkey_puts()
810 struct sshbuf *tmp; in sshkey_puts()
823 sshkey_putb_plain(const struct sshkey *key, struct sshbuf *b) in sshkey_putb_plain()
833 struct sshbuf *b = NULL; in to_blob()
1239 struct sshbuf *blob; in sshkey_read()
1396 struct sshbuf *b = NULL; in sshkey_to_base64()
1422 sshkey_format_rsa1(const struct sshkey *key, struct sshbuf *b) in sshkey_format_rsa1()
[all …]
Dauthfile.c57 sshkey_save_private_blob(struct sshbuf *keybuf, const char *filename) in sshkey_save_private_blob()
80 struct sshbuf *keyblob = NULL; in sshkey_save_private()
98 sshkey_load_file(int fd, struct sshbuf *blob) in sshkey_load_file()
159 struct sshbuf *b = NULL; in sshkey_load_public_rsa1()
245 struct sshbuf *buffer = NULL; in sshkey_load_private_type_fd()
271 struct sshbuf *buffer = NULL; in sshkey_load_private()
Dmsg.c45 ssh_msg_send(int fd, u_char type, struct sshbuf *m) in ssh_msg_send()
66 ssh_msg_recv(int fd, struct sshbuf *m) in ssh_msg_recv()
Dkexc25519.c64 const u_char pub[CURVE25519_SIZE], struct sshbuf *out) in kexc25519_shared_key()
97 struct sshbuf *b; in kex_c25519_hash()
/external/openssh/regress/unittests/sshkey/
Dcommon.c39 struct sshbuf *
43 struct sshbuf *ret; in load_file()
52 struct sshbuf *
55 struct sshbuf *ret = load_file(name); in load_text_file()
77 struct sshbuf *buf; in load_bignum()
Dcommon.h9 struct sshbuf *load_file(const char *name);
12 struct sshbuf *load_text_file(const char *name);
/external/openssh/regress/misc/kexfuzz/
Dkexfuzz.c44 struct sshbuf *replace_data;
48 packet_hook(struct ssh *ssh, struct sshbuf *packet, u_char *typep, void *_ctx) in packet_hook()
201 const char *dump_path, struct sshbuf *replace_data) in do_kex_with_key()
205 struct sshbuf *state; in do_kex_with_key()
351 struct sshbuf *replace_data = NULL; in main()

123