Home
last modified time | relevance | path

Searched refs:sshbuf_consume (Results 1 – 21 of 21) 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.c82 sshbuf_consume : sshbuf_consume_end)(p1, r); in sshbuf_fuzz_tests()
/external/openssh/
Dsshbuf-getput-basic.c40 if ((r = sshbuf_consume(buf, len)) < 0) in sshbuf_get()
53 if ((r = sshbuf_consume(buf, 8)) < 0) in sshbuf_get_u64()
66 if ((r = sshbuf_consume(buf, 4)) < 0) in sshbuf_get_u32()
79 if ((r = sshbuf_consume(buf, 2)) < 0) in sshbuf_get_u16()
92 if ((r = sshbuf_consume(buf, 1)) < 0) in sshbuf_get_u8()
230 if (sshbuf_consume(buf, len + 4) != 0) { in sshbuf_get_string_direct()
559 if ((r = sshbuf_consume(buf, len + 4)) != 0 || /* Shouldn't happen */ in sshbuf_froms()
624 if (sshbuf_consume(buf, olen + 4) != 0) { in sshbuf_get_bignum2_bytes_direct()
Dssh-pkcs11-helper.c279 if ((r = sshbuf_consume(iqueue, 4)) != 0 || in process()
311 if ((r = sshbuf_consume(iqueue, msg_len - consumed)) != 0) in process()
414 } else if ((r = sshbuf_consume(oqueue, len)) != 0) { in main()
Dssh_api.c311 return sshbuf_consume(ssh_packet_get_output(ssh), len); in ssh_output_consume()
372 if ((r = sshbuf_consume(input, j)) != 0) in _ssh_read_banner()
Dpacket.c1102 if ((r = sshbuf_consume(state->outgoing_packet, 5)) != 0) in ssh_packet_send2_wrapped()
1472 (r = sshbuf_consume(state->input, need)) != 0 || in ssh_packet_read_poll2_mux()
1560 if ((r = sshbuf_consume(state->input, block_size)) != 0) in ssh_packet_read_poll2()
1614 if ((r = sshbuf_consume(state->input, aadlen + need + authlen)) != 0) in ssh_packet_read_poll2()
1633 if ((r = sshbuf_consume(state->input, mac->mac_len)) != 0) in ssh_packet_read_poll2()
1658 if ((r = sshbuf_consume(state->incoming_packet, 4 + 1)) != 0 || in ssh_packet_read_poll2()
1981 if ((r = sshbuf_consume(state->output, len)) != 0) in ssh_packet_write_poll()
Dchannels.c1305 if ((r = sshbuf_consume(input, len)) != 0) { in channel_decode_socks4()
1332 if ((r = sshbuf_consume(input, len)) != 0) { in channel_decode_socks4()
1407 if ((r = sshbuf_consume(input, nmethods + 2)) != 0) { in channel_decode_socks5()
1453 if ((r = sshbuf_consume(input, sizeof(s5_req))) != 0) { in channel_decode_socks5()
1459 if ((r = sshbuf_consume(input, 1)) != 0) { in channel_decode_socks5()
1598 if ((r = sshbuf_consume(c->output, have)) != 0) { in channel_before_prepare_select_rdynamic()
1636 if ((r = sshbuf_consume(c->input, len)) != 0) { in channel_before_prepare_select_rdynamic()
2077 if ((r = sshbuf_consume(c->output, len)) != 0) {
2107 if ((r = sshbuf_consume(c->extended, len)) != 0) {
2290 if ((r = sshbuf_consume(c->output, len)) != 0)
[all …]
Dsshbuf.h151 int sshbuf_consume(struct sshbuf *buf, size_t len);
Dsshkey-xmss.c1025 if ((r = sshbuf_consume(encoded, sizeof(XMSS_MAGIC))) != 0 || in sshkey_xmss_decrypt_state()
1057 if ((r = sshbuf_consume(encoded, encrypted_len + authlen)) != 0) in sshkey_xmss_decrypt_state()
1065 if ((r = sshbuf_consume(decrypted, aadlen)) != 0) in sshkey_xmss_decrypt_state()
Dssh-pkcs11-client.c67 if ((r = sshbuf_consume(m, mlen)) != 0) in send_msg()
Dsshbuf.c366 sshbuf_consume(struct sshbuf *buf, size_t len) in sshbuf_consume() function
Dsshsig.c108 if ((r = sshbuf_consume(sbuf, sizeof(BEGIN_SIGNATURE)-1)) != 0) { in sshsig_dearmor()
232 (r = sshbuf_consume(buf, (sizeof(MAGIC_PREAMBLE)-1))) != 0 || in sshsig_parse_preamble()
Dsftp-server.c1488 if ((r = sshbuf_consume(iqueue, 4)) != 0) in process()
1536 (r = sshbuf_consume(iqueue, msg_len - consumed)) != 0) in process()
1758 } else if ((r = sshbuf_consume(oqueue, len)) != 0) { in sftp_server_main()
Dkrl.c1012 if ((r = sshbuf_consume(copy, sizeof(KRL_MAGIC) - 1)) != 0) in ssh_krl_from_blob()
1121 if ((r = sshbuf_consume(copy, sects_off)) != 0) in ssh_krl_from_blob()
Dssh-agent.c984 if ((r = sshbuf_consume(sockets[socknum].output, len)) != 0) in handle_conn_write()
Dkex.c362 if ((r = sshbuf_consume(b, KEX_COOKIE_LEN)) != 0) { /* skip cookie */ in kex_buf2prop()
Dsshkey.c4056 if ((r = sshbuf_consume(decoded, sizeof(AUTH_MAGIC))) != 0 || in private2_decrypt()
4137 if ((r = sshbuf_consume(decoded, encrypted_len + authlen)) != 0) in private2_decrypt()
4277 if ((r = sshbuf_consume(decoded, sizeof(AUTH_MAGIC))) != 0 || in sshkey_parse_private2_pubkey()
Dmonitor.c1276 if ((r = sshbuf_consume(b, session_id2_len)) != 0) in monitor_valid_userblob()
Dclientloop.c1457 else if ((r = sshbuf_consume(stderr_buffer, len)) != 0) in client_loop()
Dsshconnect2.c1388 if ((r = sshbuf_consume(b, skip + 1)) != 0) in sign_and_send_pubkey()
Dssh-keygen.c467 if ((r = sshbuf_consume(b, bytes)) != 0) in buffer_get_bignum_bits()