Home
last modified time | relevance | path

Searched refs:sshbuf_cmp (Results 1 – 7 of 7) sorted by relevance

/openbsd-src/regress/usr.bin/ssh/unittests/sshbuf/
H A Dtest_sshbuf_misc.c166 ASSERT_INT_EQ(sshbuf_cmp(p1, 0, "i", 1), 0); in sshbuf_misc_tests()
167 ASSERT_INT_EQ(sshbuf_cmp(p1, 0, "j", 1), SSH_ERR_INVALID_FORMAT); in sshbuf_misc_tests()
168 ASSERT_INT_EQ(sshbuf_cmp(p1, 0, "imploring", 9), 0); in sshbuf_misc_tests()
169 ASSERT_INT_EQ(sshbuf_cmp(p1, 0, "implored", 9), SSH_ERR_INVALID_FORMAT); in sshbuf_misc_tests()
170 ASSERT_INT_EQ(sshbuf_cmp(p1, 10, "ping", 4), 0); in sshbuf_misc_tests()
171 ASSERT_INT_EQ(sshbuf_cmp(p1, 10, "ring", 4), SSH_ERR_INVALID_FORMAT); in sshbuf_misc_tests()
172 ASSERT_INT_EQ(sshbuf_cmp(p1, 28, "over", 4), 0); in sshbuf_misc_tests()
173 ASSERT_INT_EQ(sshbuf_cmp(p1, 28, "rove", 4), SSH_ERR_INVALID_FORMAT); in sshbuf_misc_tests()
174 ASSERT_INT_EQ(sshbuf_cmp(p1, 28, "overt", 5), in sshbuf_misc_tests()
176 ASSERT_INT_EQ(sshbuf_cmp(p1, 32, "ping", 4), in sshbuf_misc_tests()
[all …]
/openbsd-src/usr.bin/ssh/
H A Dsshsig.c100 if ((r = sshbuf_cmp(sbuf, 0, in sshsig_dearmor()
109 if ((r = sshbuf_cmp(sbuf, 0, "\r\n", 2)) == 0) in sshsig_dearmor()
111 else if ((r = sshbuf_cmp(sbuf, 0, "\n", 1)) == 0) in sshsig_dearmor()
245 if ((r = sshbuf_cmp(buf, 0, MAGIC_PREAMBLE, MAGIC_PREAMBLE_LEN)) != 0 || in sshsig_parse_preamble()
H A Dsshbuf-misc.c234 sshbuf_cmp(const struct sshbuf *b, size_t offset, in sshbuf_cmp() function
H A Dsshbuf.h263 int sshbuf_cmp(const struct sshbuf *b, size_t offset,
H A Dssh-ecdsa-sk.c199 if ((r = sshbuf_cmp(wrapper, 0, sshbuf_ptr(m), sshbuf_len(m))) != 0) in webauthn_check_prepare_hash()
H A Dkrl.c1054 if ((r = sshbuf_cmp(buf, 0, KRL_MAGIC, sizeof(KRL_MAGIC) - 1)) != 0) { in ssh_krl_from_blob()
H A Dssh-agent.c772 if ((r = sshbuf_cmp(b, 0, "SSHSIG", 6)) != 0 || in parse_sshsig_request()