Home
last modified time | relevance | path

Searched refs:sshbuf_consume (Results 1 – 16 of 16) sorted by relevance

/external/openssh/regress/unittests/sshbuf/
Dtest_sshbuf.c69 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()
Dtest_sshbuf_fuzz.c77 sshbuf_consume : sshbuf_consume_end)(p1, r); in sshbuf_fuzz_tests()
/external/openssh/
Dsshbuf-getput-basic.c37 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()
Dpacket.c864 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 …]
Dbuffer.c83 int ret = sshbuf_consume(buffer, bytes); in buffer_consume_ret()
Dsshbuf-getput-crypto.c66 if (sshbuf_consume(buf, 2 + len_bytes) != 0) { in sshbuf_get_bignum1()
Dssh_api.c298 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()
Dsshbuf.h160 int sshbuf_consume(struct sshbuf *buf, size_t len);
Dssh-keyscan.c208 (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()
Dsshbuf.c382 sshbuf_consume(struct sshbuf *buf, size_t len) in sshbuf_consume() function
Dsftp-server.c1421 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()
Dkrl.c946 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()
Dsshkey.c3263 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()
Dkex.c287 if ((r = sshbuf_consume(b, KEX_COOKIE_LEN)) != 0) /* skip cookie */ in kex_buf2prop()
Dssh-agent.c1125 if ((r = sshbuf_consume(sockets[i].output, in after_select()
Dssh-keygen.c427 if ((r = sshbuf_consume(b, bytes)) != 0) in buffer_get_bignum_bits()