Searched refs:sshbuf_ptr (Results 1 - 25 of 47) sorted by relevance

12

/freebsd-10-stable/crypto/openssh/regress/unittests/sshbuf/
H A Dtest_sshbuf_fixed.c47 ASSERT_PTR_EQ(sshbuf_ptr(p1), test_buf);
54 ASSERT_PTR_EQ(sshbuf_ptr(p1), test_buf);
56 ASSERT_PTR_EQ(sshbuf_ptr(p1), test_buf + 1);
59 ASSERT_PTR_EQ(sshbuf_ptr(p1), test_buf + 5);
80 ASSERT_PTR_EQ(sshbuf_ptr(p2), sshbuf_ptr(p1));
81 ASSERT_PTR_NE(sshbuf_ptr(p1), NULL);
82 ASSERT_PTR_NE(sshbuf_ptr(p2), NULL);
87 ASSERT_PTR_EQ(sshbuf_ptr(p2), sshbuf_ptr(p
[all...]
H A Dtest_sshbuf_fuzz.c42 ASSERT_PTR_NE(sshbuf_ptr(p1), NULL);
43 ASSERT_MEM_ZERO_NE(sshbuf_ptr(p1), sshbuf_len(p1));
102 ASSERT_PTR_NE(sshbuf_ptr(p1), NULL);
103 ASSERT_MEM_ZERO_NE(sshbuf_ptr(p1), sshbuf_len(p1));
120 ASSERT_PTR_NE(sshbuf_ptr(p1), NULL);
123 ASSERT_PTR_NE(sshbuf_ptr(p1), NULL);
124 ASSERT_MEM_ZERO_NE(sshbuf_ptr(p1), sshbuf_len(p1));
H A Dtest_sshbuf_getput_basic.c82 cd = sshbuf_ptr(p1);
95 ASSERT_U8_EQ(*(sshbuf_ptr(p1)), 0x55);
102 ASSERT_U8_EQ(*(sshbuf_ptr(p1)), 0x55);
205 ASSERT_MEM_EQ(sshbuf_ptr(p1), x, 8);
215 ASSERT_MEM_EQ(sshbuf_ptr(p1), x, 8);
234 ASSERT_MEM_EQ(sshbuf_ptr(p1), x, 4);
244 ASSERT_MEM_EQ(sshbuf_ptr(p1), x, 4);
263 ASSERT_MEM_EQ(sshbuf_ptr(p1), x, 2);
273 ASSERT_MEM_EQ(sshbuf_ptr(p1), x, 2);
384 ASSERT_U32_EQ(PEEK_U32(sshbuf_ptr(p
[all...]
H A Dtest_sshbuf.c101 TEST_START("sshbuf_ptr on filled buffer");
102 cdp = sshbuf_ptr(p1);
119 cdp = sshbuf_ptr(p1);
124 cdp = sshbuf_ptr(p1);
153 cdp = sshbuf_ptr(p1);
193 cdp = sshbuf_ptr(p1);
215 cdp = sshbuf_ptr(p1);
H A Dtest_sshbuf_misc.c116 ASSERT_U8_EQ(*sshbuf_ptr(p1), 0xd0);
125 ASSERT_U16_EQ(PEEK_U16(sshbuf_ptr(p1)), 0xd00f);
134 ASSERT_U32_EQ(PEEK_U32(sshbuf_ptr(p1)), 0xd00fd00f);
H A Dtest_sshbuf_getput_crypto.c86 ASSERT_U16_EQ(PEEK_U16(sshbuf_ptr(p1)), (u_int16_t)BN_num_bits(bn));
87 ASSERT_MEM_EQ(sshbuf_ptr(p1) + 2, expbn1, sizeof(expbn1));
110 ASSERT_U16_EQ(PEEK_U16(sshbuf_ptr(p1)), (u_int16_t)BN_num_bits(bn));
111 ASSERT_MEM_EQ(sshbuf_ptr(p1) + 2, expbn2, sizeof(expbn2));
134 ASSERT_U32_EQ(PEEK_U32(sshbuf_ptr(p1)), (u_int32_t)BN_num_bytes(bn));
135 ASSERT_MEM_EQ(sshbuf_ptr(p1) + 4, expbn1, sizeof(expbn1));
158 ASSERT_U32_EQ(PEEK_U32(sshbuf_ptr(p1)), (u_int32_t)BN_num_bytes(bn) + 1);
159 ASSERT_U8_EQ(*(sshbuf_ptr(p1) + 4), 0x00);
160 ASSERT_MEM_EQ(sshbuf_ptr(p1) + 5, expbn2, sizeof(expbn2));
/freebsd-10-stable/crypto/openssh/regress/unittests/sshkey/
H A Dtest_file.c68 (const char *)sshbuf_ptr(pw), &k2, NULL), 0);
87 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf));
96 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf));
123 (const char *)sshbuf_ptr(pw), &k2, NULL), 0);
142 (const char *)sshbuf_ptr(pw), &k2, NULL), 0);
169 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf));
178 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf));
188 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf));
214 (const char *)sshbuf_ptr(pw), &k2, NULL), 0);
233 (const char *)sshbuf_ptr(p
[all...]
H A Dcommon.c59 for (p = sshbuf_ptr(ret); sshbuf_len(ret) > 0;) {
80 ASSERT_INT_NE(BN_hex2bn(&ret, (const char *)sshbuf_ptr(buf)), 0);
/freebsd-10-stable/crypto/openssh/
H A Dsshbuf-misc.c69 sshbuf_dump_data(sshbuf_ptr(buf), sshbuf_len(buf), f);
76 const u_char *p = sshbuf_ptr(buf);
96 const u_char *p = sshbuf_ptr(buf);
142 const u_char *p = NULL, *s = sshbuf_ptr(buf);
H A Dkexc25519c.c135 sshbuf_ptr(kex->my), sshbuf_len(kex->my),
136 sshbuf_ptr(kex->peer), sshbuf_len(kex->peer),
140 sshbuf_ptr(shared_secret), sshbuf_len(shared_secret),
H A Dkexc25519s.c116 sshbuf_ptr(kex->peer), sshbuf_len(kex->peer),
117 sshbuf_ptr(kex->my), sshbuf_len(kex->my),
121 sshbuf_ptr(shared_secret), sshbuf_len(shared_secret),
H A Dsshbuf-getput-basic.c34 const u_char *p = sshbuf_ptr(buf);
47 const u_char *p = sshbuf_ptr(buf);
60 const u_char *p = sshbuf_ptr(buf);
73 const u_char *p = sshbuf_ptr(buf);
86 const u_char *p = sshbuf_ptr(buf);
154 const u_char *p = sshbuf_ptr(buf);
251 return sshbuf_put(buf, sshbuf_ptr(v), sshbuf_len(v));
374 return sshbuf_put_string(buf, sshbuf_ptr(v), sshbuf_len(v));
H A Dmsg.c58 if (atomicio(vwrite, fd, (u_char *)sshbuf_ptr(m), mlen) != mlen) {
H A Ddigest-openssl.c152 return ssh_digest_update(ctx, sshbuf_ptr(b), sshbuf_len(b));
203 return ssh_digest_memory(alg, sshbuf_ptr(b), sshbuf_len(b), d, dlen);
H A Dkexecdhs.c151 sshbuf_ptr(kex->peer), sshbuf_len(kex->peer),
152 sshbuf_ptr(kex->my), sshbuf_len(kex->my),
H A Dpacket.c349 sshbuf_ptr(state->incoming_packet), dlen,
933 checksum = ssh_crc32(sshbuf_ptr(state->outgoing_packet),
952 sshbuf_ptr(state->outgoing_packet),
1202 type = (sshbuf_ptr(state->outgoing_packet))[5];
1286 sshbuf_ptr(state->outgoing_packet), len,
1296 sshbuf_ptr(state->outgoing_packet),
1358 type = sshbuf_ptr(state->outgoing_packet)[5];
1586 len = PEEK_U32(sshbuf_ptr(state->input));
1613 sshbuf_ptr(state->input), padded_len)) {
1640 sshbuf_ptr(stat
[all...]
H A Dkexgexc.c227 sshbuf_ptr(kex->my), sshbuf_len(kex->my),
228 sshbuf_ptr(kex->peer), sshbuf_len(kex->peer),
H A Dkexecdhc.c182 sshbuf_ptr(kex->my), sshbuf_len(kex->my),
183 sshbuf_ptr(kex->peer), sshbuf_len(kex->peer),
H A Ddigest-libc.c211 return ssh_digest_update(ctx, sshbuf_ptr(b), sshbuf_len(b));
262 return ssh_digest_memory(alg, sshbuf_ptr(b), sshbuf_len(b), d, dlen);
H A Dkexgexs.c200 sshbuf_ptr(kex->peer), sshbuf_len(kex->peer),
201 sshbuf_ptr(kex->my), sshbuf_len(kex->my),
H A Dkexdhs.c171 sshbuf_ptr(kex->peer), sshbuf_len(kex->peer),
172 sshbuf_ptr(kex->my), sshbuf_len(kex->my),
H A Dkexdhc.c177 sshbuf_ptr(kex->my), sshbuf_len(kex->my),
178 sshbuf_ptr(kex->peer), sshbuf_len(kex->peer),
H A Dssh-ecdsa.c95 memcpy(*sigp, sshbuf_ptr(b), len);
H A Dssh-ed25519.c78 memcpy(*sigp, sshbuf_ptr(b), len);
H A Dsshbuf.c125 if ((ret = sshbuf_from(sshbuf_ptr(buf), sshbuf_len(buf))) == NULL)
287 sshbuf_ptr(const struct sshbuf *buf) function

Completed in 205 milliseconds

12