/freebsd-12-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-12-stable/crypto/openssh/regress/unittests/sshkey/ |
H A D | test_file.c | 74 (const char *)sshbuf_ptr(pw), &k2, NULL), 0); 93 (const char *)sshbuf_ptr(pw), &k2, NULL), 0); 138 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf)); 147 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf)); 157 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf)); 183 (const char *)sshbuf_ptr(pw), &k2, NULL), 0); 202 (const char *)sshbuf_ptr(pw), &k2, NULL), 0); 229 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf)); 238 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf)); 248 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(bu [all...] |
H A D | common.c | 61 for (p = sshbuf_ptr(ret); sshbuf_len(ret) > 0;) { 82 ASSERT_INT_NE(BN_hex2bn(&ret, (const char *)sshbuf_ptr(buf)), 0);
|
/freebsd-12-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 | 134 sshbuf_ptr(kex->my), sshbuf_len(kex->my), 135 sshbuf_ptr(kex->peer), sshbuf_len(kex->peer), 139 sshbuf_ptr(shared_secret), sshbuf_len(shared_secret),
|
H A D | kexc25519s.c | 115 sshbuf_ptr(kex->peer), sshbuf_len(kex->peer), 116 sshbuf_ptr(kex->my), sshbuf_len(kex->my), 120 sshbuf_ptr(shared_secret), sshbuf_len(shared_secret),
|
H A D | sshbuf-getput-basic.c | 35 const u_char *p = sshbuf_ptr(buf); 48 const u_char *p = sshbuf_ptr(buf); 61 const u_char *p = sshbuf_ptr(buf); 74 const u_char *p = sshbuf_ptr(buf); 87 const u_char *p = sshbuf_ptr(buf); 155 const u_char *p = sshbuf_ptr(buf); 252 return sshbuf_put(buf, sshbuf_ptr(v), sshbuf_len(v)); 375 return sshbuf_put_string(buf, sshbuf_ptr(v), sshbuf_len(v));
|
H A D | digest-openssl.c | 154 return ssh_digest_update(ctx, sshbuf_ptr(b), sshbuf_len(b)); 204 return ssh_digest_memory(alg, sshbuf_ptr(b), sshbuf_len(b), d, dlen);
|
H A D | kexecdhs.c | 150 sshbuf_ptr(kex->peer), sshbuf_len(kex->peer), 151 sshbuf_ptr(kex->my), sshbuf_len(kex->my),
|
H A D | digest-libc.c | 201 return ssh_digest_update(ctx, sshbuf_ptr(b), sshbuf_len(b)); 252 return ssh_digest_memory(alg, sshbuf_ptr(b), sshbuf_len(b), d, dlen);
|
H A D | kexdhc.c | 183 sshbuf_ptr(kex->my), sshbuf_len(kex->my), 184 sshbuf_ptr(kex->peer), sshbuf_len(kex->peer),
|
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 | kexecdhc.c | 180 sshbuf_ptr(kex->my), sshbuf_len(kex->my), 181 sshbuf_ptr(kex->peer), sshbuf_len(kex->peer),
|
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 | kexgexs.c | 203 sshbuf_ptr(kex->peer), sshbuf_len(kex->peer), 204 sshbuf_ptr(kex->my), sshbuf_len(kex->my),
|
H A D | packet.c | 387 sshbuf_ptr(state->incoming_packet), dlen, 1052 type = (sshbuf_ptr(state->outgoing_packet))[5]; 1136 sshbuf_ptr(state->outgoing_packet), len, 1146 sshbuf_ptr(state->outgoing_packet), 1208 type = sshbuf_ptr(state->outgoing_packet)[5]; 1418 cp = sshbuf_ptr(state->input); 1480 sshbuf_ptr(state->input), sshbuf_len(state->input)) != 0) 1505 state->p_send.seqnr, cp, sshbuf_ptr(state->input), 1508 state->packlen = PEEK_U32(sshbuf_ptr(state->incoming_packet)); 1561 sshbuf_ptr(stat [all...] |
H A D | ssh-ecdsa.c | 99 memcpy(*sigp, sshbuf_ptr(b), len);
|
H A D | ssh-ed25519.c | 78 memcpy(*sigp, sshbuf_ptr(b), len);
|
H A D | ssh-pkcs11-helper.c | 238 cp = sshbuf_ptr(iqueue); 371 len = write(out, sshbuf_ptr(oqueue), olen);
|
H A D | sshbuf.c | 124 if ((ret = sshbuf_from(sshbuf_ptr(buf), sshbuf_len(buf))) == NULL) 269 sshbuf_ptr(const struct sshbuf *buf) function
|