Home
last modified time | relevance | path

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

123456

/freebsd-13.1/crypto/openssh/
H A Dsshbuf.h40 struct sshbuf { struct
57 struct sshbuf *sshbuf_new(void);
71 struct sshbuf *sshbuf_fromb(struct sshbuf *buf);
80 int sshbuf_froms(struct sshbuf *buf, struct sshbuf **bufp);
162 int sshbuf_putb(struct sshbuf *buf, const struct sshbuf *v);
206 int sshbuf_get_stringb(struct sshbuf *buf, struct sshbuf *v);
209 int sshbuf_put_stringb(struct sshbuf *buf, const struct sshbuf *v);
255 int sshbuf_dtob64(const struct sshbuf *d, struct sshbuf *b64, int wrap);
257 int sshbuf_dtourlb64(const struct sshbuf *d, struct sshbuf *b64, int wrap);
369 int sshbuf_set_parent(struct sshbuf *child, struct sshbuf *parent);
[all …]
H A Dkex.h146 struct sshbuf *my;
147 struct sshbuf *peer;
207 int kex_dh_enc(struct kex *, const struct sshbuf *, struct sshbuf **,
208 struct sshbuf **);
209 int kex_dh_dec(struct kex *, const struct sshbuf *, struct sshbuf **);
212 int kex_ecdh_enc(struct kex *, const struct sshbuf *, struct sshbuf **,
213 struct sshbuf **);
214 int kex_ecdh_dec(struct kex *, const struct sshbuf *, struct sshbuf **);
223 struct sshbuf **, struct sshbuf **);
230 int kexgex_hash(int, const struct sshbuf *, const struct sshbuf *,
[all …]
H A Dsshsig.h21 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 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()
306 sshbuf_get_stringb(struct sshbuf *buf, struct sshbuf *v) in sshbuf_get_stringb()
339 sshbuf_putb(struct sshbuf *buf, const struct sshbuf *v) in sshbuf_putb()
428 sshbuf_put_u8(struct sshbuf *buf, u_char val) in sshbuf_put_u8()
538 sshbuf_put_stringb(struct sshbuf *buf, const struct sshbuf *v) in sshbuf_put_stringb()
547 sshbuf_froms(struct sshbuf *buf, struct sshbuf **bufp) in sshbuf_froms()
[all …]
H A Dsshbuf.c68 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()
134 sshbuf_free(struct sshbuf *buf) in sshbuf_free()
171 sshbuf_reset(struct sshbuf *buf) in sshbuf_reset()
[all …]
H A Dkexecdh.c47 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()
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()
201 struct sshbuf **shared_secretp) in kex_ecdh_dec()
217 struct sshbuf;
228 struct sshbuf **server_blobp, struct sshbuf **shared_secretp) in kex_ecdh_enc()
[all …]
H A Dsshkey.h56 struct sshbuf;
118 struct sshbuf *critical;
119 struct sshbuf *extensions;
147 struct sshbuf *sk_key_handle;
148 struct sshbuf *sk_reserved;
232 int sshkey_fromb(struct sshbuf *, struct sshkey **);
233 int sshkey_froms(struct sshbuf *, struct sshkey **);
236 int sshkey_putb(const struct sshkey *, struct sshbuf *);
237 int sshkey_puts(const struct sshkey *, struct sshbuf *);
265 int sshkey_parse_private_fileblob(struct sshbuf *buffer,
[all …]
H A Dkexsntrup761x25519.c45 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 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()
H A Dkexgen.c50 const struct sshbuf *client_version, in kex_gen_hash()
51 const struct sshbuf *server_version, 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()
144 struct sshbuf *server_blob = NULL; in input_kex_gen_reply()
252 struct sshbuf *shared_secret = NULL; in input_kex_gen_init()
253 struct sshbuf *server_pubkey = NULL; in input_kex_gen_init()
[all …]
H A 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 *);
H A Dmonitor.c107 extern struct sshbuf *loginmsg;
111 static struct sshbuf *child_state;
116 int mm_answer_sign(struct ssh *, int, struct sshbuf *);
125 int mm_answer_pty(struct ssh *, int, struct sshbuf *);
173 int (*f)(struct ssh *, int, struct sshbuf *);
325 struct sshbuf *m; in monitor_child_preauth()
417 struct sshbuf *logmsg; in monitor_read_log()
470 struct sshbuf *m; in monitor_read()
610 struct sshbuf *sigbuf = NULL; in mm_answer_sign()
1248 struct sshbuf *b; in monitor_valid_userblob()
[all …]
H A Dsshbuf-misc.c66 sshbuf_dump(const 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_dtourlb64(const struct sshbuf *d, struct sshbuf *b64, int wrap) in sshbuf_dtourlb64()
175 struct sshbuf *b = NULL; in sshbuf_dtourlb64()
214 sshbuf_dup_string(struct sshbuf *buf) in sshbuf_dup_string()
237 sshbuf_cmp(const struct sshbuf *b, size_t offset, in sshbuf_cmp()
[all …]
H A Dsshsig.c49 sshsig_armor(const struct sshbuf *blob, struct sshbuf **out) in sshsig_armor()
51 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()
390 hash_buffer(const struct sshbuf *m, const char *hashalg, struct sshbuf **bp) in hash_buffer()
394 struct sshbuf *b = NULL; in hash_buffer()
437 struct sshbuf *b = NULL; in sshsig_signb()
459 sshsig_verifyb(struct sshbuf *signature, const struct sshbuf *message, in sshsig_verifyb()
463 struct sshbuf *b = NULL; in sshsig_verifyb()
[all …]
H A Dkexdh.c73 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 Dmonitor_wrap.c186 struct sshbuf *m; in mm_choose_dh()
222 struct sshbuf *m; in mm_sshkey_sign()
258 struct sshbuf *m; in mm_getpwnamallow()
352 struct sshbuf *m; in mm_auth2_read_banner()
382 struct sshbuf *m; in mm_inform_authserv()
402 struct sshbuf *m; in mm_auth_password()
455 struct sshbuf *m; in mm_key_allowed()
506 struct sshbuf *m; in mm_sshkey_verify()
554 struct sshbuf *m; in mm_send_keystate()
569 struct sshbuf *m; in mm_pty_allocate()
[all …]
H A 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()
H A Dssh-sk-helper.c56 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()
149 static struct sshbuf *
150 process_enroll(struct sshbuf *req) in process_enroll()
213 static struct sshbuf *
214 process_load_resident(struct sshbuf *req) in process_load_resident()
218 struct sshbuf *kbuf, *resp; in process_load_resident()
[all …]
H A Dmux.c153 Channel *, struct sshbuf *, struct sshbuf *);
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 *);
174 struct sshbuf *, struct sshbuf *);
[all …]
/freebsd-13.1/crypto/openssh/regress/unittests/sshbuf/
H A 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
/freebsd-13.1/crypto/openssh/regress/unittests/match/
H A DMakefile7 SRCS+=sshbuf-getput-basic.c sshbuf-getput-crypto.c sshbuf-misc.c sshbuf.c
/freebsd-13.1/crypto/openssh/regress/unittests/conversion/
H A DMakefile7 SRCS+=sshbuf-getput-basic.c sshbuf-getput-crypto.c sshbuf-misc.c sshbuf.c
/freebsd-13.1/crypto/openssh/regress/unittests/sshsig/
H A 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
/freebsd-13.1/crypto/openssh/regress/unittests/hostkeys/
H A 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
/freebsd-13.1/crypto/openssh/regress/unittests/sshkey/
H A 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

123456