Home
last modified time | relevance | path

Searched refs:sshbuf_put (Results 1 – 25 of 34) sorted by relevance

12

/dragonfly/crypto/openssh/
HDssh-ecdsa-sk.c203 if ((r = sshbuf_put(m, WEBAUTHN_0, sizeof(WEBAUTHN_0) - 1)) != 0 || in webauthn_check_prepare_hash()
205 (r = sshbuf_put(m, WEBAUTHN_1, sizeof(WEBAUTHN_1) - 1)) != 0 || in webauthn_check_prepare_hash()
206 (r = sshbuf_put(m, origin, strlen(origin))) != 0 || in webauthn_check_prepare_hash()
207 (r = sshbuf_put(m, WEBAUTHN_2, sizeof(WEBAUTHN_2) - 1)) != 0) in webauthn_check_prepare_hash()
359 if ((ret = sshbuf_put(original_signed, in ssh_ecdsa_sk_verify()
364 (ret = sshbuf_put(original_signed, msghash, sizeof(msghash))) != 0) in ssh_ecdsa_sk_verify()
HDssh-ed25519-sk.c207 if (sshbuf_put(encoded, sigblob, len) != 0 || in ssh_ed25519_sk_verify()
208 sshbuf_put(encoded, apphash, sizeof(apphash)) != 0 || in ssh_ed25519_sk_verify()
211 sshbuf_put(encoded, msghash, sizeof(msghash)) != 0) { in ssh_ed25519_sk_verify()
HDsshsig.c72 if ((r = sshbuf_put(buf, END_SIGNATURE, in sshsig_armor()
183 if ((r = sshbuf_put(tosign, MAGIC_PREAMBLE, MAGIC_PREAMBLE_LEN)) != 0 || in sshsig_wrap_sign()
212 if ((r = sshbuf_put(blob, MAGIC_PREAMBLE, MAGIC_PREAMBLE_LEN)) != 0 || in sshsig_wrap_sign()
322 if ((r = sshbuf_put(toverify, MAGIC_PREAMBLE, in sshsig_wrap_verify()
428 if ((r = sshbuf_put(b, hash, ssh_digest_bytes(alg))) != 0) { in hash_buffer()
553 if ((r = sshbuf_put(b, hash, ssh_digest_bytes(alg))) != 0) { in hash_file()
HDgss-genr.c129 if ((r = sshbuf_put(b, msg.value, msg.length)) != 0 || in ssh_gssapi_last_error()
141 if ((r = sshbuf_put(b, msg.value, msg.length)) != 0 || in ssh_gssapi_last_error()
HDpacket.c392 if ((r = sshbuf_put(state->incoming_packet, buf, in ssh_packet_stop_discard()
856 if ((r = sshbuf_put(out, buf, sizeof(buf) - in compress_buffer()
892 if ((r = sshbuf_put(out, buf, sizeof(buf) - in uncompress_buffer()
1205 if ((r = sshbuf_put(state->outgoing_packet, in ssh_packet_send2_wrapped()
1294 if ((r = sshbuf_put(state->output, macbuf, mac->mac_len)) != 0) in ssh_packet_send2_wrapped()
1544 if ((r = sshbuf_put(state->incoming_packet, cp + 4, in ssh_packet_read_poll2_mux()
1904 if ((r = sshbuf_put(state->input, buf, len)) != 0) in ssh_packet_process_incoming()
2578 (r = sshbuf_put(state->input, input, ilen)) != 0 || in ssh_packet_set_state()
2579 (r = sshbuf_put(state->output, output, olen)) != 0) in ssh_packet_set_state()
2595 return sshbuf_put(ssh->state->outgoing_packet, v, len); in sshpkt_put()
[all …]
HDsshbuf-misc.c121 if ((r = sshbuf_put(b64, s, strlen(s))) != 0) in sshbuf_dtob64()
163 if ((r = sshbuf_put(buf, p, nlen)) < 0) { in sshbuf_b64tod()
HDsshbuf-io.c58 if ((r = sshbuf_put(blob, buf, len)) != 0) in sshbuf_load_fd()
HDkexgex.c86 (r = sshbuf_put(b, shared_secret, secretlen)) != 0) { in kexgex_hash()
HDsshlogin.c107 if ((r = sshbuf_put(loginmsg, in store_lastlog_message()
HDkexc25519.c77 r = sshbuf_put(out, shared_key, CURVE25519_SIZE); in kexc25519_shared_key_ext()
HDsshbuf-getput-basic.c326 sshbuf_put(struct sshbuf *buf, const void *v, size_t len) in sshbuf_put() function
343 return sshbuf_put(buf, sshbuf_ptr(v), sshbuf_len(v)); in sshbuf_putb()
HDssh_api.c249 return sshbuf_put(ssh_packet_get_input(ssh), data, len); in ssh_input_append()
378 if ((r = sshbuf_put(ssh_packet_get_output(ssh), in _ssh_read_banner()
HDkexgexc.c223 if ((r = sshbuf_put(kex->initial_sig, signature, slen)) != 0) in input_kex_dh_gex_reply()
HDsshbuf.h146 int sshbuf_put(struct sshbuf *buf, const void *v, size_t len);
HDkexgen.c235 if ((r = sshbuf_put(kex->initial_sig, signature, slen)) != 0) in input_kex_gen_reply()
HDssh-pkcs11-helper.c396 } else if ((r = sshbuf_put(iqueue, buf, len)) != 0) in main()
HDchannels.c1546 if ((r = sshbuf_put(output, &s4_rsp, sizeof(s4_rsp))) != 0) in channel_decode_socks4()
1680 if ((r = sshbuf_put(output, &s5_rsp, sizeof(s5_rsp))) != 0 || in channel_decode_socks5()
1682 (r = sshbuf_put(output, &dest_port, sizeof(dest_port))) != 0) in channel_decode_socks5()
2181 } else if ((r = sshbuf_put(c->input, buf, len)) != 0) in channel_handle_rfd()
2332 else if ((r = sshbuf_put(c->extended, buf, len)) != 0) in channel_handle_efd_read()
2409 } else if ((r = sshbuf_put(c->input, buf, len)) != 0) in read_mux()
3335 (r = sshbuf_put(b, cp, len)) != 0 || in channel_proxy_upstream()
3460 } else if ((r = sshbuf_put(c->output, data, data_len)) != 0) in channel_input_data()
3513 if ((r = sshbuf_put(c->extended, data, data_len)) != 0) in channel_input_extended_data()
HDmonitor_wrap.c663 if ((r = sshbuf_put(loginmsg, msg, strlen(msg))) != 0) in mm_pty_allocate()
736 (r = sshbuf_put(loginmsg, msg, msglen)) != 0) in mm_do_pam_account()
HDkex.c625 if ((r = sshbuf_put(kex->peer, ptr, dlen)) != 0) in kex_input_kexinit()
1140 if ((r = sshbuf_put(kex->session_id, hash, hashlen)) != 0) in kex_derive_keys()
HDssh-pkcs11-client.c227 if ((r = sshbuf_put(m, buf, l)) != 0) in recv_msg()
HDauthfd.c173 if ((r = sshbuf_put(reply, buf, l)) != 0) in ssh_request_reply()
HDauth2.c415 if ((r = sshbuf_put(loginmsg, "\0", 1)) != 0) in userauth_finish()
HDsshkey.c2807 if ((r = sshbuf_put(encoded, AUTH_MAGIC, sizeof(AUTH_MAGIC))) != 0 || in sshkey_private_to_blob2()
2852 if ((r = sshbuf_put(blob, MARK_BEGIN, MARK_BEGIN_LEN)) != 0 || in sshkey_private_to_blob2()
2854 (r = sshbuf_put(blob, MARK_END, MARK_END_LEN)) != 0) in sshkey_private_to_blob2()
3284 if ((r = sshbuf_put(blob, bptr, blen)) != 0) in sshkey_private_to_blob_pem_pkcs8()
HDmux.c394 if ((r = sshbuf_put(cctx->cmd, cmd, strlen(cmd))) != 0) in mux_master_process_new_session()
1584 (r = sshbuf_put(m, ptr, have)) != 0) in mux_client_read_packet_timeout()
HDclientloop.c855 if ((r = sshbuf_put(c->extended, errmsg, in client_status_confirm()
1325 if ((r = sshbuf_put(berr, s, strlen(s))) != 0) in process_escapes()

12