/external/openssh/regress/unittests/sshbuf/ |
D | test_sshbuf_getput_basic.c | 80 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 …]
|
D | test_sshbuf_getput_crypto.c | 182 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()
|
D | test_sshbuf_misc.c | 147 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()
|
D | test_sshbuf_getput_fuzz.c | 48 ASSERT_INT_EQ(sshbuf_put(p1, blob, len), 0); in attempt_parse_blob()
|
D | test_sshbuf_fixed.c | 74 ASSERT_INT_EQ(sshbuf_put(p1, test_buf, sizeof(test_buf) - 1), 0); in sshbuf_fixed()
|
/external/openssh/regress/unittests/sshkey/ |
D | test_fuzz.c | 119 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/ |
D | kexc25519.c | 109 (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()
|
D | kexdh.c | 69 (r = sshbuf_put(b, ckexinit, ckexinitlen)) != 0 || in kex_dh_hash() 72 (r = sshbuf_put(b, skexinit, skexinitlen)) != 0 || in kex_dh_hash()
|
D | kexecdh.c | 75 (r = sshbuf_put(b, ckexinit, ckexinitlen)) != 0 || in kex_ecdh_hash() 78 (r = sshbuf_put(b, skexinit, skexinitlen)) != 0 || in kex_ecdh_hash()
|
D | kexgex.c | 72 (r = sshbuf_put(b, ckexinit, ckexinitlen)) != 0 || in kexgex_hash() 75 (r = sshbuf_put(b, skexinit, skexinitlen)) != 0 || in kexgex_hash()
|
D | packet.c | 388 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 …]
|
D | ssh_api.c | 224 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()
|
D | buffer.c | 34 if ((ret = sshbuf_put(buffer, data, len)) != 0) in buffer_append()
|
D | sshbuf-getput-basic.c | 236 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()
|
D | sshbuf-misc.c | 129 if ((r = sshbuf_put(buf, p, nlen)) < 0) { in sshbuf_b64tod()
|
D | authfd.c | 160 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()
|
D | sshbuf.h | 170 int sshbuf_put(struct sshbuf *buf, const void *v, size_t len);
|
D | authfile.c | 129 if ((r = sshbuf_put(blob, buf, len)) != 0) in sshkey_load_file()
|
D | sshkey.c | 3102 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()
|
D | ssh-agent.c | 356 (r = sshbuf_put(msg, mdbuf, sizeof(mdbuf))) != 0) in process_authentication_challenge1() 1140 if ((r = sshbuf_put(sockets[i].input, in after_select()
|
D | ssh-keyscan.c | 207 if ((r = sshbuf_put(msg, c->c_data, c->c_plen)) != 0 || in keygrab_ssh1()
|
D | kex.c | 493 if ((r = sshbuf_put(kex->peer, ptr, dlen)) != 0) in kex_input_kexinit()
|
D | krl.c | 722 if ((r = sshbuf_put(buf, KRL_MAGIC, sizeof(KRL_MAGIC) - 1)) != 0 || in ssh_krl_to_blob()
|
D | sftp-server.c | 1679 } else if ((r = sshbuf_put(iqueue, buf, len)) != 0) { in sftp_server_main()
|
D | channels.c | 2676 (r = sshbuf_put(b, cp, len)) != 0 ||
|