| /freebsd-10-stable/crypto/openssh/regress/unittests/sshbuf/ |
| D | test_sshbuf_getput_basic.c | 81 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 5); in sshbuf_getput_basic_tests() 94 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 1); in sshbuf_getput_basic_tests() 101 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 1); in sshbuf_getput_basic_tests() 109 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 1); in sshbuf_getput_basic_tests() 117 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 10); in sshbuf_getput_basic_tests() 120 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 2); in sshbuf_getput_basic_tests() 124 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 2); in sshbuf_getput_basic_tests() 127 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 2); in sshbuf_getput_basic_tests() 135 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 10); in sshbuf_getput_basic_tests() 138 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 6); in sshbuf_getput_basic_tests() [all …]
|
| D | test_sshbuf.c | 50 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 0); in sshbuf_tests() 98 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 4); in sshbuf_tests() 111 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 4); in sshbuf_tests() 113 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 4); in sshbuf_tests() 116 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 4); in sshbuf_tests() 118 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 3); in sshbuf_tests() 123 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 1); in sshbuf_tests() 129 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 1); in sshbuf_tests() 131 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 0); in sshbuf_tests() 147 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 4); in sshbuf_tests() [all …]
|
| D | test_sshbuf_getput_crypto.c | 85 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sizeof(expbn1) + 2); in sshbuf_getput_crypto_tests() 99 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 0); in sshbuf_getput_crypto_tests() 109 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sizeof(expbn2) + 2); in sshbuf_getput_crypto_tests() 123 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 0); in sshbuf_getput_crypto_tests() 133 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sizeof(expbn1) + 4); in sshbuf_getput_crypto_tests() 147 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 0); in sshbuf_getput_crypto_tests() 157 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sizeof(expbn2) + 4 + 1); /* MSB */ in sshbuf_getput_crypto_tests() 172 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 0); in sshbuf_getput_crypto_tests() 183 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 2 + sizeof(expbn1)); in sshbuf_getput_crypto_tests() 188 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 2); in sshbuf_getput_crypto_tests() [all …]
|
| D | test_sshbuf_fuzz.c | 43 ASSERT_MEM_ZERO_NE(sshbuf_ptr(p1), sshbuf_len(p1)); in sshbuf_fuzz_tests() 51 sz2 = sshbuf_len(p1); in sshbuf_fuzz_tests() 57 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sz2); in sshbuf_fuzz_tests() 62 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sz2 + r); in sshbuf_fuzz_tests() 74 sz2 = sshbuf_len(p1); in sshbuf_fuzz_tests() 81 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sz2); in sshbuf_fuzz_tests() 85 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sz2 - r); in sshbuf_fuzz_tests() 103 ASSERT_MEM_ZERO_NE(sshbuf_ptr(p1), sshbuf_len(p1)); in sshbuf_fuzz_tests() 124 ASSERT_MEM_ZERO_NE(sshbuf_ptr(p1), sshbuf_len(p1)); in sshbuf_fuzz_tests()
|
| D | test_sshbuf_fixed.c | 62 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 0); in sshbuf_fixed() 85 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sshbuf_len(p2)); in sshbuf_fixed() 93 ASSERT_SIZE_T_EQ(sshbuf_len(p2), 0); in sshbuf_fixed() 110 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sizeof(test_buf) - 1); in sshbuf_fixed() 112 ASSERT_SIZE_T_EQ(sshbuf_len(p2), sizeof(test_buf) + 4 - 1); in sshbuf_fixed() 114 ASSERT_SIZE_T_EQ(sshbuf_len(p2), 0); in sshbuf_fixed() 117 ASSERT_SIZE_T_EQ(sshbuf_len(p3), sizeof(test_buf) - 1); in sshbuf_fixed()
|
| D | test_sshbuf_misc.c | 115 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 1); in sshbuf_misc_tests() 124 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 2); in sshbuf_misc_tests() 133 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 4); in sshbuf_misc_tests()
|
| /freebsd-10-stable/crypto/openssh/regress/unittests/sshkey/ |
| D | common.c | 59 for (p = sshbuf_ptr(ret); sshbuf_len(ret) > 0;) { in load_text_file() 60 if (p[sshbuf_len(ret) - 1] == '\r' || in load_text_file() 61 p[sshbuf_len(ret) - 1] == '\t' || in load_text_file() 62 p[sshbuf_len(ret) - 1] == ' ' || in load_text_file() 63 p[sshbuf_len(ret) - 1] == '\n') in load_text_file()
|
| D | test_fuzz.c | 61 sshbuf_mutable_ptr(buf), sshbuf_len(buf)); in public_fuzz() 62 ASSERT_INT_EQ(sshkey_from_blob(sshbuf_ptr(buf), sshbuf_len(buf), in public_fuzz() 112 sshbuf_mutable_ptr(buf), sshbuf_len(buf)); in sshkey_fuzz_tests() 133 sshbuf_mutable_ptr(buf), sshbuf_len(buf)); in sshkey_fuzz_tests() 154 sshbuf_len(buf)); in sshkey_fuzz_tests() 174 sshbuf_len(buf)); in sshkey_fuzz_tests() 194 sshbuf_len(buf)); in sshkey_fuzz_tests() 214 sshbuf_len(buf)); in sshkey_fuzz_tests() 235 sshbuf_len(buf)); in sshkey_fuzz_tests() 255 sshbuf_len(buf)); in sshkey_fuzz_tests() [all …]
|
| /freebsd-10-stable/crypto/openssh/ |
| D | sshbuf-misc.c | 68 fprintf(f, "buffer %p len = %zu\n", buf, sshbuf_len(buf)); in sshbuf_dump() 69 sshbuf_dump_data(sshbuf_ptr(buf), sshbuf_len(buf), f); in sshbuf_dump() 75 size_t i, j, len = sshbuf_len(buf); in sshbuf_dtob16() 95 size_t len = sshbuf_len(buf), plen; in sshbuf_dtob64() 143 size_t l = sshbuf_len(buf); in sshbuf_dup_string()
|
| D | krl.c | 693 if (sshbuf_len(sect) != 0) { in revoked_certs_generate() 749 if (sshbuf_len(sect) != 0) { in ssh_krl_to_blob() 760 if (sshbuf_len(sect) != 0) { in ssh_krl_to_blob() 775 sshbuf_ptr(buf), sshbuf_len(buf), NULL, 0)) != 0) in ssh_krl_to_blob() 828 while (sshbuf_len(buf) > 0) { in parse_revoked_certs() 839 while (sshbuf_len(subsect) > 0) { in parse_revoked_certs() 885 while (sshbuf_len(subsect) > 0) { in parse_revoked_certs() 901 if (sshbuf_len(subsect) > 0) { in parse_revoked_certs() 936 if (sshbuf_len(buf) < sizeof(KRL_MAGIC) - 1 || in ssh_krl_from_blob() 978 if (sshbuf_len(buf) < sshbuf_len(copy)) { in ssh_krl_from_blob() [all …]
|
| D | packet.c | 343 while (sshbuf_len(state->incoming_packet) < dlen) in ssh_packet_stop_discard() 377 if (sshbuf_len(state->input) >= discard) in ssh_packet_start_discard() 379 state->packet_discard = discard - sshbuf_len(state->input); in ssh_packet_start_discard() 680 if (sshbuf_len(in) == 0) in compress_buffer() 687 ssh->state->compression_out_stream.avail_in = sshbuf_len(in); in compress_buffer() 728 ssh->state->compression_in_stream.avail_in = sshbuf_len(in); in uncompress_buffer() 917 len = sshbuf_len(state->outgoing_packet) + 4 - 8; in ssh_packet_send1() 934 sshbuf_len(state->outgoing_packet)); in ssh_packet_send1() 949 sshbuf_len(state->outgoing_packet), &cp)) != 0) in ssh_packet_send1() 953 sshbuf_len(state->outgoing_packet), 0, 0)) != 0) in ssh_packet_send1() [all …]
|
| D | kexc25519s.c | 116 sshbuf_ptr(kex->peer), sshbuf_len(kex->peer), in input_kex_c25519_init() 117 sshbuf_ptr(kex->my), sshbuf_len(kex->my), in input_kex_c25519_init() 121 sshbuf_ptr(shared_secret), sshbuf_len(shared_secret), in input_kex_c25519_init()
|
| D | kexc25519c.c | 135 sshbuf_ptr(kex->my), sshbuf_len(kex->my), in input_kex_c25519_reply() 136 sshbuf_ptr(kex->peer), sshbuf_len(kex->peer), in input_kex_c25519_reply() 140 sshbuf_ptr(shared_secret), sshbuf_len(shared_secret), in input_kex_c25519_reply()
|
| D | ssh-ecdsa.c | 89 len = sshbuf_len(b); in ssh_ecdsa_sign() 144 if (sshbuf_len(b) != 0) { in ssh_ecdsa_verify() 159 if (sshbuf_len(sigbuf) != 0) { in ssh_ecdsa_verify()
|
| D | sshkey.c | 643 if (sshbuf_len(a->certblob) != sshbuf_len(b->certblob)) in cert_compare() 646 sshbuf_len(a->certblob)) != 0) in cert_compare() 736 if (sshbuf_len(key->cert->certblob) == 0) in to_blob_buf() 841 len = sshbuf_len(b); in to_blob() 1303 sshbuf_len(blob), &k)) != 0) { in sshkey_read() 1484 if (fwrite(sshbuf_ptr(b), sshbuf_len(b), 1, f) != 1) { in sshkey_write() 1860 signed_len = sshbuf_len(key->cert->certblob) - sshbuf_len(b); in cert_parse() 1874 while (sshbuf_len(principals) > 0) { in cert_parse() 1911 while (sshbuf_len(crit) != 0) { in cert_parse() 1919 while (exts != NULL && sshbuf_len(exts) != 0) { in cert_parse() [all …]
|
| D | sshbuf.c | 125 if ((ret = sshbuf_from(sshbuf_ptr(buf), sshbuf_len(buf))) == NULL) in sshbuf_fromb() 271 sshbuf_len(const struct sshbuf *buf) in sshbuf_len() function 381 if (len > sshbuf_len(buf)) in sshbuf_consume() 398 if (len > sshbuf_len(buf)) in sshbuf_consume_end()
|
| D | sshbuf-getput-basic.c | 160 if (sshbuf_len(buf) < 4) { in sshbuf_peek_string_direct() 169 if (sshbuf_len(buf) - 4 < len) { in sshbuf_peek_string_direct() 251 return sshbuf_put(buf, sshbuf_ptr(v), sshbuf_len(v)); in sshbuf_putb() 374 return sshbuf_put_string(buf, sshbuf_ptr(v), sshbuf_len(v)); in sshbuf_put_stringb()
|
| D | authfile.c | 64 sshbuf_len(keybuf)) != sshbuf_len(keybuf)) { in sshkey_save_private_blob() 119 if (sshbuf_len(blob) > MAX_KEY_FILE_SIZE) { in sshkey_load_file() 125 st.st_size != (off_t)sshbuf_len(blob)) { in sshkey_load_file()
|
| D | ssh-ed25519.c | 72 len = sshbuf_len(b); in ssh_ed25519_sign() 123 if (sshbuf_len(b) != 0) { in ssh_ed25519_verify()
|
| D | digest-openssl.c | 152 return ssh_digest_update(ctx, sshbuf_ptr(b), sshbuf_len(b)); in ssh_digest_update_buffer() 203 return ssh_digest_memory(alg, sshbuf_ptr(b), sshbuf_len(b), d, dlen); in ssh_digest_buffer()
|
| D | kexecdhs.c | 151 sshbuf_ptr(kex->peer), sshbuf_len(kex->peer), in input_kex_ecdh_init() 152 sshbuf_ptr(kex->my), sshbuf_len(kex->my), in input_kex_ecdh_init()
|
| D | sshbuf-getput-crypto.c | 56 if (sshbuf_len(buf) < 2) in sshbuf_get_bignum1() 62 if (sshbuf_len(buf) < 2 + len_bytes) in sshbuf_get_bignum1()
|
| D | ssh-dss.c | 109 len = sshbuf_len(b); in ssh_dss_sign() 167 if (sshbuf_len(b) != 0) { in ssh_dss_verify()
|
| /freebsd-10-stable/crypto/openssh/regress/misc/kexfuzz/ |
| D | kexfuzz.c | 68 len = sshbuf_len(replace_data); in do_send_and_receive() 220 ASSERT_INT_GE(sshbuf_len(state), 1); in do_kex_with_key() 230 ASSERT_INT_EQ(sshbuf_len(state), 0); in do_kex_with_key()
|
| /freebsd-10-stable/crypto/openssh/regress/unittests/kex/ |
| D | test_kex.c | 134 ASSERT_INT_GE(sshbuf_len(state), 1); in do_kex_with_key() 144 ASSERT_INT_EQ(sshbuf_len(state), 0); in do_kex_with_key()
|