/freebsd/crypto/openssh/ |
H A D | ssh-ed25519.c | 62 if ((r = sshbuf_put_string(b, key->ed25519_pk, ED25519_PK_SZ)) != 0) in ssh_ed25519_serialize_public() 74 if ((r = sshbuf_put_string(b, key->ed25519_pk, ED25519_PK_SZ)) != 0 || in ssh_ed25519_serialize_private() 75 (r = sshbuf_put_string(b, key->ed25519_sk, ED25519_SK_SZ)) != 0) in ssh_ed25519_serialize_private() 182 (r = sshbuf_put_string(b, sig, smlen - datalen)) != 0) in ssh_ed25519_sign()
|
H A D | ssh-xmss.c | 78 (r = sshbuf_put_string(b, key->xmss_pk, in ssh_xmss_serialize_public() 96 (r = sshbuf_put_string(b, key->xmss_pk, in ssh_xmss_serialize_private() 98 (r = sshbuf_put_string(b, key->xmss_sk, in ssh_xmss_serialize_private() 242 (r = sshbuf_put_string(b, sig, smlen - datalen)) != 0) in ssh_xmss_sign()
|
H A D | sshbuf-getput-crypto.c | 144 if ((r = sshbuf_put_string(buf, d + 1 - prepend, len + prepend)) < 0) { in sshbuf_put_bignum2() 168 ret = sshbuf_put_string(buf, d, len); in sshbuf_put_ec()
|
H A D | monitor_wrap.c | 230 (r = sshbuf_put_string(m, data, datalen)) != 0 || in mm_sshkey_sign() 520 (r = sshbuf_put_string(m, sig, siglen)) != 0 || in mm_sshkey_verify() 521 (r = sshbuf_put_string(m, data, datalen)) != 0 || in mm_sshkey_verify() 933 if ((r = sshbuf_put_string(m, goid->elements, goid->length)) != 0) in mm_ssh_gssapi_server_ctx() 957 if ((r = sshbuf_put_string(m, in->value, in->length)) != 0) in mm_ssh_gssapi_accept_ctx() 986 if ((r = sshbuf_put_string(m, gssbuf->value, gssbuf->length)) != 0 || in mm_ssh_gssapi_checkmic() 987 (r = sshbuf_put_string(m, gssmic->value, gssmic->length)) != 0) in mm_ssh_gssapi_checkmic()
|
H A D | ssh-sk.c | 227 if ((r = sshbuf_put_string(b, in sshsk_ecdsa_assemble() 447 (r = sshbuf_put_string(attest, in fill_attestation_blob() 449 (r = sshbuf_put_string(attest, in fill_attestation_blob() 451 (r = sshbuf_put_string(attest, in fill_attestation_blob() 454 (r = sshbuf_put_string(attest, NULL, 0)) != 0 /* resvd */) { in fill_attestation_blob() 620 if ((r = sshbuf_put_string(sig, in sshsk_ed25519_sig()
|
H A D | sshbuf-getput-basic.c | 514 sshbuf_put_string(struct sshbuf *buf, const void *v, size_t len) in sshbuf_put_string() function 534 return sshbuf_put_string(buf, v, v == NULL ? 0 : strlen(v)); in sshbuf_put_cstring() 541 return sshbuf_put_string(buf, NULL, 0); in sshbuf_put_stringb() 543 return sshbuf_put_string(buf, sshbuf_ptr(v), sshbuf_len(v)); in sshbuf_put_stringb()
|
H A D | kexsntrup761x25519.c | 141 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 D | auth2-hostbased.c | 134 (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 D | ssh-pkcs11-client.c | 282 (r = sshbuf_put_string(msg, blob, blen)) != 0 || in rsa_encrypt() 283 (r = sshbuf_put_string(msg, from, flen)) != 0 || in rsa_encrypt() 365 (r = sshbuf_put_string(msg, blob, blen)) != 0 || in ecdsa_do_sign() 366 (r = sshbuf_put_string(msg, dgst, dgst_len)) != 0 || in ecdsa_do_sign()
|
H A D | authfd.c | 424 (r = sshbuf_put_string(msg, data, datalen)) != 0 || in ssh_agent_sign() 469 (r = sshbuf_put_string(b, NULL, 0)) != 0) /* reserved */ in encode_dest_constraint_hop() 495 (r = sshbuf_put_string(b, NULL, 0)) != 0) /* reserved */ in encode_dest_constraint() 663 (r = sshbuf_put_string(msg, blob, blen)) != 0) in ssh_remove_identity()
|
H A D | sshkey-xmss.c | 302 (r = sshbuf_put_string(b, state->enc_keyiv, in sshkey_xmss_serialize_enc_key() 692 (r = sshbuf_put_string(b, state->stack, num_stack(state))) != 0 || in sshkey_xmss_serialize_state() 694 (r = sshbuf_put_string(b, state->stacklevels, num_stacklevels(state))) != 0 || in sshkey_xmss_serialize_state() 695 (r = sshbuf_put_string(b, state->auth, num_auth(state))) != 0 || in sshkey_xmss_serialize_state() 696 (r = sshbuf_put_string(b, state->keep, num_keep(state))) != 0 || in sshkey_xmss_serialize_state() 697 (r = sshbuf_put_string(b, state->th_nodes, num_th_nodes(state))) != 0 || in sshkey_xmss_serialize_state() 698 (r = sshbuf_put_string(b, state->retain, num_retain(state))) != 0 || in sshkey_xmss_serialize_state()
|
H A D | sftp-client.c | 243 (r = sshbuf_put_string(msg, s, len)) != 0) in send_string_request() 261 (r = sshbuf_put_string(msg, s, len)) != 0 || in send_string_attrs_request() 687 (r = sshbuf_put_string(msg, handle, handle_len)) != 0) in sftp_close() 747 (r = sshbuf_put_string(msg, handle, handle_len)) != 0) in sftp_lsreaddir() 1192 (r = sshbuf_put_string(msg, old_handle, old_handle_len)) != 0 || in sftp_copy() 1195 (r = sshbuf_put_string(msg, new_handle, new_handle_len)) != 0 || in sftp_copy() 1355 (r = sshbuf_put_string(msg, handle, handle_len)) != 0) in sftp_fsync() 1479 (r = sshbuf_put_string(msg, handle, handle_len)) != 0) in sftp_fstatvfs() 1532 (r = sshbuf_put_string(msg, handle, handle_len)) != 0 || in send_read_request() 2146 (r = sshbuf_put_string(msg, handle, in sftp_upload() [all …]
|
H A D | ssh-pkcs11-helper.c | 144 if ((r = sshbuf_put_string(msg, blob, blen)) != 0 || in process_add() 240 (r = sshbuf_put_string(msg, signature, slen)) != 0) in process_sign()
|
H A D | ssh-sk-helper.c | 135 (r = sshbuf_put_string(resp, sig, siglen)) != 0) in process_sign() 258 (r = sshbuf_put_string(resp, srks[i]->user_id, in process_load_resident()
|
H A D | krl.c | 588 if ((r = sshbuf_put_string(buf, NULL, 0)) != 0) in revoked_certs_generate() 594 if ((r = sshbuf_put_string(buf, NULL, 0)) != 0) in revoked_certs_generate() 751 (r = sshbuf_put_string(buf, NULL, 0)) != 0 || in ssh_krl_to_blob() 769 if ((r = sshbuf_put_string(sect, rb->blob, rb->len)) != 0) in ssh_krl_to_blob() 780 if ((r = sshbuf_put_string(sect, rb->blob, rb->len)) != 0) in ssh_krl_to_blob() 792 if ((r = sshbuf_put_string(sect, rb->blob, rb->len)) != 0) in ssh_krl_to_blob()
|
H A D | sshsig.c | 185 (r = sshbuf_put_string(tosign, NULL, 0)) != 0 || /* reserved */ in sshsig_wrap_sign() 216 (r = sshbuf_put_string(blob, NULL, 0)) != 0 || /* reserved */ in sshsig_wrap_sign() 218 (r = sshbuf_put_string(blob, sig, slen)) != 0) { in sshsig_wrap_sign() 325 (r = sshbuf_put_string(toverify, NULL, 0)) != 0 || /* reserved */ in sshsig_wrap_verify()
|
H A D | monitor.c | 653 (r = sshbuf_put_string(sigbuf, session_id2, in mm_answer_sign() 688 if ((r = sshbuf_put_string(m, signature, siglen)) != 0) in mm_answer_sign() 705 if ((r = sshbuf_put_string(b, \ 769 if ((r = sshbuf_put_string(m, &options, sizeof(options))) != 0) in mm_answer_pwnamallow() 1883 (r = sshbuf_put_string(m, out.value, out.length)) != 0 || in mm_answer_gss_accept_ctx()
|
H A D | ssh-keysign.c | 305 if ((r = sshbuf_put_string(b, signature, slen)) != 0) in main()
|
H A D | sshbuf.h | 192 int sshbuf_put_string(struct sshbuf *buf, const void *v, size_t len);
|
H A D | ssh-sk-client.c | 256 (r = sshbuf_put_string(req, data, datalen)) != 0 || in sshsk_sign()
|
H A D | ssh-dss.c | 307 (ret = sshbuf_put_string(b, sigblob, SIGBLOB_LEN)) != 0) in ssh_dss_sign()
|
/freebsd/crypto/openssh/regress/unittests/sshbuf/ |
H A D | test_sshbuf_getput_basic.c | 381 ASSERT_INT_EQ(sshbuf_put_string(p1, x, sizeof(x)), 0); in sshbuf_getput_basic_tests() 392 r = sshbuf_put_string(p1, x, sizeof(x)); in sshbuf_getput_basic_tests() 401 r = sshbuf_put_string(p1, (void *)0x01, 0xfffffffc); in sshbuf_getput_basic_tests()
|
H A D | test_sshbuf_getput_crypto.c | 254 ASSERT_INT_EQ(sshbuf_put_string(p1, expec256, sizeof(expec256)), 0); in sshbuf_getput_crypto_tests()
|
/freebsd/crypto/openssh/regress/unittests/sshkey/ |
H A D | test_sshkey.c | 103 ASSERT_INT_EQ(sshbuf_put_string(b, NULL, 0), 0); /* reserved */ in build_cert() 107 ASSERT_INT_EQ(sshbuf_put_string(b, sigblob, siglen), 0); /* signature */ in build_cert()
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | port-net.c | 347 if ((r = sshbuf_put_string(c->input, ptr, len)) != 0) in sys_tun_infilter()
|