Searched refs:server_blob (Results 1 - 5 of 5) sorted by relevance

/freebsd-current/crypto/openssh/
H A Dkexc25519.c117 struct sshbuf *server_blob = NULL; local
136 if ((server_blob = sshbuf_new()) == NULL) {
140 if ((r = sshbuf_reserve(server_blob, CURVE25519_SIZE, &server_pub)) != 0)
154 *server_blobp = server_blob;
156 server_blob = NULL;
160 sshbuf_free(server_blob);
166 kex_c25519_dec(struct kex *kex, const struct sshbuf *server_blob, argument
175 if (sshbuf_len(server_blob) != CURVE25519_SIZE) {
179 server_pub = sshbuf_ptr(server_blob);
H A Dkexdh.c147 struct sshbuf *server_blob = NULL; local
156 if ((server_blob = sshbuf_new()) == NULL) {
160 if ((r = sshbuf_put_bignum2(server_blob, pub_key)) != 0 ||
161 (r = sshbuf_get_u32(server_blob, NULL)) != 0)
165 *server_blobp = server_blob;
166 server_blob = NULL;
170 sshbuf_free(server_blob);
H A Dkexecdh.c98 struct sshbuf *server_blob = NULL; local
119 if ((server_blob = sshbuf_new()) == NULL) {
123 if ((r = sshbuf_put_ec(server_blob, pub_key, group)) != 0 ||
124 (r = sshbuf_get_u32(server_blob, NULL)) != 0)
129 *server_blobp = server_blob;
130 server_blob = NULL;
133 sshbuf_free(server_blob);
200 kex_ecdh_dec(struct kex *kex, const struct sshbuf *server_blob, argument
205 r = kex_ecdh_dec_key_group(kex, server_blob, kex->ec_client_key,
234 kex_ecdh_dec(struct kex *kex, const struct sshbuf *server_blob, argument
[all...]
H A Dkexsntrup761x25519.c77 struct sshbuf *server_blob = NULL; local
113 if ((server_blob = sshbuf_new()) == NULL) {
118 if ((r = sshbuf_reserve(server_blob, need, &ciphertext)) != 0)
147 *server_blobp = server_blob;
149 server_blob = NULL;
154 sshbuf_free(server_blob);
161 const struct sshbuf *server_blob, struct sshbuf **shared_secretp)
173 if (sshbuf_len(server_blob) != need) {
177 ciphertext = sshbuf_ptr(server_blob);
247 const struct sshbuf *server_blob, struc
160 kex_kem_sntrup761x25519_dec(struct kex *kex, const struct sshbuf *server_blob, struct sshbuf **shared_secretp) argument
246 kex_kem_sntrup761x25519_dec(struct kex *kex, const struct sshbuf *server_blob, struct sshbuf **shared_secretp) argument
[all...]
H A Dkexgen.c144 struct sshbuf *server_blob = NULL; local
169 if ((r = sshpkt_getb_froms(ssh, &server_blob)) != 0 ||
182 r = kex_dh_dec(kex, server_blob, &shared_secret);
185 r = kex_ecdh_dec(kex, server_blob, &shared_secret);
189 r = kex_c25519_dec(kex, server_blob, &shared_secret);
192 r = kex_kem_sntrup761x25519_dec(kex, server_blob,
212 server_blob,
250 sshbuf_free(server_blob);

Completed in 69 milliseconds