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

123

/freebsd-current/crypto/openssh/regress/unittests/sshbuf/
H A Dtest_sshbuf_fixed.c46 ASSERT_PTR_EQ(sshbuf_ptr(p1), test_buf);
53 ASSERT_PTR_EQ(sshbuf_ptr(p1), test_buf);
55 ASSERT_PTR_EQ(sshbuf_ptr(p1), test_buf + 1);
58 ASSERT_PTR_EQ(sshbuf_ptr(p1), test_buf + 5);
79 ASSERT_PTR_EQ(sshbuf_ptr(p2), sshbuf_ptr(p1));
80 ASSERT_PTR_NE(sshbuf_ptr(p1), NULL);
81 ASSERT_PTR_NE(sshbuf_ptr(p2), NULL);
86 ASSERT_PTR_EQ(sshbuf_ptr(p2), sshbuf_ptr(p
[all...]
H A Dtest_sshbuf_fuzz.c46 ASSERT_PTR_NE(sshbuf_ptr(p1), NULL);
47 ASSERT_MEM_ZERO_NE(sshbuf_ptr(p1), sshbuf_len(p1));
106 ASSERT_PTR_NE(sshbuf_ptr(p1), NULL);
107 ASSERT_MEM_ZERO_NE(sshbuf_ptr(p1), sshbuf_len(p1));
124 ASSERT_PTR_NE(sshbuf_ptr(p1), NULL);
127 ASSERT_PTR_NE(sshbuf_ptr(p1), NULL);
128 ASSERT_MEM_ZERO_NE(sshbuf_ptr(p1), sshbuf_len(p1));
H A Dtest_sshbuf.c104 TEST_START("sshbuf_ptr on filled buffer");
105 cdp = sshbuf_ptr(p1);
122 cdp = sshbuf_ptr(p1);
127 cdp = sshbuf_ptr(p1);
156 cdp = sshbuf_ptr(p1);
196 cdp = sshbuf_ptr(p1);
218 cdp = sshbuf_ptr(p1);
H A Dtest_sshbuf_getput_basic.c81 cd = sshbuf_ptr(p1);
94 ASSERT_U8_EQ(*(sshbuf_ptr(p1)), 0x55);
101 ASSERT_U8_EQ(*(sshbuf_ptr(p1)), 0x55);
204 ASSERT_MEM_EQ(sshbuf_ptr(p1), x, 8);
214 ASSERT_MEM_EQ(sshbuf_ptr(p1), x, 8);
233 ASSERT_MEM_EQ(sshbuf_ptr(p1), x, 4);
243 ASSERT_MEM_EQ(sshbuf_ptr(p1), x, 4);
262 ASSERT_MEM_EQ(sshbuf_ptr(p1), x, 2);
272 ASSERT_MEM_EQ(sshbuf_ptr(p1), x, 2);
383 ASSERT_U32_EQ(PEEK_U32(sshbuf_ptr(p
[all...]
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_U32_EQ(PEEK_U32(sshbuf_ptr(p1)), (u_int32_t)BN_num_bytes(bn));
87 ASSERT_MEM_EQ(sshbuf_ptr(p1) + 4, expbn1, sizeof(expbn1));
110 ASSERT_U32_EQ(PEEK_U32(sshbuf_ptr(p1)), (u_int32_t)BN_num_bytes(bn) + 1);
111 ASSERT_U8_EQ(*(sshbuf_ptr(p1) + 4), 0x00);
112 ASSERT_MEM_EQ(sshbuf_ptr(p1) + 5, expbn2, sizeof(expbn2));
/freebsd-current/crypto/openssh/regress/unittests/sshkey/
H A Dtest_file.c78 (const char *)sshbuf_ptr(pw), &k2, NULL), 0);
97 (const char *)sshbuf_ptr(pw), &k2, NULL), 0);
142 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf));
151 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf));
161 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf));
188 (const char *)sshbuf_ptr(pw), &k2, NULL), 0);
207 (const char *)sshbuf_ptr(pw), &k2, NULL), 0);
234 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf));
243 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf));
253 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(bu
[all...]
H A Dcommon.c59 for (p = sshbuf_ptr(ret); sshbuf_len(ret) > 0;) {
81 ASSERT_INT_NE(BN_hex2bn(&ret, (const char *)sshbuf_ptr(buf)), 0);
H A Dtest_sshkey.c106 sshbuf_ptr(b), sshbuf_len(b), sig_alg, NULL, NULL, 0), 0);
452 ASSERT_INT_EQ(sshkey_from_blob(sshbuf_ptr(b), sshbuf_len(b), &k3), 0);
527 ASSERT_INT_EQ(sshkey_from_blob(sshbuf_ptr(b), sshbuf_len(b), &k4),
/freebsd-current/crypto/openssh/
H A Dsshbuf-misc.c70 sshbuf_dump_data(sshbuf_ptr(buf), sshbuf_len(buf), f);
77 const u_char *p = sshbuf_ptr(buf);
107 if (b64_ntop(sshbuf_ptr(d), sshbuf_len(d), s, slen) == -1) {
187 if (l <= 1 || sshbuf_ptr(b) == NULL) {
191 if (sshbuf_ptr(b)[l - 1] != '=')
217 const u_char *p = NULL, *s = sshbuf_ptr(buf);
241 if (sshbuf_ptr(b) == NULL)
247 if (timingsafe_bcmp(sshbuf_ptr(b) + offset, s, len) != 0)
260 if (sshbuf_ptr(b) == NULL)
266 if ((p = memmem(sshbuf_ptr(
[all...]
H A Dkexc25519.c131 client_pub = sshbuf_ptr(client_blob);
152 dump_digest("encoded shared secret:", sshbuf_ptr(buf), sshbuf_len(buf));
179 server_pub = sshbuf_ptr(server_blob);
192 dump_digest("encoded shared secret:", sshbuf_ptr(buf), sshbuf_len(buf));
H A Dkexsntrup761x25519.c95 client_pub = sshbuf_ptr(client_blob);
137 sshbuf_ptr(buf), sshbuf_len(buf));
145 dump_digest("encoded shared secret:", sshbuf_ptr(buf), sshbuf_len(buf));
177 ciphertext = sshbuf_ptr(server_blob);
202 sshbuf_ptr(buf), sshbuf_len(buf));
209 dump_digest("encoded shared secret:", sshbuf_ptr(buf), sshbuf_len(buf));
H A Dsshbuf-getput-basic.c37 const u_char *p = sshbuf_ptr(buf);
50 const u_char *p = sshbuf_ptr(buf);
63 const u_char *p = sshbuf_ptr(buf);
76 const u_char *p = sshbuf_ptr(buf);
89 const u_char *p = sshbuf_ptr(buf);
102 if (sshbuf_ptr(buf) == NULL) /* calls sshbuf_check_sanity() */
122 *p = sshbuf_ptr(buf) + offset;
244 const u_char *p = sshbuf_ptr(buf);
343 return sshbuf_put(buf, sshbuf_ptr(v), sshbuf_len(v));
543 return sshbuf_put_string(buf, sshbuf_ptr(
[all...]
H A Ddigest-openssl.c155 return ssh_digest_update(ctx, sshbuf_ptr(b), sshbuf_len(b));
205 return ssh_digest_memory(alg, sshbuf_ptr(b), sshbuf_len(b), d, dlen);
H A Ddigest-libc.c215 return ssh_digest_update(ctx, sshbuf_ptr(b), sshbuf_len(b));
265 return ssh_digest_memory(alg, sshbuf_ptr(b), sshbuf_len(b), d, dlen);
H A Dpacket.c398 sshbuf_ptr(state->incoming_packet), dlen,
1096 type = (sshbuf_ptr(state->outgoing_packet))[5];
1180 sshbuf_ptr(state->outgoing_packet), len,
1190 sshbuf_ptr(state->outgoing_packet),
1262 type = sshbuf_ptr(state->outgoing_packet)[5];
1440 cp = sshbuf_ptr(state->input);
1502 sshbuf_ptr(state->input), sshbuf_len(state->input)) != 0)
1527 state->p_send.seqnr, cp, sshbuf_ptr(state->input),
1530 state->packlen = PEEK_U32(sshbuf_ptr(state->incoming_packet));
1583 sshbuf_ptr(stat
[all...]
H A Dssh_api.c312 return sshbuf_ptr(output);
339 const u_char *s = sshbuf_ptr(input);
366 memcmp(sshbuf_ptr(banner), "SSH-", 4) == 0)
369 sshbuf_ptr(banner));
H A Dssh-pkcs11-helper.c266 cp = sshbuf_ptr(iqueue);
401 len = write(out, sshbuf_ptr(oqueue),
H A Dsshbuf.c149 if ((ret = sshbuf_from(sshbuf_ptr(buf), sshbuf_len(buf))) == NULL)
297 sshbuf_ptr(const struct sshbuf *buf) function
H A Dkexgexc.c201 sshbuf_ptr(shared_secret), sshbuf_len(shared_secret),
H A Dssh-ed25519.c190 memcpy(*sigp, sshbuf_ptr(b), len);
H A Dssh-ed25519-sk.c219 sm = sshbuf_ptr(encoded);
H A Dauth2-hostbased.c151 sshbuf_ptr(b), sshbuf_len(b), pkalg, ssh->compat, NULL)) == 0)
H A Dkexgexs.c179 sshbuf_ptr(shared_secret), sshbuf_len(shared_secret),
/freebsd-current/crypto/openssh/regress/misc/fuzz-harness/
H A Dkex_fuzz.cc83 if ((r = ssh_input_append(server, sshbuf_ptr(ts->sin),
91 if ((r = ssh_input_append(client, sshbuf_ptr(ts->cin),
359 if (fwrite(sshbuf_ptr(ts->smsgs), 1,
370 if (fwrite(sshbuf_ptr(ts->cmsgs), 1,

Completed in 178 milliseconds

123