/external/openssh/regress/unittests/sshbuf/ |
D | test_sshbuf_fixed.c | 47 ASSERT_PTR_EQ(sshbuf_ptr(p1), test_buf); in sshbuf_fixed() 54 ASSERT_PTR_EQ(sshbuf_ptr(p1), test_buf); in sshbuf_fixed() 56 ASSERT_PTR_EQ(sshbuf_ptr(p1), test_buf + 1); in sshbuf_fixed() 59 ASSERT_PTR_EQ(sshbuf_ptr(p1), test_buf + 5); in sshbuf_fixed() 80 ASSERT_PTR_EQ(sshbuf_ptr(p2), sshbuf_ptr(p1)); in sshbuf_fixed() 81 ASSERT_PTR_NE(sshbuf_ptr(p1), NULL); in sshbuf_fixed() 82 ASSERT_PTR_NE(sshbuf_ptr(p2), NULL); in sshbuf_fixed() 87 ASSERT_PTR_EQ(sshbuf_ptr(p2), sshbuf_ptr(p1) + 1); in sshbuf_fixed() 90 ASSERT_PTR_EQ(sshbuf_ptr(p2), sshbuf_ptr(p1) + 5); in sshbuf_fixed() 116 ASSERT_PTR_NE(sshbuf_ptr(p3), NULL); in sshbuf_fixed() [all …]
|
D | test_sshbuf_fuzz.c | 42 ASSERT_PTR_NE(sshbuf_ptr(p1), NULL); in sshbuf_fuzz_tests() 43 ASSERT_MEM_ZERO_NE(sshbuf_ptr(p1), sshbuf_len(p1)); in sshbuf_fuzz_tests() 102 ASSERT_PTR_NE(sshbuf_ptr(p1), NULL); in sshbuf_fuzz_tests() 103 ASSERT_MEM_ZERO_NE(sshbuf_ptr(p1), sshbuf_len(p1)); in sshbuf_fuzz_tests() 120 ASSERT_PTR_NE(sshbuf_ptr(p1), NULL); in sshbuf_fuzz_tests() 123 ASSERT_PTR_NE(sshbuf_ptr(p1), NULL); in sshbuf_fuzz_tests() 124 ASSERT_MEM_ZERO_NE(sshbuf_ptr(p1), sshbuf_len(p1)); in sshbuf_fuzz_tests()
|
D | test_sshbuf_getput_basic.c | 82 cd = sshbuf_ptr(p1); in sshbuf_getput_basic_tests() 95 ASSERT_U8_EQ(*(sshbuf_ptr(p1)), 0x55); in sshbuf_getput_basic_tests() 102 ASSERT_U8_EQ(*(sshbuf_ptr(p1)), 0x55); in sshbuf_getput_basic_tests() 205 ASSERT_MEM_EQ(sshbuf_ptr(p1), x, 8); in sshbuf_getput_basic_tests() 215 ASSERT_MEM_EQ(sshbuf_ptr(p1), x, 8); in sshbuf_getput_basic_tests() 234 ASSERT_MEM_EQ(sshbuf_ptr(p1), x, 4); in sshbuf_getput_basic_tests() 244 ASSERT_MEM_EQ(sshbuf_ptr(p1), x, 4); in sshbuf_getput_basic_tests() 263 ASSERT_MEM_EQ(sshbuf_ptr(p1), x, 2); in sshbuf_getput_basic_tests() 273 ASSERT_MEM_EQ(sshbuf_ptr(p1), x, 2); in sshbuf_getput_basic_tests() 384 ASSERT_U32_EQ(PEEK_U32(sshbuf_ptr(p1)), sizeof(x)); in sshbuf_getput_basic_tests() [all …]
|
D | test_sshbuf.c | 102 cdp = sshbuf_ptr(p1); in sshbuf_tests() 119 cdp = sshbuf_ptr(p1); in sshbuf_tests() 124 cdp = sshbuf_ptr(p1); in sshbuf_tests() 153 cdp = sshbuf_ptr(p1); in sshbuf_tests() 193 cdp = sshbuf_ptr(p1); in sshbuf_tests() 215 cdp = sshbuf_ptr(p1); in sshbuf_tests()
|
D | test_sshbuf_getput_crypto.c | 86 ASSERT_U16_EQ(PEEK_U16(sshbuf_ptr(p1)), (u_int16_t)BN_num_bits(bn)); in sshbuf_getput_crypto_tests() 87 ASSERT_MEM_EQ(sshbuf_ptr(p1) + 2, expbn1, sizeof(expbn1)); in sshbuf_getput_crypto_tests() 110 ASSERT_U16_EQ(PEEK_U16(sshbuf_ptr(p1)), (u_int16_t)BN_num_bits(bn)); in sshbuf_getput_crypto_tests() 111 ASSERT_MEM_EQ(sshbuf_ptr(p1) + 2, expbn2, sizeof(expbn2)); in sshbuf_getput_crypto_tests() 134 ASSERT_U32_EQ(PEEK_U32(sshbuf_ptr(p1)), (u_int32_t)BN_num_bytes(bn)); in sshbuf_getput_crypto_tests() 135 ASSERT_MEM_EQ(sshbuf_ptr(p1) + 4, expbn1, sizeof(expbn1)); in sshbuf_getput_crypto_tests() 158 ASSERT_U32_EQ(PEEK_U32(sshbuf_ptr(p1)), (u_int32_t)BN_num_bytes(bn) + 1); in sshbuf_getput_crypto_tests() 159 ASSERT_U8_EQ(*(sshbuf_ptr(p1) + 4), 0x00); in sshbuf_getput_crypto_tests() 160 ASSERT_MEM_EQ(sshbuf_ptr(p1) + 5, expbn2, sizeof(expbn2)); in sshbuf_getput_crypto_tests()
|
D | test_sshbuf_misc.c | 116 ASSERT_U8_EQ(*sshbuf_ptr(p1), 0xd0); in sshbuf_misc_tests() 125 ASSERT_U16_EQ(PEEK_U16(sshbuf_ptr(p1)), 0xd00f); in sshbuf_misc_tests() 134 ASSERT_U32_EQ(PEEK_U32(sshbuf_ptr(p1)), 0xd00fd00f); in sshbuf_misc_tests()
|
/external/openssh/regress/unittests/sshkey/ |
D | test_file.c | 68 (const char *)sshbuf_ptr(pw), &k2, NULL), 0); in sshkey_file_tests() 87 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf)); in sshkey_file_tests() 96 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf)); in sshkey_file_tests() 123 (const char *)sshbuf_ptr(pw), &k2, NULL), 0); in sshkey_file_tests() 142 (const char *)sshbuf_ptr(pw), &k2, NULL), 0); in sshkey_file_tests() 169 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf)); in sshkey_file_tests() 178 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf)); in sshkey_file_tests() 188 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf)); in sshkey_file_tests() 214 (const char *)sshbuf_ptr(pw), &k2, NULL), 0); in sshkey_file_tests() 233 (const char *)sshbuf_ptr(pw), &k2, NULL), 0); in sshkey_file_tests() [all …]
|
D | common.c | 59 for (p = sshbuf_ptr(ret); sshbuf_len(ret) > 0;) { in load_text_file() 80 ASSERT_INT_NE(BN_hex2bn(&ret, (const char *)sshbuf_ptr(buf)), 0); in load_bignum()
|
D | test_sshkey.c | 103 sshbuf_ptr(b), sshbuf_len(b), sig_alg, 0), 0); in build_cert() 462 ASSERT_INT_EQ(sshkey_from_blob(sshbuf_ptr(b), sshbuf_len(b), &k3), 0); in sshkey_tests() 532 ASSERT_INT_EQ(sshkey_from_blob(sshbuf_ptr(b), sshbuf_len(b), &k4), in sshkey_tests()
|
/external/openssh/ |
D | sshbuf-getput-basic.c | 34 const u_char *p = sshbuf_ptr(buf); in sshbuf_get() 47 const u_char *p = sshbuf_ptr(buf); in sshbuf_get_u64() 60 const u_char *p = sshbuf_ptr(buf); in sshbuf_get_u32() 73 const u_char *p = sshbuf_ptr(buf); in sshbuf_get_u16() 86 const u_char *p = sshbuf_ptr(buf); in sshbuf_get_u8() 154 const u_char *p = sshbuf_ptr(buf); 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 | sshbuf-misc.c | 69 sshbuf_dump_data(sshbuf_ptr(buf), sshbuf_len(buf), f); in sshbuf_dump() 76 const u_char *p = sshbuf_ptr(buf); in sshbuf_dtob16() 96 const u_char *p = sshbuf_ptr(buf); in sshbuf_dtob64() 142 const u_char *p = NULL, *s = sshbuf_ptr(buf); in sshbuf_dup_string()
|
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 | packet.c | 393 sshbuf_ptr(state->incoming_packet), dlen, in ssh_packet_stop_discard() 895 checksum = ssh_crc32(sshbuf_ptr(state->outgoing_packet), in ssh_packet_send1() 914 sshbuf_ptr(state->outgoing_packet), in ssh_packet_send1() 1167 type = (sshbuf_ptr(state->outgoing_packet))[5]; in ssh_packet_send2_wrapped() 1251 sshbuf_ptr(state->outgoing_packet), len, in ssh_packet_send2_wrapped() 1261 sshbuf_ptr(state->outgoing_packet), in ssh_packet_send2_wrapped() 1323 type = sshbuf_ptr(state->outgoing_packet)[5]; in ssh_packet_send2() 1553 len = PEEK_U32(sshbuf_ptr(state->input)); in ssh_packet_read_poll1() 1580 sshbuf_ptr(state->input), padded_len)) { in ssh_packet_read_poll1() 1607 sshbuf_ptr(state->input), padded_len, 0, 0)) != 0) in ssh_packet_read_poll1() [all …]
|
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 | kexdhc.c | 177 sshbuf_ptr(kex->my), sshbuf_len(kex->my), in input_kex_dh() 178 sshbuf_ptr(kex->peer), sshbuf_len(kex->peer), in input_kex_dh()
|
D | digest-libc.c | 211 return ssh_digest_update(ctx, sshbuf_ptr(b), sshbuf_len(b)); in ssh_digest_update_buffer() 262 return ssh_digest_memory(alg, sshbuf_ptr(b), sshbuf_len(b), d, dlen); in ssh_digest_buffer()
|
D | kexecdhc.c | 182 sshbuf_ptr(kex->my), sshbuf_len(kex->my), in input_kex_ecdh_reply() 183 sshbuf_ptr(kex->peer), sshbuf_len(kex->peer), in input_kex_ecdh_reply()
|
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()
|
D | msg.c | 58 if (atomicio(vwrite, fd, (u_char *)sshbuf_ptr(m), mlen) != mlen) { in ssh_msg_send()
|
D | kexgexs.c | 200 sshbuf_ptr(kex->peer), sshbuf_len(kex->peer), in input_kex_dh_gex_init() 201 sshbuf_ptr(kex->my), sshbuf_len(kex->my), in input_kex_dh_gex_init()
|
D | kexgexc.c | 227 sshbuf_ptr(kex->my), sshbuf_len(kex->my), in input_kex_dh_gex_reply() 228 sshbuf_ptr(kex->peer), sshbuf_len(kex->peer), in input_kex_dh_gex_reply()
|
D | sshkey.c | 647 if (timingsafe_bcmp(sshbuf_ptr(a->certblob), sshbuf_ptr(b->certblob), in cert_compare() 851 memcpy(*blobp, sshbuf_ptr(b), len); in to_blob() 1310 if ((r = sshkey_from_blob(sshbuf_ptr(blob), in sshkey_read() 1492 if (fwrite(sshbuf_ptr(b), sshbuf_len(b), 1, f) != 1) { in sshkey_write() 1946 sshbuf_ptr(key->cert->certblob), signed_len, 0)) != 0) in cert_parse() 2470 if ((ret = sshkey_sign(ca, &sig_blob, &sig_len, sshbuf_ptr(cert), in sshkey_certify() 3140 sshbuf_ptr(encrypted), sshbuf_len(encrypted), 0, authlen)) != 0) in sshkey_private_to_blob2() 3218 cp = sshbuf_ptr(blob); in sshkey_parse_private2() 3253 if ((r = sshbuf_b64tod(decoded, (char *)sshbuf_ptr(encoded))) != 0) in sshkey_parse_private2() 3258 memcmp(sshbuf_ptr(decoded), AUTH_MAGIC, sizeof(AUTH_MAGIC))) { in sshkey_parse_private2() [all …]
|
D | sshbuf.c | 125 if ((ret = sshbuf_from(sshbuf_ptr(buf), sshbuf_len(buf))) == NULL) in sshbuf_fromb() 287 sshbuf_ptr(const struct sshbuf *buf) in sshbuf_ptr() function
|