Home
last modified time | relevance | path

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

12

/freebsd/crypto/krb5/src/lib/rpc/
H A Dauth_gssapi_misc.c95 gss_buffer_t out_buf) in auth_gssapi_seal_seq() argument
106 &in_buf, NULL, out_buf); in auth_gssapi_seal_seq()
121 gss_buffer_desc out_buf; in auth_gssapi_unseal_seq() local
125 gssstat = gss_unseal(&minor_stat, context, in_buf, &out_buf, in auth_gssapi_unseal_seq()
132 } else if (out_buf.length != sizeof(uint32_t)) { in auth_gssapi_unseal_seq()
134 (int) out_buf.length)); in auth_gssapi_unseal_seq()
135 gss_release_buffer(&minor_stat, &out_buf); in auth_gssapi_unseal_seq()
139 nl_seq_num = *((uint32_t *) out_buf.value); in auth_gssapi_unseal_seq()
141 gss_release_buffer(&minor_stat, &out_buf); in auth_gssapi_unseal_seq()
205 gss_buffer_desc in_buf, out_buf; in auth_gssapi_wrap_data() local
[all …]
H A Dsvc_auth_gssapi.c165 gss_buffer_desc output_token, in_buf, out_buf; in gssrpc__svcauth_gssapi() local
550 &out_buf) == FALSE) { in gssrpc__svcauth_gssapi()
561 rqst->rq_xprt->xp_verf.oa_base = out_buf.value; in gssrpc__svcauth_gssapi()
562 rqst->rq_xprt->xp_verf.oa_length = out_buf.length; in gssrpc__svcauth_gssapi()
565 client_data->prev_verf.value = out_buf.value; in gssrpc__svcauth_gssapi()
566 client_data->prev_verf.length = out_buf.length; in gssrpc__svcauth_gssapi()
821 gss_buffer_desc out_buf; in destroy_client() local
835 &out_buf); in destroy_client()
840 gss_release_buffer(&minor_stat, &out_buf); in destroy_client()
H A Dauth_gssapi.c574 gss_buffer_desc out_buf; in auth_gssapi_marshall() local
585 &out_buf) == FALSE) { in auth_gssapi_marshall()
589 auth->ah_verf.oa_base = out_buf.value; in auth_gssapi_marshall()
590 auth->ah_verf.oa_length = out_buf.length; in auth_gssapi_marshall()
594 (void) gss_release_buffer(&minor_stat, &out_buf); in auth_gssapi_marshall()
597 (void) gss_release_buffer(&minor_stat, &out_buf); in auth_gssapi_marshall()
/freebsd/crypto/openssl/apps/
H A Dpasswd.c317 static char out_buf[6 + 9 + 24 + 2]; in md5crypt() local
330 out_buf[0] = 0; in md5crypt()
354 OPENSSL_strlcat(out_buf, ascii_dollar, sizeof(out_buf)); in md5crypt()
359 OPENSSL_strlcat(out_buf, ascii_magic, sizeof(out_buf)); in md5crypt()
360 OPENSSL_strlcat(out_buf, ascii_dollar, sizeof(out_buf)); in md5crypt()
363 OPENSSL_strlcat(out_buf, ascii_salt, sizeof(out_buf)); in md5crypt()
365 if (strlen(out_buf) > 6 + 8) /* assert "$apr1$..salt.." */ in md5crypt()
368 salt_out = out_buf; in md5crypt()
459 assert(output == out_buf + strlen(out_buf)); in md5crypt()
475 assert(strlen(out_buf) < sizeof(out_buf)); in md5crypt()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_stacktrace_libcdep.cpp81 static void CopyStringToBuffer(const InternalScopedString &str, char *out_buf, in CopyStringToBuffer() argument
88 internal_memcpy(out_buf, str.data(), copy_size); in CopyStringToBuffer()
89 out_buf[copy_size] = '\0'; in CopyStringToBuffer()
121 uptr StackTrace::PrintTo(char *out_buf, uptr out_buf_size) const { in PrintTo() argument
122 CHECK(out_buf); in PrintTo()
126 CopyStringToBuffer(output, out_buf, out_buf_size); in PrintTo()
190 void __sanitizer_symbolize_pc(uptr pc, const char *fmt, char *out_buf, in __sanitizer_symbolize_pc() argument
203 CopyStringToBuffer(output, out_buf, out_buf_size); in __sanitizer_symbolize_pc()
208 char *out_buf, uptr out_buf_size) { in __sanitizer_symbolize_global() argument
210 out_buf[0] = 0; in __sanitizer_symbolize_global()
[all …]
/freebsd/contrib/wpa/src/eap_server/
H A Deap_server_tnc.c24 struct wpabuf *out_buf; member
98 wpabuf_free(data->out_buf); in eap_tnc_reset()
227 send_len = wpabuf_len(data->out_buf) - data->out_used; in eap_tnc_build_msg()
247 wpabuf_put_be32(req, wpabuf_len(data->out_buf)); in eap_tnc_build_msg()
249 wpabuf_put_data(req, wpabuf_head_u8(data->out_buf) + data->out_used, in eap_tnc_build_msg()
253 if (data->out_used == wpabuf_len(data->out_buf)) { in eap_tnc_build_msg()
257 wpabuf_free(data->out_buf); in eap_tnc_build_msg()
258 data->out_buf = NULL; in eap_tnc_build_msg()
267 (unsigned long) wpabuf_len(data->out_buf) - in eap_tnc_build_msg()
289 if (data->out_buf == NULL) { in eap_tnc_buildReq()
[all …]
H A Deap_server_wsc.c23 struct wpabuf *out_buf; member
161 wpabuf_free(data->out_buf); in eap_wsc_reset()
195 send_len = wpabuf_len(data->out_buf) - data->out_used; in eap_wsc_build_msg()
218 wpabuf_put_be16(req, wpabuf_len(data->out_buf)); in eap_wsc_build_msg()
220 wpabuf_put_data(req, wpabuf_head_u8(data->out_buf) + data->out_used, in eap_wsc_build_msg()
224 if (data->out_used == wpabuf_len(data->out_buf)) { in eap_wsc_build_msg()
228 wpabuf_free(data->out_buf); in eap_wsc_build_msg()
229 data->out_buf = NULL; in eap_wsc_build_msg()
235 (unsigned long) wpabuf_len(data->out_buf) - in eap_wsc_build_msg()
252 if (data->out_buf == NULL) { in eap_wsc_buildReq()
[all …]
H A Deap_server_ikev2.c21 struct wpabuf *out_buf; member
127 wpabuf_free(data->out_buf); in eap_ikev2_reset()
142 send_len = wpabuf_len(data->out_buf) - data->out_used; in eap_ikev2_build_msg()
177 wpabuf_put_be32(req, wpabuf_len(data->out_buf)); in eap_ikev2_build_msg()
179 wpabuf_put_data(req, wpabuf_head_u8(data->out_buf) + data->out_used, in eap_ikev2_build_msg()
192 if (data->out_used == wpabuf_len(data->out_buf)) { in eap_ikev2_build_msg()
196 wpabuf_free(data->out_buf); in eap_ikev2_build_msg()
197 data->out_buf = NULL; in eap_ikev2_build_msg()
202 (unsigned long) wpabuf_len(data->out_buf) - in eap_ikev2_build_msg()
217 if (data->out_buf == NULL) { in eap_ikev2_buildReq()
[all …]
/freebsd/contrib/libarchive/libarchive/
H A Darchive_read_support_filter_program.c116 char *out_buf; member
395 char *out_buf; in __archive_read_program() local
402 out_buf = malloc(out_buf_len); in __archive_read_program()
403 if (state == NULL || out_buf == NULL || in __archive_read_program()
411 free(out_buf); in __archive_read_program()
420 state->out_buf = out_buf; in __archive_read_program()
426 free(state->out_buf); in __archive_read_program()
462 p = state->out_buf; in program_filter_read()
476 *buff = state->out_buf; in program_filter_read()
490 free(state->out_buf); in program_filter_close()
/freebsd/crypto/heimdal/appl/push/
H A Dpush.c214 char out_buf[PUSH_BUFSIZ]; in doit() local
273 out_len = snprintf (out_buf, sizeof(out_buf), in doit()
276 if (out_len < 0 || out_len > sizeof(out_buf)) in doit()
278 if (net_write (s, out_buf, out_len) != out_len) in doit()
281 fprintf (stderr, "%s", out_buf); in doit()
481 out_len = snprintf (out_buf, sizeof(out_buf), in doit()
484 out_len = snprintf (out_buf, sizeof(out_buf), in doit()
487 out_len = snprintf(out_buf, sizeof(out_buf), in doit()
492 out_len = snprintf (out_buf, sizeof(out_buf), in doit()
494 if (out_len < 0 || out_len > sizeof(out_buf)) in doit()
[all …]
/freebsd/contrib/wpa/src/eap_peer/
H A Deap_tnc.c21 struct wpabuf *out_buf; member
64 wpabuf_free(data->out_buf); in eap_tnc_deinit()
100 send_len = wpabuf_len(data->out_buf) - data->out_used; in eap_tnc_build_msg()
120 wpabuf_put_be32(resp, wpabuf_len(data->out_buf)); in eap_tnc_build_msg()
122 wpabuf_put_data(resp, wpabuf_head_u8(data->out_buf) + data->out_used, in eap_tnc_build_msg()
129 if (data->out_used == wpabuf_len(data->out_buf)) { in eap_tnc_build_msg()
133 wpabuf_free(data->out_buf); in eap_tnc_build_msg()
134 data->out_buf = NULL; in eap_tnc_build_msg()
139 (unsigned long) wpabuf_len(data->out_buf) - in eap_tnc_build_msg()
399 data->out_buf = resp; in eap_tnc_process()
H A Deap_ikev2.c21 struct wpabuf *out_buf; member
112 wpabuf_free(data->out_buf); in eap_ikev2_deinit()
146 send_len = wpabuf_len(data->out_buf) - data->out_used; in eap_ikev2_build_msg()
181 wpabuf_put_be32(resp, wpabuf_len(data->out_buf)); in eap_ikev2_build_msg()
183 wpabuf_put_data(resp, wpabuf_head_u8(data->out_buf) + data->out_used, in eap_ikev2_build_msg()
199 if (data->out_used == wpabuf_len(data->out_buf)) { in eap_ikev2_build_msg()
203 wpabuf_free(data->out_buf); in eap_ikev2_build_msg()
204 data->out_buf = NULL; in eap_ikev2_build_msg()
235 (unsigned long) wpabuf_len(data->out_buf) - in eap_ikev2_build_msg()
423 if (data->out_buf == NULL) { in eap_ikev2_process()
[all …]
H A Deap_wsc.c23 struct wpabuf *out_buf; member
302 wpabuf_free(data->out_buf); in eap_wsc_deinit()
322 send_len = wpabuf_len(data->out_buf) - data->out_used; in eap_wsc_build_msg()
342 wpabuf_put_be16(resp, wpabuf_len(data->out_buf)); in eap_wsc_build_msg()
344 wpabuf_put_data(resp, wpabuf_head_u8(data->out_buf) + data->out_used, in eap_wsc_build_msg()
351 if (data->out_used == wpabuf_len(data->out_buf)) { in eap_wsc_build_msg()
355 wpabuf_free(data->out_buf); in eap_wsc_build_msg()
356 data->out_buf = NULL; in eap_wsc_build_msg()
368 (unsigned long) wpabuf_len(data->out_buf) - in eap_wsc_build_msg()
564 if (data->out_buf == NULL) { in eap_wsc_process()
[all …]
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dhkdf.c28 uint_t km_len, uint8_t *out_buf) in hkdf_sha512_extract() argument
36 crypto_mac(&key, key_material, km_len, out_buf, SHA512_DIGEST_LENGTH); in hkdf_sha512_extract()
43 uint8_t *out_buf, uint_t out_len) in hkdf_sha512_expand() argument
67 memcpy(out_buf + pos, T, in hkdf_sha512_expand()
/freebsd/crypto/krb5/src/tests/gss-threads/
H A Dgss-client.c379 gss_buffer_desc in_buf, out_buf, sname, tname, oid_name; in call_server() local
486 GSS_C_QOP_DEFAULT, &in_buf, &state, &out_buf); in call_server()
497 out_buf = in_buf; in call_server()
507 if (send_token(s, flags, &out_buf) < 0) { in call_server()
512 if (out_buf.value != in_buf.value) in call_server()
513 (void)gss_release_buffer(&min_stat, &out_buf); in call_server()
516 if (recv_token(s, &token_flags, &out_buf) < 0) { in call_server()
524 maj_stat = gss_verify_mic(&min_stat, context, &in_buf, &out_buf, in call_server()
540 free(out_buf.value); in call_server()
552 maj_stat = gss_delete_sec_context(&min_stat, &context, &out_buf); in call_server()
[all …]
/freebsd/sys/dev/firmware/arm/
H A Dscmi_clk.c
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dhkdf.c27 uint_t km_len, uint8_t *out_buf) in hkdf_sha512_extract() argument
53 output_cd.cd_raw.iov_base = (char *)out_buf; in hkdf_sha512_extract()
65 uint8_t *out_buf, uint_t out_len) in hkdf_sha512_expand() argument
136 memcpy(out_buf + pos, T, in hkdf_sha512_expand()
/freebsd/crypto/krb5/src/appl/gss-sample/
H A Dgss-client.c406 gss_buffer_desc in_buf, out_buf; in call_server() local
520 &in_buf, &state, &out_buf); in call_server()
528 out_buf = in_buf; in call_server()
537 &out_buf) < 0) in call_server()
540 if (out_buf.value != in_buf.value) in call_server()
541 (void) gss_release_buffer(&min_stat, &out_buf); in call_server()
544 if (recv_token(s, &token_flags, &out_buf) < 0) in call_server()
550 &out_buf, &qop_state); in call_server()
563 free(out_buf.value); in call_server()
/freebsd/crypto/libecc/src/sig/
H A Dsig_algs.c703 const u8 *out_buf, u32 outlen, in ec_structured_sig_import_from_buf() argument
711 MUST_HAVE((out_buf != NULL) && (sig_type != NULL) && in ec_structured_sig_import_from_buf()
723 *sig_type = (ec_alg_type)out_buf[0]; in ec_structured_sig_import_from_buf()
724 *hash_type = (hash_alg_type)out_buf[1]; in ec_structured_sig_import_from_buf()
725 ret = ec_get_curve_name_by_type((ec_curve_type) out_buf[2], in ec_structured_sig_import_from_buf()
729 ret = local_memcpy(sig, out_buf + metadata_len, siglen); in ec_structured_sig_import_from_buf()
741 u8 *out_buf, u32 outlen, in ec_structured_sig_export_to_buf() argument
753 MUST_HAVE((out_buf != NULL) && (curve_name != NULL), ret, err); in ec_structured_sig_export_to_buf()
765 out_buf[0] = (u8)sig_type; in ec_structured_sig_export_to_buf()
766 out_buf[1] = (u8)hash_type; in ec_structured_sig_export_to_buf()
[all …]
/freebsd/share/examples/libusb20/
H A Dbulk.c61 uint8_t out_buf[BUFLEN]; variable
125 if ((rv = libusb20_tr_bulk_intr_sync(xfr_out, out_buf, out_len, &rlen, TIMEOUT)) in doit()
209 out_buf[out_len] = (uint8_t)n; in main()
H A Dcontrol.c64 uint8_t out_buf[BUFLEN]; variable
121 data = out_buf; in doit()
380 out_buf[out_len] = (uint8_t)n; in main()
/freebsd/contrib/xz/src/xzdec/
H A Dxzdec.c189 uint8_t out_buf[BUFSIZ]; in uncompress() local
192 strm->next_out = out_buf; in uncompress()
228 if (fwrite(out_buf, 1, write_size, stdout) in uncompress()
247 strm->next_out = out_buf; in uncompress()
/freebsd/contrib/llvm-project/compiler-rt/lib/dfsan/
H A Ddfsan.cpp890 char *out_buf, uptr out_buf_size) { in dfsan_sprint_origin_trace() argument
891 CHECK(out_buf); in dfsan_sprint_origin_trace()
913 internal_strncpy(out_buf, trace.data(), out_buf_size - 1); in dfsan_sprint_origin_trace()
914 out_buf[out_buf_size - 1] = '\0'; in dfsan_sprint_origin_trace()
939 dfsan_origin origin, char *out_buf, uptr out_buf_size) { in dfsan_sprint_origin_id_trace() argument
940 CHECK(out_buf); in dfsan_sprint_origin_id_trace()
957 internal_strncpy(out_buf, trace.data(), out_buf_size - 1); in dfsan_sprint_origin_id_trace()
958 out_buf[out_buf_size - 1] = '\0'; in dfsan_sprint_origin_id_trace()
1004 dfsan_sprint_stack_trace(char *out_buf, uptr out_buf_size) { in dfsan_sprint_stack_trace() argument
1005 CHECK(out_buf); in dfsan_sprint_stack_trace()
[all …]
/freebsd/sys/dev/cxgbe/cudbg/
H A Dfastlz_api.c84 int write_to_buf(void *out_buf, u32 out_buf_size, u32 *offset, void *in_buf, in write_to_buf() argument
94 memcpy((char *)out_buf + *offset, in_buf, in_buf_size); in write_to_buf()
101 int read_from_buf(void *in_buf, u32 in_buf_size, u32 *offset, void *out_buf, in read_from_buf() argument
107 memcpy((char *)out_buf, (char *)in_buf + *offset, out_buf_size); in read_from_buf()
/freebsd/crypto/libecc/include/libecc/sig/
H A Dsig_algs.h98 const u8 *out_buf, u32 outlen,
104 u8 *out_buf, u32 outlen,

12