/freebsd-10-stable/crypto/openssh/regress/unittests/sshbuf/ |
H A D | test_sshbuf_fixed.c | 47 ASSERT_PTR_EQ(sshbuf_ptr(p1), test_buf); 54 ASSERT_PTR_EQ(sshbuf_ptr(p1), test_buf); 56 ASSERT_PTR_EQ(sshbuf_ptr(p1), test_buf + 1); 59 ASSERT_PTR_EQ(sshbuf_ptr(p1), test_buf + 5); 80 ASSERT_PTR_EQ(sshbuf_ptr(p2), sshbuf_ptr(p1)); 81 ASSERT_PTR_NE(sshbuf_ptr(p1), NULL); 82 ASSERT_PTR_NE(sshbuf_ptr(p2), NULL); 87 ASSERT_PTR_EQ(sshbuf_ptr(p2), sshbuf_ptr(p [all...] |
H A D | test_sshbuf_fuzz.c | 42 ASSERT_PTR_NE(sshbuf_ptr(p1), NULL); 43 ASSERT_MEM_ZERO_NE(sshbuf_ptr(p1), sshbuf_len(p1)); 102 ASSERT_PTR_NE(sshbuf_ptr(p1), NULL); 103 ASSERT_MEM_ZERO_NE(sshbuf_ptr(p1), sshbuf_len(p1)); 120 ASSERT_PTR_NE(sshbuf_ptr(p1), NULL); 123 ASSERT_PTR_NE(sshbuf_ptr(p1), NULL); 124 ASSERT_MEM_ZERO_NE(sshbuf_ptr(p1), sshbuf_len(p1));
|
H A D | test_sshbuf_getput_basic.c | 82 cd = sshbuf_ptr(p1); 95 ASSERT_U8_EQ(*(sshbuf_ptr(p1)), 0x55); 102 ASSERT_U8_EQ(*(sshbuf_ptr(p1)), 0x55); 205 ASSERT_MEM_EQ(sshbuf_ptr(p1), x, 8); 215 ASSERT_MEM_EQ(sshbuf_ptr(p1), x, 8); 234 ASSERT_MEM_EQ(sshbuf_ptr(p1), x, 4); 244 ASSERT_MEM_EQ(sshbuf_ptr(p1), x, 4); 263 ASSERT_MEM_EQ(sshbuf_ptr(p1), x, 2); 273 ASSERT_MEM_EQ(sshbuf_ptr(p1), x, 2); 384 ASSERT_U32_EQ(PEEK_U32(sshbuf_ptr(p [all...] |
H A D | test_sshbuf.c | 101 TEST_START("sshbuf_ptr on filled buffer"); 102 cdp = sshbuf_ptr(p1); 119 cdp = sshbuf_ptr(p1); 124 cdp = sshbuf_ptr(p1); 153 cdp = sshbuf_ptr(p1); 193 cdp = sshbuf_ptr(p1); 215 cdp = sshbuf_ptr(p1);
|
H A D | test_sshbuf_misc.c | 116 ASSERT_U8_EQ(*sshbuf_ptr(p1), 0xd0); 125 ASSERT_U16_EQ(PEEK_U16(sshbuf_ptr(p1)), 0xd00f); 134 ASSERT_U32_EQ(PEEK_U32(sshbuf_ptr(p1)), 0xd00fd00f);
|
H A D | test_sshbuf_getput_crypto.c | 86 ASSERT_U16_EQ(PEEK_U16(sshbuf_ptr(p1)), (u_int16_t)BN_num_bits(bn)); 87 ASSERT_MEM_EQ(sshbuf_ptr(p1) + 2, expbn1, sizeof(expbn1)); 110 ASSERT_U16_EQ(PEEK_U16(sshbuf_ptr(p1)), (u_int16_t)BN_num_bits(bn)); 111 ASSERT_MEM_EQ(sshbuf_ptr(p1) + 2, expbn2, sizeof(expbn2)); 134 ASSERT_U32_EQ(PEEK_U32(sshbuf_ptr(p1)), (u_int32_t)BN_num_bytes(bn)); 135 ASSERT_MEM_EQ(sshbuf_ptr(p1) + 4, expbn1, sizeof(expbn1)); 158 ASSERT_U32_EQ(PEEK_U32(sshbuf_ptr(p1)), (u_int32_t)BN_num_bytes(bn) + 1); 159 ASSERT_U8_EQ(*(sshbuf_ptr(p1) + 4), 0x00); 160 ASSERT_MEM_EQ(sshbuf_ptr(p1) + 5, expbn2, sizeof(expbn2));
|
/freebsd-10-stable/crypto/openssh/regress/unittests/sshkey/ |
H A D | test_file.c | 68 (const char *)sshbuf_ptr(pw), &k2, NULL), 0); 87 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf)); 96 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf)); 123 (const char *)sshbuf_ptr(pw), &k2, NULL), 0); 142 (const char *)sshbuf_ptr(pw), &k2, NULL), 0); 169 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf)); 178 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf)); 188 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf)); 214 (const char *)sshbuf_ptr(pw), &k2, NULL), 0); 233 (const char *)sshbuf_ptr(p [all...] |
H A D | common.c | 59 for (p = sshbuf_ptr(ret); sshbuf_len(ret) > 0;) { 80 ASSERT_INT_NE(BN_hex2bn(&ret, (const char *)sshbuf_ptr(buf)), 0);
|
/freebsd-10-stable/crypto/openssh/ |
H A D | sshbuf-misc.c | 69 sshbuf_dump_data(sshbuf_ptr(buf), sshbuf_len(buf), f); 76 const u_char *p = sshbuf_ptr(buf); 96 const u_char *p = sshbuf_ptr(buf); 142 const u_char *p = NULL, *s = sshbuf_ptr(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 | sshbuf-getput-basic.c | 34 const u_char *p = sshbuf_ptr(buf); 47 const u_char *p = sshbuf_ptr(buf); 60 const u_char *p = sshbuf_ptr(buf); 73 const u_char *p = sshbuf_ptr(buf); 86 const u_char *p = sshbuf_ptr(buf); 154 const u_char *p = sshbuf_ptr(buf); 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 | msg.c | 58 if (atomicio(vwrite, fd, (u_char *)sshbuf_ptr(m), mlen) != mlen) {
|
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 | packet.c | 349 sshbuf_ptr(state->incoming_packet), dlen, 933 checksum = ssh_crc32(sshbuf_ptr(state->outgoing_packet), 952 sshbuf_ptr(state->outgoing_packet), 1202 type = (sshbuf_ptr(state->outgoing_packet))[5]; 1286 sshbuf_ptr(state->outgoing_packet), len, 1296 sshbuf_ptr(state->outgoing_packet), 1358 type = sshbuf_ptr(state->outgoing_packet)[5]; 1586 len = PEEK_U32(sshbuf_ptr(state->input)); 1613 sshbuf_ptr(state->input), padded_len)) { 1640 sshbuf_ptr(stat [all...] |
H A D | kexgexc.c | 227 sshbuf_ptr(kex->my), sshbuf_len(kex->my), 228 sshbuf_ptr(kex->peer), sshbuf_len(kex->peer),
|
H A D | kexecdhc.c | 182 sshbuf_ptr(kex->my), sshbuf_len(kex->my), 183 sshbuf_ptr(kex->peer), sshbuf_len(kex->peer),
|
H A D | digest-libc.c | 211 return ssh_digest_update(ctx, sshbuf_ptr(b), sshbuf_len(b)); 262 return ssh_digest_memory(alg, sshbuf_ptr(b), sshbuf_len(b), d, dlen);
|
H A D | kexgexs.c | 200 sshbuf_ptr(kex->peer), sshbuf_len(kex->peer), 201 sshbuf_ptr(kex->my), sshbuf_len(kex->my),
|
H A D | kexdhs.c | 171 sshbuf_ptr(kex->peer), sshbuf_len(kex->peer), 172 sshbuf_ptr(kex->my), sshbuf_len(kex->my),
|
H A D | kexdhc.c | 177 sshbuf_ptr(kex->my), sshbuf_len(kex->my), 178 sshbuf_ptr(kex->peer), sshbuf_len(kex->peer),
|
H A D | ssh-ecdsa.c | 95 memcpy(*sigp, sshbuf_ptr(b), len);
|
H A D | ssh-ed25519.c | 78 memcpy(*sigp, sshbuf_ptr(b), len);
|
H A D | sshbuf.c | 125 if ((ret = sshbuf_from(sshbuf_ptr(buf), sshbuf_len(buf))) == NULL) 287 sshbuf_ptr(const struct sshbuf *buf) function
|