Searched refs:sshbuf_consume (Results 1 – 16 of 16) sorted by relevance
/external/openssh/regress/unittests/sshbuf/ |
D | test_sshbuf.c | 69 ASSERT_INT_EQ(sshbuf_consume(p1, 0), 0); in sshbuf_tests() 70 ASSERT_INT_EQ(sshbuf_consume(p1, 1), SSH_ERR_MESSAGE_INCOMPLETE); in sshbuf_tests() 112 ASSERT_INT_EQ(sshbuf_consume(p1, 0), 0); in sshbuf_tests() 114 r = sshbuf_consume(p1, 64); in sshbuf_tests() 117 ASSERT_INT_EQ(sshbuf_consume(p1, 1), 0); in sshbuf_tests() 122 ASSERT_INT_EQ(sshbuf_consume(p1, 2), 0); in sshbuf_tests() 127 r = sshbuf_consume(p1, 2); in sshbuf_tests() 130 ASSERT_INT_EQ(sshbuf_consume(p1, 1), 0); in sshbuf_tests() 132 r = sshbuf_consume(p1, 1); in sshbuf_tests() 181 ASSERT_INT_EQ(sshbuf_consume(p1, 223), 0); in sshbuf_tests()
|
D | test_sshbuf_fuzz.c | 77 sshbuf_consume : sshbuf_consume_end)(p1, r); in sshbuf_fuzz_tests()
|
/external/openssh/ |
D | sshbuf-getput-basic.c | 37 if ((r = sshbuf_consume(buf, len)) < 0) in sshbuf_get() 50 if ((r = sshbuf_consume(buf, 8)) < 0) in sshbuf_get_u64() 63 if ((r = sshbuf_consume(buf, 4)) < 0) in sshbuf_get_u32() 76 if ((r = sshbuf_consume(buf, 2)) < 0) in sshbuf_get_u16() 89 if ((r = sshbuf_consume(buf, 1)) < 0) in sshbuf_get_u8() 140 if (sshbuf_consume(buf, len + 4) != 0) { in sshbuf_get_string_direct() 392 if ((r = sshbuf_consume(buf, len + 4)) != 0 || /* Shouldn't happen */ in sshbuf_froms() 457 if (sshbuf_consume(buf, olen + 4) != 0) { in sshbuf_get_bignum2_bytes_direct()
|
D | packet.c | 864 if ((r = sshbuf_consume(state->outgoing_packet, 8)) != 0) in ssh_packet_send1() 891 if ((r = sshbuf_consume(state->outgoing_packet, 8 - padding)) != 0) in ssh_packet_send1() 1178 if ((r = sshbuf_consume(state->outgoing_packet, 5)) != 0) in ssh_packet_send2_wrapped() 1569 if ((r = sshbuf_consume(state->input, 4)) != 0) in ssh_packet_read_poll1() 1610 if ((r = sshbuf_consume(state->input, padded_len)) != 0) in ssh_packet_read_poll1() 1623 if ((r = sshbuf_consume(state->incoming_packet, 8 - len % 8)) != 0) in ssh_packet_read_poll1() 1700 (r = sshbuf_consume(state->input, need)) != 0 || in ssh_packet_read_poll2_mux() 1788 if ((r = sshbuf_consume(state->input, block_size)) != 0) in ssh_packet_read_poll2() 1842 if ((r = sshbuf_consume(state->input, aadlen + need + authlen)) != 0) in ssh_packet_read_poll2() 1861 if ((r = sshbuf_consume(state->input, mac->mac_len)) != 0) in ssh_packet_read_poll2() [all …]
|
D | buffer.c | 83 int ret = sshbuf_consume(buffer, bytes); in buffer_consume_ret()
|
D | sshbuf-getput-crypto.c | 66 if (sshbuf_consume(buf, 2 + len_bytes) != 0) { in sshbuf_get_bignum1()
|
D | ssh_api.c | 298 return sshbuf_consume(ssh_packet_get_output(ssh), len); in ssh_output_consume() 354 if ((r = sshbuf_consume(input, j)) != 0) in _ssh_read_banner()
|
D | sshbuf.h | 160 int sshbuf_consume(struct sshbuf *buf, size_t len);
|
D | ssh-keyscan.c | 208 (r = sshbuf_consume(msg, 8 - (c->c_plen & 7))) != 0 || /* padding */ in keygrab_ssh1() 216 if ((r = sshbuf_consume(msg, 8)) != 0 || /* cookie */ in keygrab_ssh1()
|
D | sshbuf.c | 382 sshbuf_consume(struct sshbuf *buf, size_t len) in sshbuf_consume() function
|
D | sftp-server.c | 1421 if ((r = sshbuf_consume(iqueue, 4)) != 0) in process() 1469 (r = sshbuf_consume(iqueue, msg_len - consumed)) != 0) in process() 1690 } else if ((r = sshbuf_consume(oqueue, len)) != 0) { in sftp_server_main()
|
D | krl.c | 946 if ((r = sshbuf_consume(copy, sizeof(KRL_MAGIC) - 1)) != 0) in ssh_krl_from_blob() 1055 if ((r = sshbuf_consume(copy, sects_off)) != 0) in ssh_krl_from_blob()
|
D | sshkey.c | 3263 if ((r = sshbuf_consume(decoded, sizeof(AUTH_MAGIC))) != 0 || in sshkey_parse_private2() 3340 if ((r = sshbuf_consume(decoded, encrypted_len + authlen)) != 0) in sshkey_parse_private2() 3626 if ((r = sshbuf_consume(copy, sizeof(LEGACY_BEGIN))) != 0) in sshkey_parse_public_rsa1_fileblob() 3697 if ((r = sshbuf_consume(copy, sizeof(LEGACY_BEGIN))) != 0) in sshkey_parse_private_rsa1()
|
D | kex.c | 287 if ((r = sshbuf_consume(b, KEX_COOKIE_LEN)) != 0) /* skip cookie */ in kex_buf2prop()
|
D | ssh-agent.c | 1125 if ((r = sshbuf_consume(sockets[i].output, in after_select()
|
D | ssh-keygen.c | 427 if ((r = sshbuf_consume(b, bytes)) != 0) in buffer_get_bignum_bits()
|