/freebsd-10-stable/crypto/openssh/regress/unittests/sshbuf/ |
H A D | test_sshbuf_getput_basic.c | 81 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 D | test_sshbuf_fuzz.c | 43 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 D | test_sshbuf.c | 50 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 D | test_sshbuf_fixed.c | 62 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 D | test_sshbuf_getput_crypto.c | 85 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 D | test_sshbuf_misc.c | 115 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 D | common.c | 59 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 D | test_fuzz.c | 61 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 D | sshbuf-misc.c | 68 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 D | kexc25519c.c | 135 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 D | kexc25519s.c | 116 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 D | ssh-ecdsa.c | 89 len = sshbuf_len(b); 144 if (sshbuf_len(b) != 0) { 159 if (sshbuf_len(sigbuf) != 0) {
|
H A D | krl.c | 693 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 D | msg.c | 48 u_int mlen = sshbuf_len(m);
|
H A D | packet.c | 343 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 D | digest-openssl.c | 152 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 D | kexecdhs.c | 151 sshbuf_ptr(kex->peer), sshbuf_len(kex->peer), 152 sshbuf_ptr(kex->my), sshbuf_len(kex->my),
|
H A D | ssh-ed25519.c | 72 len = sshbuf_len(b); 123 if (sshbuf_len(b) != 0) {
|
H A D | sshbuf.c | 125 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 D | sshkey.c | 643 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 D | buffer.h | 34 #define buffer_len(b) ((u_int) sshbuf_len(b))
|
H A D | authfile.c | 64 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 D | sshbuf-getput-basic.c | 160 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 D | sshbuf-getput-crypto.c | 56 if (sshbuf_len(buf) < 2) 62 if (sshbuf_len(buf) < 2 + len_bytes)
|
H A D | kexgexc.c | 227 sshbuf_ptr(kex->my), sshbuf_len(kex->my), 228 sshbuf_ptr(kex->peer), sshbuf_len(kex->peer),
|