Home
last modified time | relevance | path

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

/external/openssh/regress/unittests/sshbuf/
Dtest_sshbuf_getput_basic.c80 ASSERT_INT_EQ(sshbuf_put(p1, x, 5), 0); in sshbuf_getput_basic_tests()
107 r = sshbuf_put(p1, x, 5); in sshbuf_getput_basic_tests()
116 ASSERT_INT_EQ(sshbuf_put(p1, x, 10), 0); in sshbuf_getput_basic_tests()
134 ASSERT_INT_EQ(sshbuf_put(p1, x, 10), 0); in sshbuf_getput_basic_tests()
155 ASSERT_INT_EQ(sshbuf_put(p1, x, 9), 0); in sshbuf_getput_basic_tests()
182 ASSERT_INT_EQ(sshbuf_put(p1, x, 2), 0); in sshbuf_getput_basic_tests()
291 ASSERT_INT_EQ(sshbuf_put(p1, x, sizeof(x)), 0); in sshbuf_getput_basic_tests()
307 ASSERT_INT_EQ(sshbuf_put(p1, x, sizeof(x)), 0); in sshbuf_getput_basic_tests()
321 ASSERT_INT_EQ(sshbuf_put(p1, x, sizeof(x)), 0); in sshbuf_getput_basic_tests()
335 ASSERT_INT_EQ(sshbuf_put(p1, x, sizeof(x)), 0); in sshbuf_getput_basic_tests()
[all …]
Dtest_sshbuf_getput_crypto.c182 ASSERT_INT_EQ(sshbuf_put(p1, expbn1, sizeof(expbn1)), 0); in sshbuf_getput_crypto_tests()
199 ASSERT_INT_EQ(sshbuf_put(p1, expbn1, sizeof(expbn1) - 1), 0); in sshbuf_getput_crypto_tests()
231 ASSERT_INT_EQ(sshbuf_put(p1, expbn2, sizeof(expbn2)), 0); in sshbuf_getput_crypto_tests()
248 ASSERT_INT_EQ(sshbuf_put(p1, expbn2, sizeof(expbn2) - 1), 0); in sshbuf_getput_crypto_tests()
264 ASSERT_INT_EQ(sshbuf_put(p1, expbn1, sizeof(expbn1)), 0); in sshbuf_getput_crypto_tests()
281 ASSERT_INT_EQ(sshbuf_put(p1, expbn1, sizeof(expbn1) - 1), 0); in sshbuf_getput_crypto_tests()
312 ASSERT_INT_EQ(sshbuf_put(p1, expbn2, sizeof(expbn2)), 0); in sshbuf_getput_crypto_tests()
330 ASSERT_INT_EQ(sshbuf_put(p1, expbn2, sizeof(expbn2) - 1), 0); in sshbuf_getput_crypto_tests()
345 ASSERT_INT_EQ(sshbuf_put(p1, expbn2, sizeof(expbn2)), 0); in sshbuf_getput_crypto_tests()
Dtest_sshbuf_misc.c147 ASSERT_INT_EQ(sshbuf_put(p1, "quad1", strlen("quad1")), 0); in sshbuf_misc_tests()
154 ASSERT_INT_EQ(sshbuf_put(p1, "\0", 1), 0); in sshbuf_misc_tests()
161 ASSERT_INT_EQ(sshbuf_put(p1, "quad2", strlen("quad2")), 0); in sshbuf_misc_tests()
Dtest_sshbuf_getput_fuzz.c48 ASSERT_INT_EQ(sshbuf_put(p1, blob, len), 0); in attempt_parse_blob()
Dtest_sshbuf_fixed.c74 ASSERT_INT_EQ(sshbuf_put(p1, test_buf, sizeof(test_buf) - 1), 0); in sshbuf_fixed()
/external/openssh/regress/unittests/sshkey/
Dtest_fuzz.c119 r = sshbuf_put(fuzzed, fuzz_ptr(fuzz), fuzz_len(fuzz)); in sshkey_fuzz_tests()
140 r = sshbuf_put(fuzzed, fuzz_ptr(fuzz), fuzz_len(fuzz)); in sshkey_fuzz_tests()
161 r = sshbuf_put(fuzzed, fuzz_ptr(fuzz), fuzz_len(fuzz)); in sshkey_fuzz_tests()
181 r = sshbuf_put(fuzzed, fuzz_ptr(fuzz), fuzz_len(fuzz)); in sshkey_fuzz_tests()
201 r = sshbuf_put(fuzzed, fuzz_ptr(fuzz), fuzz_len(fuzz)); in sshkey_fuzz_tests()
221 r = sshbuf_put(fuzzed, fuzz_ptr(fuzz), fuzz_len(fuzz)); in sshkey_fuzz_tests()
242 r = sshbuf_put(fuzzed, fuzz_ptr(fuzz), fuzz_len(fuzz)); in sshkey_fuzz_tests()
262 r = sshbuf_put(fuzzed, fuzz_ptr(fuzz), fuzz_len(fuzz)); in sshkey_fuzz_tests()
283 r = sshbuf_put(fuzzed, fuzz_ptr(fuzz), fuzz_len(fuzz)); in sshkey_fuzz_tests()
/external/openssh/
Dkexc25519.c109 (r = sshbuf_put(b, ckexinit, ckexinitlen)) < 0 || in kex_c25519_hash()
112 (r = sshbuf_put(b, skexinit, skexinitlen)) < 0 || in kex_c25519_hash()
116 (r = sshbuf_put(b, shared_secret, secretlen)) < 0) { in kex_c25519_hash()
Dkexdh.c69 (r = sshbuf_put(b, ckexinit, ckexinitlen)) != 0 || in kex_dh_hash()
72 (r = sshbuf_put(b, skexinit, skexinitlen)) != 0 || in kex_dh_hash()
Dkexecdh.c75 (r = sshbuf_put(b, ckexinit, ckexinitlen)) != 0 || in kex_ecdh_hash()
78 (r = sshbuf_put(b, skexinit, skexinitlen)) != 0 || in kex_ecdh_hash()
Dkexgex.c72 (r = sshbuf_put(b, ckexinit, ckexinitlen)) != 0 || in kexgex_hash()
75 (r = sshbuf_put(b, skexinit, skexinitlen)) != 0 || in kexgex_hash()
Dpacket.c388 if ((r = sshbuf_put(state->incoming_packet, buf, in ssh_packet_stop_discard()
745 if ((r = sshbuf_put(out, buf, sizeof(buf) - in compress_buffer()
781 if ((r = sshbuf_put(out, buf, sizeof(buf) - in uncompress_buffer()
867 if ((r = sshbuf_put(state->compression_buffer, in ssh_packet_send1()
898 if ((r = sshbuf_put(state->outgoing_packet, buf, 4)) != 0) in ssh_packet_send1()
908 if ((r = sshbuf_put(state->output, buf, 4)) != 0) in ssh_packet_send1()
1185 if ((r = sshbuf_put(state->outgoing_packet, in ssh_packet_send2_wrapped()
1274 if ((r = sshbuf_put(state->output, macbuf, mac->mac_len)) != 0) in ssh_packet_send2_wrapped()
1698 if ((r = sshbuf_put(state->incoming_packet, cp + 4, in ssh_packet_read_poll2_mux()
2047 if ((r = sshbuf_put(ssh->state->input, buf, len)) != 0) in ssh_packet_process_incoming()
[all …]
Dssh_api.c224 return sshbuf_put(ssh_packet_get_input(ssh), data, len); in ssh_input_append()
348 if ((r = sshbuf_put(ssh_packet_get_output(ssh), in _ssh_read_banner()
390 if ((r = sshbuf_put(ssh_packet_get_output(ssh), buf, strlen(buf))) != 0) in _ssh_send_banner()
Dbuffer.c34 if ((ret = sshbuf_put(buffer, data, len)) != 0) in buffer_append()
Dsshbuf-getput-basic.c236 sshbuf_put(struct sshbuf *buf, const void *v, size_t len) in sshbuf_put() function
251 return sshbuf_put(buf, sshbuf_ptr(v), sshbuf_len(v)); in sshbuf_putb()
Dsshbuf-misc.c129 if ((r = sshbuf_put(buf, p, nlen)) < 0) { in sshbuf_b64tod()
Dauthfd.c160 if ((r = sshbuf_put(reply, buf, l)) != 0) in ssh_request_reply()
406 (r = sshbuf_put(msg, session_id, 16)) != 0 || in ssh_decrypt_challenge()
Dsshbuf.h170 int sshbuf_put(struct sshbuf *buf, const void *v, size_t len);
Dauthfile.c129 if ((r = sshbuf_put(blob, buf, len)) != 0) in sshkey_load_file()
Dsshkey.c3102 if ((r = sshbuf_put(encoded, AUTH_MAGIC, sizeof(AUTH_MAGIC))) != 0 || in sshkey_private_to_blob2()
3150 if ((r = sshbuf_put(blob, MARK_BEGIN, MARK_BEGIN_LEN)) != 0) in sshkey_private_to_blob2()
3161 if ((r = sshbuf_put(blob, MARK_END, MARK_END_LEN)) != 0) in sshkey_private_to_blob2()
3458 if ((r = sshbuf_put(buffer, buf, 8 - (sshbuf_len(buffer) % 8))) != 0) in sshkey_private_rsa1_to_blob()
3468 if ((r = sshbuf_put(encrypted, LEGACY_BEGIN, in sshkey_private_rsa1_to_blob()
3556 if ((r = sshbuf_put(blob, bptr, blen)) != 0) in sshkey_private_pem_to_blob()
Dssh-agent.c356 (r = sshbuf_put(msg, mdbuf, sizeof(mdbuf))) != 0) in process_authentication_challenge1()
1140 if ((r = sshbuf_put(sockets[i].input, in after_select()
Dssh-keyscan.c207 if ((r = sshbuf_put(msg, c->c_data, c->c_plen)) != 0 || in keygrab_ssh1()
Dkex.c493 if ((r = sshbuf_put(kex->peer, ptr, dlen)) != 0) in kex_input_kexinit()
Dkrl.c722 if ((r = sshbuf_put(buf, KRL_MAGIC, sizeof(KRL_MAGIC) - 1)) != 0 || in ssh_krl_to_blob()
Dsftp-server.c1679 } else if ((r = sshbuf_put(iqueue, buf, len)) != 0) { in sftp_server_main()
Dchannels.c2676 (r = sshbuf_put(b, cp, len)) != 0 ||