Home
last modified time | relevance | path

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

12

/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()
460 assert(output == out_buf + strlen(out_buf)); in md5crypt()
476 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 …]
H A Dsanitizer_stacktrace.h68 uptr PrintTo(char *out_buf, uptr out_buf_size) const;
/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.c27 uint_t km_len, uint8_t *out_buf) in hkdf_sha512_extract() argument
35 crypto_mac(&key, key_material, km_len, out_buf, SHA512_DIGEST_LENGTH); in hkdf_sha512_extract()
42 uint8_t *out_buf, uint_t out_len) in hkdf_sha512_expand() argument
66 memcpy(out_buf + pos, T, in hkdf_sha512_expand()
/freebsd/sys/dev/firmware/arm/
H A Dscmi_clk.c
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dhkdf.c26 uint_t km_len, uint8_t *out_buf) in hkdf_sha512_extract() argument
52 output_cd.cd_raw.iov_base = (char *)out_buf; in hkdf_sha512_extract()
64 uint8_t *out_buf, uint_t out_len) in hkdf_sha512_expand() argument
135 memcpy(out_buf + pos, T, in hkdf_sha512_expand()
/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/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/sys/dev/xilinx/
H A Daxi_quad_spi.c157 spi_txrx(struct spi_softc *sc, uint8_t *out_buf, in spi_txrx() argument
164 WRITE4(sc, SPI_DTR, out_buf[i]); in spi_txrx()
/freebsd/crypto/libecc/include/libecc/sig/
H A Dsig_algs.h98 const u8 *out_buf, u32 outlen,
104 u8 *out_buf, u32 outlen,
/freebsd/sys/arm/freescale/vybrid/
H A Dvf_spi.c205 spi_txrx(struct spi_softc *sc, uint8_t *out_buf, in spi_txrx() argument
216 wreg = out_buf[i]; in spi_txrx()
/freebsd/contrib/atf/atf-c/detail/
H A Dfs.c809 goto out_buf; in atf_fs_mkdtemp()
814 out_buf: in atf_fs_mkdtemp()
838 goto out_buf; in atf_fs_mkstemp()
844 out_buf: in atf_fs_mkstemp()
/freebsd/crypto/openssh/
H A Dumac.c188 UINT8 out_buf[AES_BLOCK_LEN]; in kdf() local
197 aes_encryption(in_buf, out_buf, key); in kdf()
198 memcpy(dst_buf,out_buf,AES_BLOCK_LEN); in kdf()
204 aes_encryption(in_buf, out_buf, key); in kdf()
205 memcpy(dst_buf,out_buf,nbytes); in kdf()
208 explicit_bzero(out_buf, sizeof(out_buf)); in kdf()
/freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerExtFunctions.def41 (void *, const char *fmt, char *out_buf, size_t out_buf_size), false);

12