/external/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()
|
/external/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 …]
|
/external/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 | 692 if (sshbuf_len(sect) != 0) { in revoked_certs_generate() 748 if (sshbuf_len(sect) != 0) { in ssh_krl_to_blob() 759 if (sshbuf_len(sect) != 0) { in ssh_krl_to_blob() 774 sshbuf_ptr(buf), sshbuf_len(buf), NULL, 0)) != 0) in ssh_krl_to_blob() 827 while (sshbuf_len(buf) > 0) { in parse_revoked_certs() 838 while (sshbuf_len(subsect) > 0) { in parse_revoked_certs() 884 while (sshbuf_len(subsect) > 0) { in parse_revoked_certs() 900 if (sshbuf_len(subsect) > 0) { in parse_revoked_certs() 935 if (sshbuf_len(buf) < sizeof(KRL_MAGIC) - 1 || in ssh_krl_from_blob() 977 if (sshbuf_len(buf) < sshbuf_len(copy)) { in ssh_krl_from_blob() [all …]
|
D | packet.c | 387 while (sshbuf_len(state->incoming_packet) < dlen) in ssh_packet_stop_discard() 421 if (sshbuf_len(state->input) >= discard) in ssh_packet_start_discard() 423 state->packet_discard = discard - sshbuf_len(state->input); in ssh_packet_start_discard() 722 if (sshbuf_len(in) == 0) in compress_buffer() 729 ssh->state->compression_out_stream.avail_in = sshbuf_len(in); in compress_buffer() 770 ssh->state->compression_in_stream.avail_in = sshbuf_len(in); in uncompress_buffer() 879 len = sshbuf_len(state->outgoing_packet) + 4 - 8; in ssh_packet_send1() 896 sshbuf_len(state->outgoing_packet)); in ssh_packet_send1() 911 sshbuf_len(state->outgoing_packet), &cp)) != 0) in ssh_packet_send1() 915 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 | 645 if (sshbuf_len(a->certblob) != sshbuf_len(b->certblob)) in cert_compare() 648 sshbuf_len(a->certblob)) != 0) in cert_compare() 738 if (sshbuf_len(key->cert->certblob) == 0) in to_blob_buf() 843 len = sshbuf_len(b); in to_blob() 1311 sshbuf_len(blob), &k)) != 0) { in sshkey_read() 1492 if (fwrite(sshbuf_ptr(b), sshbuf_len(b), 1, f) != 1) { in sshkey_write() 1868 signed_len = sshbuf_len(key->cert->certblob) - sshbuf_len(b); in cert_parse() 1882 while (sshbuf_len(principals) > 0) { in cert_parse() 1919 while (sshbuf_len(crit) != 0) { in cert_parse() 1927 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 391 if (len > sshbuf_len(buf)) in sshbuf_consume() 408 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() 131 if (sshbuf_len(blob) > MAX_KEY_FILE_SIZE) { in sshkey_load_file() 137 st.st_size != (off_t)sshbuf_len(blob)) { in sshkey_load_file()
|
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 | ssh-ed25519.c | 72 len = sshbuf_len(b); in ssh_ed25519_sign() 123 if (sshbuf_len(b) != 0) { in ssh_ed25519_verify()
|
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 | ssh-agent.c | 320 if (sshbuf_len(e->request) == 0) in process_authentication_challenge1() 631 while (sshbuf_len(e->request)) { in process_add_identity() 761 while (sshbuf_len(e->request)) { in process_add_smartcard_key() 876 if (sshbuf_len(e->input) < 5) in process_message() 884 if (sshbuf_len(e->input) < msg_len + 4) in process_message() 1049 if (sshbuf_len(sockets[i].output) > 0) in prepare_select() 1112 if (sshbuf_len(sockets[i].output) > 0 && in after_select() 1116 sshbuf_len(sockets[i].output)); in after_select()
|
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 | kexdhs.c | 171 sshbuf_ptr(kex->peer), sshbuf_len(kex->peer), in input_kex_dh_init() 172 sshbuf_ptr(kex->my), sshbuf_len(kex->my), in input_kex_dh_init()
|
/external/openssh/regress/misc/kexfuzz/ |
D | kexfuzz.c | 82 if (sshbuf_len(packet) != 0 && in packet_hook() 83 fwrite(sshbuf_ptr(packet), sshbuf_len(packet), in packet_hook() 88 *typep, sshbuf_len(packet)); in packet_hook() 266 ASSERT_INT_GE(sshbuf_len(state), 1); in do_kex_with_key() 273 ASSERT_INT_EQ(sshbuf_len(state), 0); in do_kex_with_key()
|