Home
last modified time | relevance | path

Searched refs:sshbuf_put_string (Results 1 – 25 of 38) sorted by relevance

12

/openbsd/usr.bin/ssh/
H A Dssh-ed25519.c59 if ((r = sshbuf_put_string(b, key->ed25519_pk, ED25519_PK_SZ)) != 0) in ssh_ed25519_serialize_public()
71 if ((r = sshbuf_put_string(b, key->ed25519_pk, ED25519_PK_SZ)) != 0 || in ssh_ed25519_serialize_private()
72 (r = sshbuf_put_string(b, key->ed25519_sk, ED25519_SK_SZ)) != 0) in ssh_ed25519_serialize_private()
179 (r = sshbuf_put_string(b, sig, smlen - datalen)) != 0) in ssh_ed25519_sign()
H A Dssh-xmss.c73 (r = sshbuf_put_string(b, key->xmss_pk, in ssh_xmss_serialize_public()
91 (r = sshbuf_put_string(b, key->xmss_pk, in ssh_xmss_serialize_private()
93 (r = sshbuf_put_string(b, key->xmss_sk, in ssh_xmss_serialize_private()
237 (r = sshbuf_put_string(b, sig, smlen - datalen)) != 0) in ssh_xmss_sign()
H A Dsshbuf-getput-crypto.c137 if ((r = sshbuf_put_string(buf, d + 1 - prepend, len + prepend)) < 0) { in sshbuf_put_bignum2()
160 ret = sshbuf_put_string(buf, d, len); in sshbuf_put_ec()
H A Dmonitor_wrap.c260 (r = sshbuf_put_string(m, data, datalen)) != 0 || in mm_sshkey_sign()
543 (r = sshbuf_put_string(m, sig, siglen)) != 0 || in mm_sshkey_verify()
544 (r = sshbuf_put_string(m, data, datalen)) != 0 || in mm_sshkey_verify()
834 if ((r = sshbuf_put_string(m, goid->elements, goid->length)) != 0) in mm_ssh_gssapi_server_ctx()
858 if ((r = sshbuf_put_string(m, in->value, in->length)) != 0) in mm_ssh_gssapi_accept_ctx()
887 if ((r = sshbuf_put_string(m, gssbuf->value, gssbuf->length)) != 0 || in mm_ssh_gssapi_checkmic()
888 (r = sshbuf_put_string(m, gssmic->value, gssmic->length)) != 0) in mm_ssh_gssapi_checkmic()
H A Dkexsntrup761x25519.c141 if ((r = sshbuf_put_string(buf, hash, in kex_kem_sntrup761x25519_enc()
205 if ((r = sshbuf_put_string(buf, hash, in kex_kem_sntrup761x25519_dec()
H A Dssh-sk.c212 if ((r = sshbuf_put_string(b, in sshsk_ecdsa_assemble()
443 (r = sshbuf_put_string(attest, in fill_attestation_blob()
445 (r = sshbuf_put_string(attest, in fill_attestation_blob()
447 (r = sshbuf_put_string(attest, in fill_attestation_blob()
450 (r = sshbuf_put_string(attest, NULL, 0)) != 0 /* resvd */) { in fill_attestation_blob()
616 if ((r = sshbuf_put_string(sig, in sshsk_ed25519_sig()
H A Dsshbuf-getput-basic.c510 sshbuf_put_string(struct sshbuf *buf, const void *v, size_t len) in sshbuf_put_string() function
530 return sshbuf_put_string(buf, v, v == NULL ? 0 : strlen(v)); in sshbuf_put_cstring()
537 return sshbuf_put_string(buf, NULL, 0); in sshbuf_put_stringb()
539 return sshbuf_put_string(buf, sshbuf_ptr(v), sshbuf_len(v)); in sshbuf_put_stringb()
H A Dauth2-hostbased.c134 (r = sshbuf_put_string(b, pkalg, alen)) != 0 || in userauth_hostbased()
135 (r = sshbuf_put_string(b, pkblob, blen)) != 0 || in userauth_hostbased()
H A Dauthfd.c423 (r = sshbuf_put_string(msg, data, datalen)) != 0 || in ssh_agent_sign()
468 (r = sshbuf_put_string(b, NULL, 0)) != 0) /* reserved */ in encode_dest_constraint_hop()
494 (r = sshbuf_put_string(b, NULL, 0)) != 0) /* reserved */ in encode_dest_constraint()
662 (r = sshbuf_put_string(msg, blob, blen)) != 0) in ssh_remove_identity()
H A Dkexmlkem768x25519.c160 if ((r = sshbuf_put_string(buf, hash, in kex_kem_mlkem768x25519_enc()
236 if ((r = sshbuf_put_string(buf, hash, in kex_kem_mlkem768x25519_dec()
H A Dsshkey-xmss.c296 (r = sshbuf_put_string(b, state->enc_keyiv, in sshkey_xmss_serialize_enc_key()
686 (r = sshbuf_put_string(b, state->stack, num_stack(state))) != 0 || in sshkey_xmss_serialize_state()
688 (r = sshbuf_put_string(b, state->stacklevels, num_stacklevels(state))) != 0 || in sshkey_xmss_serialize_state()
689 (r = sshbuf_put_string(b, state->auth, num_auth(state))) != 0 || in sshkey_xmss_serialize_state()
690 (r = sshbuf_put_string(b, state->keep, num_keep(state))) != 0 || in sshkey_xmss_serialize_state()
691 (r = sshbuf_put_string(b, state->th_nodes, num_th_nodes(state))) != 0 || in sshkey_xmss_serialize_state()
692 (r = sshbuf_put_string(b, state->retain, num_retain(state))) != 0 || in sshkey_xmss_serialize_state()
H A Dssh-pkcs11-client.c268 (r = sshbuf_put_string(msg, blob, blen)) != 0 || in rsa_encrypt()
269 (r = sshbuf_put_string(msg, from, flen)) != 0 || in rsa_encrypt()
351 (r = sshbuf_put_string(msg, blob, blen)) != 0 || in ecdsa_do_sign()
352 (r = sshbuf_put_string(msg, dgst, dgst_len)) != 0 || in ecdsa_do_sign()
H A Dsftp-client.c223 (r = sshbuf_put_string(msg, s, len)) != 0) in send_string_request()
241 (r = sshbuf_put_string(msg, s, len)) != 0 || in send_string_attrs_request()
667 (r = sshbuf_put_string(msg, handle, handle_len)) != 0) in sftp_close()
727 (r = sshbuf_put_string(msg, handle, handle_len)) != 0) in sftp_lsreaddir()
1335 (r = sshbuf_put_string(msg, handle, handle_len)) != 0) in sftp_fsync()
1459 (r = sshbuf_put_string(msg, handle, handle_len)) != 0) in sftp_fstatvfs()
1512 (r = sshbuf_put_string(msg, handle, handle_len)) != 0 || in send_read_request()
2121 (r = sshbuf_put_string(msg, handle, in sftp_upload()
2124 (r = sshbuf_put_string(msg, data, len)) != 0) in sftp_upload()
2568 (r = sshbuf_put_string(msg, to_handle, in sftp_crossload()
[all …]
H A Dssh-sk-helper.c132 (r = sshbuf_put_string(resp, sig, siglen)) != 0) in process_sign()
255 (r = sshbuf_put_string(resp, srks[i]->user_id, in process_load_resident()
H A Dssh-pkcs11-helper.c137 if ((r = sshbuf_put_string(msg, blob, blen)) != 0 || in process_add()
238 (r = sshbuf_put_string(msg, signature, slen)) != 0) in process_sign()
H A Dkrl.c586 if ((r = sshbuf_put_string(buf, NULL, 0)) != 0) in revoked_certs_generate()
592 if ((r = sshbuf_put_string(buf, NULL, 0)) != 0) in revoked_certs_generate()
749 (r = sshbuf_put_string(buf, NULL, 0)) != 0 || in ssh_krl_to_blob()
767 if ((r = sshbuf_put_string(sect, rb->blob, rb->len)) != 0) in ssh_krl_to_blob()
778 if ((r = sshbuf_put_string(sect, rb->blob, rb->len)) != 0) in ssh_krl_to_blob()
790 if ((r = sshbuf_put_string(sect, rb->blob, rb->len)) != 0) in ssh_krl_to_blob()
H A Dsshsig.c183 (r = sshbuf_put_string(tosign, NULL, 0)) != 0 || /* reserved */ in sshsig_wrap_sign()
214 (r = sshbuf_put_string(blob, NULL, 0)) != 0 || /* reserved */ in sshsig_wrap_sign()
216 (r = sshbuf_put_string(blob, sig, slen)) != 0) { in sshsig_wrap_sign()
323 (r = sshbuf_put_string(toverify, NULL, 0)) != 0 || /* reserved */ in sshsig_wrap_verify()
H A Dmonitor.c679 (r = sshbuf_put_string(sigbuf, session_id2, in mm_answer_sign()
714 if ((r = sshbuf_put_string(m, signature, siglen)) != 0) in mm_answer_sign()
731 if ((r = sshbuf_put_string(b, \
743 if ((r = sshbuf_put_string(m, &options, sizeof(options))) != 0) in mm_encode_server_options()
1687 (r = sshbuf_put_string(m, out.value, out.length)) != 0 || in mm_answer_gss_accept_ctx()
H A Dssh-keysign.c302 if ((r = sshbuf_put_string(b, signature, slen)) != 0) in main()
H A Dsshbuf.h199 int sshbuf_put_string(struct sshbuf *buf, const void *v, size_t len);
H A Dsshd-session.c274 if ((r = sshbuf_put_string(hostkeys, NULL, 0)) != 0) in pack_hostkeys()
284 if ((r = sshbuf_put_string(hostkeys, NULL, 0)) != 0) in pack_hostkeys()
H A Dssh-sk-client.c250 (r = sshbuf_put_string(req, data, datalen)) != 0 || in sshsk_sign()
/openbsd/regress/usr.bin/ssh/unittests/sshbuf/
H A Dtest_sshbuf_getput_basic.c377 ASSERT_INT_EQ(sshbuf_put_string(p1, x, sizeof(x)), 0); in sshbuf_getput_basic_tests()
388 r = sshbuf_put_string(p1, x, sizeof(x)); in sshbuf_getput_basic_tests()
397 r = sshbuf_put_string(p1, (void *)0x01, 0xfffffffc); in sshbuf_getput_basic_tests()
H A Dtest_sshbuf_getput_crypto.c242 ASSERT_INT_EQ(sshbuf_put_string(p1, expec256, sizeof(expec256)), 0); in sshbuf_getput_crypto_tests()
/openbsd/regress/usr.bin/ssh/unittests/sshkey/
H A Dtest_sshkey.c93 ASSERT_INT_EQ(sshbuf_put_string(b, NULL, 0), 0); /* reserved */ in build_cert()
97 ASSERT_INT_EQ(sshbuf_put_string(b, sigblob, siglen), 0); /* signature */ in build_cert()

12