/openbsd/regress/usr.bin/ssh/unittests/sshbuf/ |
H A D | test_sshbuf_getput_basic.c | 75 ASSERT_INT_EQ(sshbuf_put(p1, x, 5), 0); in sshbuf_getput_basic_tests() 102 r = sshbuf_put(p1, x, 5); in sshbuf_getput_basic_tests() 111 ASSERT_INT_EQ(sshbuf_put(p1, x, 10), 0); in sshbuf_getput_basic_tests() 129 ASSERT_INT_EQ(sshbuf_put(p1, x, 10), 0); in sshbuf_getput_basic_tests() 150 ASSERT_INT_EQ(sshbuf_put(p1, x, 9), 0); in sshbuf_getput_basic_tests() 177 ASSERT_INT_EQ(sshbuf_put(p1, x, 2), 0); in sshbuf_getput_basic_tests() 286 ASSERT_INT_EQ(sshbuf_put(p1, x, sizeof(x)), 0); in sshbuf_getput_basic_tests() 302 ASSERT_INT_EQ(sshbuf_put(p1, x, sizeof(x)), 0); in sshbuf_getput_basic_tests() 316 ASSERT_INT_EQ(sshbuf_put(p1, x, sizeof(x)), 0); in sshbuf_getput_basic_tests() 330 ASSERT_INT_EQ(sshbuf_put(p1, x, sizeof(x)), 0); in sshbuf_getput_basic_tests() [all …]
|
H A D | test_sshbuf_getput_crypto.c | 123 ASSERT_INT_EQ(sshbuf_put(p1, expbn1, sizeof(expbn1)), 0); in sshbuf_getput_crypto_tests() 140 ASSERT_INT_EQ(sshbuf_put(p1, expbn1, sizeof(expbn1) - 1), 0); in sshbuf_getput_crypto_tests() 171 ASSERT_INT_EQ(sshbuf_put(p1, expbn2, sizeof(expbn2)), 0); in sshbuf_getput_crypto_tests() 189 ASSERT_INT_EQ(sshbuf_put(p1, expbn2, sizeof(expbn2) - 1), 0); in sshbuf_getput_crypto_tests() 204 ASSERT_INT_EQ(sshbuf_put(p1, expbn2, sizeof(expbn2)), 0); in sshbuf_getput_crypto_tests()
|
H A D | test_sshbuf_misc.c | 143 ASSERT_INT_EQ(sshbuf_put(p1, "quad1", strlen("quad1")), 0); in sshbuf_misc_tests() 150 ASSERT_INT_EQ(sshbuf_put(p1, "\0", 1), 0); in sshbuf_misc_tests() 157 ASSERT_INT_EQ(sshbuf_put(p1, "quad2", strlen("quad2")), 0); in sshbuf_misc_tests()
|
H A D | test_sshbuf_getput_fuzz.c | 39 ASSERT_INT_EQ(sshbuf_put(p1, blob, len), 0); in attempt_parse_blob()
|
H A D | test_sshbuf_fixed.c | 69 ASSERT_INT_EQ(sshbuf_put(p1, test_buf, sizeof(test_buf) - 1), 0); in sshbuf_fixed()
|
/openbsd/regress/usr.bin/ssh/unittests/sshkey/ |
H A D | test_fuzz.c | 121 r = sshbuf_put(fuzzed, fuzz_ptr(fuzz), fuzz_len(fuzz)); in sshkey_fuzz_tests() 143 r = sshbuf_put(fuzzed, fuzz_ptr(fuzz), fuzz_len(fuzz)); in sshkey_fuzz_tests() 166 r = sshbuf_put(fuzzed, fuzz_ptr(fuzz), fuzz_len(fuzz)); in sshkey_fuzz_tests() 188 r = sshbuf_put(fuzzed, fuzz_ptr(fuzz), fuzz_len(fuzz)); in sshkey_fuzz_tests() 211 r = sshbuf_put(fuzzed, fuzz_ptr(fuzz), fuzz_len(fuzz)); in sshkey_fuzz_tests() 233 r = sshbuf_put(fuzzed, fuzz_ptr(fuzz), fuzz_len(fuzz)); in sshkey_fuzz_tests() 255 r = sshbuf_put(fuzzed, fuzz_ptr(fuzz), fuzz_len(fuzz)); in sshkey_fuzz_tests()
|
/openbsd/usr.bin/ssh/ |
H A D | ssh-ecdsa-sk.c | 185 if ((r = sshbuf_put(m, WEBAUTHN_0, sizeof(WEBAUTHN_0) - 1)) != 0 || in webauthn_check_prepare_hash() 187 (r = sshbuf_put(m, WEBAUTHN_1, sizeof(WEBAUTHN_1) - 1)) != 0 || in webauthn_check_prepare_hash() 188 (r = sshbuf_put(m, origin, strlen(origin))) != 0 || in webauthn_check_prepare_hash() 189 (r = sshbuf_put(m, WEBAUTHN_2, sizeof(WEBAUTHN_2) - 1)) != 0) in webauthn_check_prepare_hash() 343 if ((ret = sshbuf_put(original_signed, in ssh_ecdsa_sk_verify() 348 (ret = sshbuf_put(original_signed, msghash, sizeof(msghash))) != 0) in ssh_ecdsa_sk_verify()
|
H A D | kexmlkem768x25519.c | 140 if ((r = sshbuf_put(buf, enc.snd, sizeof(enc.snd))) != 0 || in kex_kem_mlkem768x25519_enc() 141 (r = sshbuf_put(server_blob, enc.fst.value, sizeof(enc.fst.value))) != 0 || in kex_kem_mlkem768x25519_enc() 142 (r = sshbuf_put(server_blob, server_pub, sizeof(server_pub))) != 0) in kex_kem_mlkem768x25519_enc() 222 if ((r = sshbuf_put(buf, mlkem_key, sizeof(mlkem_key))) != 0) in kex_kem_mlkem768x25519_dec()
|
H A D | ssh-ed25519-sk.c | 205 if (sshbuf_put(encoded, sigblob, len) != 0 || in ssh_ed25519_sk_verify() 206 sshbuf_put(encoded, apphash, sizeof(apphash)) != 0 || in ssh_ed25519_sk_verify() 209 sshbuf_put(encoded, msghash, sizeof(msghash)) != 0) { in ssh_ed25519_sk_verify()
|
H A D | sshsig.c | 70 if ((r = sshbuf_put(buf, END_SIGNATURE, in sshsig_armor() 181 if ((r = sshbuf_put(tosign, MAGIC_PREAMBLE, MAGIC_PREAMBLE_LEN)) != 0 || in sshsig_wrap_sign() 210 if ((r = sshbuf_put(blob, MAGIC_PREAMBLE, MAGIC_PREAMBLE_LEN)) != 0 || in sshsig_wrap_sign() 320 if ((r = sshbuf_put(toverify, MAGIC_PREAMBLE, in sshsig_wrap_verify() 426 if ((r = sshbuf_put(b, hash, ssh_digest_bytes(alg))) != 0) { in hash_buffer() 551 if ((r = sshbuf_put(b, hash, ssh_digest_bytes(alg))) != 0) { in hash_file()
|
H A D | gss-genr.c | 123 if ((r = sshbuf_put(b, msg.value, msg.length)) != 0 || in ssh_gssapi_last_error() 135 if ((r = sshbuf_put(b, msg.value, msg.length)) != 0 || in ssh_gssapi_last_error()
|
H A D | sshbuf-misc.c | 117 if ((r = sshbuf_put(b64, s, strlen(s))) != 0) in sshbuf_dtob64() 159 if ((r = sshbuf_put(buf, p, nlen)) < 0) { in sshbuf_b64tod()
|
H A D | kexgex.c | 80 (r = sshbuf_put(b, shared_secret, secretlen)) != 0) { in kexgex_hash()
|
H A D | sshbuf-io.c | 56 if ((r = sshbuf_put(blob, buf, len)) != 0) in sshbuf_load_fd()
|
H A D | packet.c | 372 if ((r = sshbuf_put(state->incoming_packet, buf, in ssh_packet_stop_discard() 832 if ((r = sshbuf_put(out, buf, sizeof(buf) - in compress_buffer() 868 if ((r = sshbuf_put(out, buf, sizeof(buf) - in uncompress_buffer() 1180 if ((r = sshbuf_put(state->outgoing_packet, in ssh_packet_send2_wrapped() 1269 if ((r = sshbuf_put(state->output, macbuf, mac->mac_len)) != 0) in ssh_packet_send2_wrapped() 1518 if ((r = sshbuf_put(state->incoming_packet, cp + 4, in ssh_packet_read_poll2_mux() 1878 if ((r = sshbuf_put(state->input, buf, len)) != 0) in ssh_packet_process_incoming() 2550 (r = sshbuf_put(state->input, input, ilen)) != 0 || in ssh_packet_set_state() 2551 (r = sshbuf_put(state->output, output, olen)) != 0) in ssh_packet_set_state() 2567 return sshbuf_put(ssh->state->outgoing_packet, v, len); in sshpkt_put() [all …]
|
H A D | kexc25519.c | 75 r = sshbuf_put(out, shared_key, CURVE25519_SIZE); in kexc25519_shared_key_ext()
|
H A D | sshbuf-getput-basic.c | 322 sshbuf_put(struct sshbuf *buf, const void *v, size_t len) in sshbuf_put() function 339 return sshbuf_put(buf, sshbuf_ptr(v), sshbuf_len(v)); in sshbuf_putb()
|
H A D | ssh_api.c | 245 return sshbuf_put(ssh_packet_get_input(ssh), data, len); in ssh_input_append() 374 if ((r = sshbuf_put(ssh_packet_get_output(ssh), in _ssh_read_banner()
|
H A D | kexgexc.c | 216 if ((r = sshbuf_put(kex->initial_sig, signature, slen)) != 0) in input_kex_dh_gex_reply()
|
H A D | sshbuf.h | 153 int sshbuf_put(struct sshbuf *buf, const void *v, size_t len);
|
H A D | ssh-pkcs11-helper.c | 395 } else if ((r = sshbuf_put(iqueue, buf, len)) != 0) in main()
|
H A D | kexgen.c | 239 if ((r = sshbuf_put(kex->initial_sig, signature, slen)) != 0) in input_kex_gen_reply()
|
H A D | monitor_wrap.c | 630 if ((r = sshbuf_put(loginmsg, msg, strlen(msg))) != 0) in mm_pty_allocate() 724 if (conf != NULL && (r = sshbuf_put(conf, cp, len))) in mm_get_state()
|
H A D | channels.c | 1536 if ((r = sshbuf_put(output, &s4_rsp, sizeof(s4_rsp))) != 0) in channel_decode_socks4() 1670 if ((r = sshbuf_put(output, &s5_rsp, sizeof(s5_rsp))) != 0 || in channel_decode_socks5() 1672 (r = sshbuf_put(output, &dest_port, sizeof(dest_port))) != 0) in channel_decode_socks5() 2292 else if ((r = sshbuf_put(c->extended, buf, len)) != 0) in channel_handle_efd_read() 2369 } else if ((r = sshbuf_put(c->input, buf, len)) != 0) in read_mux() 3295 (r = sshbuf_put(b, cp, len)) != 0 || in channel_proxy_upstream() 3420 } else if ((r = sshbuf_put(c->output, data, data_len)) != 0) in channel_input_data() 3473 if ((r = sshbuf_put(c->extended, data, data_len)) != 0) in channel_input_extended_data()
|
H A D | kex.c | 620 if ((r = sshbuf_put(kex->peer, ptr, dlen)) != 0) in kex_input_kexinit() 1131 if ((r = sshbuf_put(kex->session_id, hash, hashlen)) != 0) in kex_derive_keys()
|