/external/openssh/ |
D | sshbuf.h | 40 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 …]
|
D | sshbuf.c | 32 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 …]
|
D | sshbuf-getput-basic.c | 30 sshbuf_get(struct sshbuf *buf, void *v, size_t len) in sshbuf_get() 43 sshbuf_get_u64(struct sshbuf *buf, u_int64_t *valp) in sshbuf_get_u64() 56 sshbuf_get_u32(struct sshbuf *buf, u_int32_t *valp) in sshbuf_get_u32() 69 sshbuf_get_u16(struct sshbuf *buf, u_int16_t *valp) in sshbuf_get_u16() 82 sshbuf_get_u8(struct sshbuf *buf, u_char *valp) in sshbuf_get_u8() 95 sshbuf_get_string(struct sshbuf *buf, u_char **valp, size_t *lenp) in sshbuf_get_string() 122 sshbuf_get_string_direct(struct sshbuf *buf, const u_char **valp, size_t *lenp) in sshbuf_get_string_direct() 148 sshbuf_peek_string_direct(const struct sshbuf *buf, const u_char **valp, in sshbuf_peek_string_direct() 179 sshbuf_get_cstring(struct sshbuf *buf, char **valp, size_t *lenp) in sshbuf_get_cstring() 214 sshbuf_get_stringb(struct sshbuf *buf, struct sshbuf *v) in sshbuf_get_stringb() [all …]
|
D | sshkey.h | 52 struct sshbuf; 88 struct sshbuf *certblob; /* Kept around for use on wire */ 95 struct sshbuf *critical; 96 struct sshbuf *extensions; 163 int sshkey_fromb(struct sshbuf *, struct sshkey **); 164 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 …]
|
D | sshbuf-getput-crypto.c | 35 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()
|
D | msg.h | 28 struct sshbuf; 29 int ssh_msg_send(int, u_char, struct sshbuf *); 30 int ssh_msg_recv(int, struct sshbuf *);
|
D | authfd.c | 125 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() 435 struct sshbuf *msg; in ssh_agent_sign() 487 ssh_encode_identity_rsa1(struct sshbuf *b, RSA *key, const char *comment) in ssh_encode_identity_rsa1() 506 ssh_encode_identity_ssh2(struct sshbuf *b, struct sshkey *key, in ssh_encode_identity_ssh2() 518 encode_constraints(struct sshbuf *m, u_int life, u_int confirm) in encode_constraints() [all …]
|
D | kex.h | 136 struct sshbuf *my; 137 struct sshbuf *peer; 168 int kex_buf2prop(struct sshbuf *, int *, char ***); 169 int kex_prop2buf(struct sshbuf *, char *proposal[PROPOSAL_MAX]); 174 int kex_derive_keys(struct ssh *, u_char *, u_int, const struct sshbuf *); 210 const u_char pub[CURVE25519_SIZE], struct sshbuf *out)
|
D | sftp-common.h | 31 struct sshbuf; 48 int decode_attrib(struct sshbuf *, Attrib *); 49 int encode_attrib(struct sshbuf *, const Attrib *);
|
D | sshbuf-misc.c | 66 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()
|
D | digest.h | 33 struct sshbuf; 57 int ssh_digest_buffer(int alg, const struct sshbuf *b, u_char *d, size_t dlen) 65 const struct sshbuf *b);
|
D | krl.h | 40 struct sshbuf; 57 int ssh_krl_to_blob(struct ssh_krl *krl, struct sshbuf *buf, 59 int ssh_krl_from_blob(struct sshbuf *buf, struct ssh_krl **krlp,
|
D | packet.h | 42 struct sshbuf; 142 int ssh_packet_get_state(struct ssh *, struct sshbuf *); 143 int ssh_packet_set_state(struct ssh *, struct sshbuf *); 167 int sshpkt_putb(struct ssh *ssh, const struct sshbuf *b); 173 int sshpkt_put_stringb(struct ssh *ssh, const struct sshbuf *v);
|
D | key.h | 91 void key_private_serialize(const Key *, struct sshbuf *); 92 Key *key_private_deserialize(struct sshbuf *); 97 int key_load_file(int, const char *, struct sshbuf *);
|
D | authfile.h | 30 struct sshbuf; 38 int sshkey_load_file(int, struct sshbuf *);
|
D | hmac.h | 24 struct sshbuf; 33 int ssh_hmac_update_buffer(struct ssh_hmac_ctx *ctx, const struct sshbuf *b);
|
D | authfile.c | 57 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() 147 struct sshbuf *b = NULL; in sshkey_load_public_rsa1() 231 struct sshbuf *buffer = NULL; in sshkey_load_private_type_fd() 256 struct sshbuf *buffer = NULL; in sshkey_load_private()
|
D | msg.c | 45 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()
|
D | sftp-client.c | 102 send_msg(struct sftp_conn *conn, struct sshbuf *m) in send_msg() 126 get_msg(struct sftp_conn *conn, struct sshbuf *m) in get_msg() 163 struct sshbuf *msg; in send_string_request() 181 struct sshbuf *msg; in send_string_attrs_request() 199 struct sshbuf *msg; in get_status() 230 struct sshbuf *msg; in get_handle() 274 struct sshbuf *msg; in get_decode_stat() 320 struct sshbuf *msg; in get_decode_statvfs() 380 struct sshbuf *msg; in do_init() 486 struct sshbuf *msg; in do_close() [all …]
|
D | sshkey.c | 76 static int sshkey_from_blob_internal(struct sshbuf *buf, 756 to_blob_buf(const struct sshkey *key, struct sshbuf *b, int force_plain) in to_blob_buf() 827 sshkey_putb(const struct sshkey *key, struct sshbuf *b) in sshkey_putb() 833 sshkey_puts(const struct sshkey *key, struct sshbuf *b) in sshkey_puts() 835 struct sshbuf *tmp; in sshkey_puts() 848 sshkey_putb_plain(const struct sshkey *key, struct sshbuf *b) in sshkey_putb_plain() 858 struct sshbuf *b = NULL; in to_blob() 1261 struct sshbuf *blob; in sshkey_read() 1415 struct sshbuf *b = NULL, *bb = NULL; in sshkey_write() 1845 cert_parse(struct sshbuf *b, struct sshkey *key, struct sshbuf *certbuf) in cert_parse() [all …]
|
D | packet.c | 108 struct sshbuf *payload; 131 struct sshbuf *input; 134 struct sshbuf *output; 137 struct sshbuf *outgoing_packet; 140 struct sshbuf *incoming_packet; 143 struct sshbuf *compression_buffer; 613 compress_buffer(struct ssh *ssh, struct sshbuf *in, struct sshbuf *out) in compress_buffer() 659 uncompress_buffer(struct ssh *ssh, struct sshbuf *in, struct sshbuf *out) in uncompress_buffer() 707 ssh_packet_get_compress_state(struct sshbuf *m, struct ssh *ssh) in ssh_packet_get_compress_state() 710 struct sshbuf *b; in ssh_packet_get_compress_state() [all …]
|
D | Android.mk | 102 sshbuf-getput-basic.c \ 103 sshbuf-getput-crypto.c \ 104 sshbuf-misc.c \ 105 sshbuf.c \
|
D | kexc25519.c | 64 const u_char pub[CURVE25519_SIZE], struct sshbuf *out) in kexc25519_shared_key() 92 struct sshbuf *b; in kex_c25519_hash()
|
D | krl.c | 527 put_bitmap(struct sshbuf *buf, struct bitmap *bitmap) in put_bitmap() 547 revoked_certs_generate(struct revoked_certs *rc, struct sshbuf *buf) in revoked_certs_generate() 554 struct sshbuf *sect; in revoked_certs_generate() 706 ssh_krl_to_blob(struct ssh_krl *krl, struct sshbuf *buf, in ssh_krl_to_blob() 712 struct sshbuf *sect; in ssh_krl_to_blob() 806 parse_revoked_certs(struct sshbuf *buf, struct ssh_krl *krl) in parse_revoked_certs() 812 struct sshbuf *subsect = NULL; in parse_revoked_certs() 923 ssh_krl_from_blob(struct sshbuf *buf, struct ssh_krl **krlp, in ssh_krl_from_blob() 926 struct sshbuf *copy = NULL, *sect = NULL; in ssh_krl_from_blob() 1274 struct sshbuf *krlbuf = NULL; in ssh_krl_file_contains_key()
|
D | ssh-ed25519.c | 43 struct sshbuf *b = NULL; in ssh_ed25519_sign() 99 struct sshbuf *b = NULL; in ssh_ed25519_verify()
|