Lines Matching refs:buf
63 struct sshbuf *sshbuf_fromb(struct sshbuf *buf);
72 int sshbuf_froms(struct sshbuf *buf, struct sshbuf **bufp);
77 void sshbuf_free(struct sshbuf *buf);
82 void sshbuf_reset(struct sshbuf *buf);
87 size_t sshbuf_max_size(const struct sshbuf *buf);
93 int sshbuf_set_max_size(struct sshbuf *buf, size_t max_size);
98 size_t sshbuf_len(const struct sshbuf *buf);
103 size_t sshbuf_avail(const struct sshbuf *buf);
108 const u_char *sshbuf_ptr(const struct sshbuf *buf);
114 u_char *sshbuf_mutable_ptr(const struct sshbuf *buf);
122 int sshbuf_check_reserve(const struct sshbuf *buf, size_t len);
130 int sshbuf_allocate(struct sshbuf *buf, size_t len);
137 int sshbuf_reserve(struct sshbuf *buf, size_t len, u_char **dpp);
143 int sshbuf_consume(struct sshbuf *buf, size_t len);
149 int sshbuf_consume_end(struct sshbuf *buf, size_t len);
152 int sshbuf_get(struct sshbuf *buf, void *v, size_t len);
153 int sshbuf_put(struct sshbuf *buf, const void *v, size_t len);
154 int sshbuf_putb(struct sshbuf *buf, const struct sshbuf *v);
157 int sshbuf_putf(struct sshbuf *buf, const char *fmt, ...)
159 int sshbuf_putfv(struct sshbuf *buf, const char *fmt, va_list ap);
162 int sshbuf_get_u64(struct sshbuf *buf, u_int64_t *valp);
163 int sshbuf_get_u32(struct sshbuf *buf, u_int32_t *valp);
164 int sshbuf_get_u16(struct sshbuf *buf, u_int16_t *valp);
165 int sshbuf_get_u8(struct sshbuf *buf, u_char *valp);
166 int sshbuf_put_u64(struct sshbuf *buf, u_int64_t val);
167 int sshbuf_put_u32(struct sshbuf *buf, u_int32_t val);
168 int sshbuf_put_u16(struct sshbuf *buf, u_int16_t val);
169 int sshbuf_put_u8(struct sshbuf *buf, u_char val);
172 int sshbuf_peek_u64(const struct sshbuf *buf, size_t offset,
174 int sshbuf_peek_u32(const struct sshbuf *buf, size_t offset,
176 int sshbuf_peek_u16(const struct sshbuf *buf, size_t offset,
178 int sshbuf_peek_u8(const struct sshbuf *buf, size_t offset,
185 int sshbuf_poke_u64(struct sshbuf *buf, size_t offset, u_int64_t val);
186 int sshbuf_poke_u32(struct sshbuf *buf, size_t offset, u_int32_t val);
187 int sshbuf_poke_u16(struct sshbuf *buf, size_t offset, u_int16_t val);
188 int sshbuf_poke_u8(struct sshbuf *buf, size_t offset, u_char val);
189 int sshbuf_poke(struct sshbuf *buf, size_t offset, void *v, size_t len);
196 int sshbuf_get_string(struct sshbuf *buf, u_char **valp, size_t *lenp);
197 int sshbuf_get_cstring(struct sshbuf *buf, char **valp, size_t *lenp);
198 int sshbuf_get_stringb(struct sshbuf *buf, struct sshbuf *v);
199 int sshbuf_put_string(struct sshbuf *buf, const void *v, size_t len);
200 int sshbuf_put_cstring(struct sshbuf *buf, const char *v);
201 int sshbuf_put_stringb(struct sshbuf *buf, const struct sshbuf *v);
208 int sshbuf_get_string_direct(struct sshbuf *buf, const u_char **valp,
212 #define sshbuf_skip_string(buf) sshbuf_get_string_direct(buf, NULL, NULL) argument
215 int sshbuf_peek_string_direct(const struct sshbuf *buf, const u_char **valp,
222 int sshbuf_get_bignum2(struct sshbuf *buf, BIGNUM **valp);
223 int sshbuf_get_bignum2_bytes_direct(struct sshbuf *buf,
225 int sshbuf_put_bignum2(struct sshbuf *buf, const BIGNUM *v);
226 int sshbuf_put_bignum2_bytes(struct sshbuf *buf, const void *v, size_t len);
227 int sshbuf_get_ec(struct sshbuf *buf, EC_POINT *v, const EC_GROUP *g);
228 int sshbuf_get_eckey(struct sshbuf *buf, EC_KEY *v);
229 int sshbuf_put_ec(struct sshbuf *buf, const EC_POINT *v, const EC_GROUP *g);
230 int sshbuf_put_eckey(struct sshbuf *buf, const EC_KEY *v);
231 int sshbuf_put_ec_pkey(struct sshbuf *buf, EVP_PKEY *pkey);
234 void sshbuf_dump(const struct sshbuf *buf, FILE *f);
240 char *sshbuf_dtob16(struct sshbuf *buf);
243 char *sshbuf_dtob64_string(const struct sshbuf *buf, int wrap);
249 int sshbuf_b64tod(struct sshbuf *buf, const char *b64);
283 char *sshbuf_dup_string(struct sshbuf *buf);
298 int sshbuf_write_file(const char *path, struct sshbuf *buf)
357 size_t sshbuf_alloc(const struct sshbuf *buf);
367 const struct sshbuf *sshbuf_parent(const struct sshbuf *buf);
372 u_int sshbuf_refcount(const struct sshbuf *buf);