Searched refs:sshbuf_len (Results 1 - 25 of 51) sorted by relevance

123

/freebsd-10-stable/crypto/openssh/regress/unittests/sshbuf/
H A Dtest_sshbuf_getput_basic.c81 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 5);
94 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 1);
101 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 1);
109 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 1);
117 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 10);
120 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 2);
124 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 2);
127 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 2);
135 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 10);
138 ASSERT_SIZE_T_EQ(sshbuf_len(p
[all...]
H A Dtest_sshbuf_fuzz.c43 ASSERT_MEM_ZERO_NE(sshbuf_ptr(p1), sshbuf_len(p1));
51 sz2 = sshbuf_len(p1);
57 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sz2);
62 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sz2 + r);
74 sz2 = sshbuf_len(p1);
81 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sz2);
85 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sz2 - r);
103 ASSERT_MEM_ZERO_NE(sshbuf_ptr(p1), sshbuf_len(p1));
124 ASSERT_MEM_ZERO_NE(sshbuf_ptr(p1), sshbuf_len(p1));
H A Dtest_sshbuf.c50 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 0);
97 TEST_START("sshbuf_len on filled buffer");
98 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 4);
111 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 4);
113 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 4);
116 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 4);
118 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 3);
123 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 1);
129 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 1);
131 ASSERT_SIZE_T_EQ(sshbuf_len(p
[all...]
H A Dtest_sshbuf_fixed.c62 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 0);
85 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sshbuf_len(p2));
93 ASSERT_SIZE_T_EQ(sshbuf_len(p2), 0);
110 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sizeof(test_buf) - 1);
112 ASSERT_SIZE_T_EQ(sshbuf_len(p2), sizeof(test_buf) + 4 - 1);
114 ASSERT_SIZE_T_EQ(sshbuf_len(p2), 0);
117 ASSERT_SIZE_T_EQ(sshbuf_len(p3), sizeof(test_buf) - 1);
H A Dtest_sshbuf_getput_crypto.c85 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sizeof(expbn1) + 2);
99 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 0);
109 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sizeof(expbn2) + 2);
123 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 0);
133 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sizeof(expbn1) + 4);
147 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 0);
157 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sizeof(expbn2) + 4 + 1); /* MSB */
172 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 0);
183 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 2 + sizeof(expbn1));
188 ASSERT_SIZE_T_EQ(sshbuf_len(p
[all...]
H A Dtest_sshbuf_misc.c115 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 1);
124 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 2);
133 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 4);
/freebsd-10-stable/crypto/openssh/regress/unittests/sshkey/
H A Dcommon.c59 for (p = sshbuf_ptr(ret); sshbuf_len(ret) > 0;) {
60 if (p[sshbuf_len(ret) - 1] == '\r' ||
61 p[sshbuf_len(ret) - 1] == '\t' ||
62 p[sshbuf_len(ret) - 1] == ' ' ||
63 p[sshbuf_len(ret) - 1] == '\n')
H A Dtest_fuzz.c61 sshbuf_mutable_ptr(buf), sshbuf_len(buf));
62 ASSERT_INT_EQ(sshkey_from_blob(sshbuf_ptr(buf), sshbuf_len(buf),
112 sshbuf_mutable_ptr(buf), sshbuf_len(buf));
133 sshbuf_mutable_ptr(buf), sshbuf_len(buf));
154 sshbuf_len(buf));
174 sshbuf_len(buf));
194 sshbuf_len(buf));
214 sshbuf_len(buf));
235 sshbuf_len(buf));
255 sshbuf_len(bu
[all...]
/freebsd-10-stable/crypto/openssh/
H A Dsshbuf-misc.c68 fprintf(f, "buffer %p len = %zu\n", buf, sshbuf_len(buf));
69 sshbuf_dump_data(sshbuf_ptr(buf), sshbuf_len(buf), f);
75 size_t i, j, len = sshbuf_len(buf);
95 size_t len = sshbuf_len(buf), plen;
143 size_t l = sshbuf_len(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 Dssh-ecdsa.c89 len = sshbuf_len(b);
144 if (sshbuf_len(b) != 0) {
159 if (sshbuf_len(sigbuf) != 0) {
H A Dkrl.c693 if (sshbuf_len(sect) != 0) {
749 if (sshbuf_len(sect) != 0) {
760 if (sshbuf_len(sect) != 0) {
775 sshbuf_ptr(buf), sshbuf_len(buf), NULL, 0)) != 0)
828 while (sshbuf_len(buf) > 0) {
839 while (sshbuf_len(subsect) > 0) {
885 while (sshbuf_len(subsect) > 0) {
901 if (sshbuf_len(subsect) > 0) {
936 if (sshbuf_len(buf) < sizeof(KRL_MAGIC) - 1 ||
978 if (sshbuf_len(bu
[all...]
H A Dmsg.c48 u_int mlen = sshbuf_len(m);
H A Dpacket.c343 while (sshbuf_len(state->incoming_packet) < dlen)
377 if (sshbuf_len(state->input) >= discard)
379 state->packet_discard = discard - sshbuf_len(state->input);
680 if (sshbuf_len(in) == 0)
687 ssh->state->compression_out_stream.avail_in = sshbuf_len(in);
728 ssh->state->compression_in_stream.avail_in = sshbuf_len(in);
917 len = sshbuf_len(state->outgoing_packet) + 4 - 8;
934 sshbuf_len(state->outgoing_packet));
949 sshbuf_len(state->outgoing_packet), &cp)) != 0)
953 sshbuf_len(stat
[all...]
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 Dssh-ed25519.c72 len = sshbuf_len(b);
123 if (sshbuf_len(b) != 0) {
H A Dsshbuf.c125 if ((ret = sshbuf_from(sshbuf_ptr(buf), sshbuf_len(buf))) == NULL)
271 sshbuf_len(const struct sshbuf *buf) function
381 if (len > sshbuf_len(buf))
398 if (len > sshbuf_len(buf))
H A Dsshkey.c643 if (sshbuf_len(a->certblob) != sshbuf_len(b->certblob))
646 sshbuf_len(a->certblob)) != 0)
736 if (sshbuf_len(key->cert->certblob) == 0)
841 len = sshbuf_len(b);
1303 sshbuf_len(blob), &k)) != 0) {
1484 if (fwrite(sshbuf_ptr(b), sshbuf_len(b), 1, f) != 1) {
1860 signed_len = sshbuf_len(key->cert->certblob) - sshbuf_len(b);
1874 while (sshbuf_len(principal
[all...]
H A Dbuffer.h34 #define buffer_len(b) ((u_int) sshbuf_len(b))
H A Dauthfile.c64 sshbuf_len(keybuf)) != sshbuf_len(keybuf)) {
119 if (sshbuf_len(blob) > MAX_KEY_FILE_SIZE) {
125 st.st_size != (off_t)sshbuf_len(blob)) {
H A Dsshbuf-getput-basic.c160 if (sshbuf_len(buf) < 4) {
169 if (sshbuf_len(buf) - 4 < len) {
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 Dsshbuf-getput-crypto.c56 if (sshbuf_len(buf) < 2)
62 if (sshbuf_len(buf) < 2 + len_bytes)
H A Dkexgexc.c227 sshbuf_ptr(kex->my), sshbuf_len(kex->my),
228 sshbuf_ptr(kex->peer), sshbuf_len(kex->peer),

Completed in 235 milliseconds

123