| /NextBSD/crypto/openssh/ |
| HD | rsa.c | 77 u_char *inbuf, *outbuf; in rsa_public_encrypt() local 84 outbuf = xmalloc(olen); in rsa_public_encrypt() 90 if ((len = RSA_public_encrypt(ilen, inbuf, outbuf, key, in rsa_public_encrypt() 94 if (BN_bin2bn(outbuf, len, out) == NULL) in rsa_public_encrypt() 97 explicit_bzero(outbuf, olen); in rsa_public_encrypt() 99 free(outbuf); in rsa_public_encrypt() 106 u_char *inbuf, *outbuf; in rsa_private_decrypt() local 110 outbuf = xmalloc(olen); in rsa_private_decrypt() 116 if ((len = RSA_private_decrypt(ilen, inbuf, outbuf, key, in rsa_private_decrypt() 120 if (BN_bin2bn(outbuf, len, out) == NULL) in rsa_private_decrypt() [all …]
|
| /NextBSD/tools/test/iconv/posix/ |
| HD | posix.c | 113 uint32_t outbuf[4]; in conv_ret() local 120 outptr = (char *)outbuf; in conv_ret() 135 uint32_t outbuf[2]; in conv_2big() local 142 outptr = (char *)outbuf; in conv_2big() 153 printf("outptr - outbuf = %d\n", (uint8_t *)outptr - (uint8_t *)outbuf); in conv_2big() 159 (outbytesleft == 0) && ((uint8_t *)outptr - (uint8_t *)outbuf == 8) && in conv_2big() 173 uint32_t outbuf[4]; in conv_einval() local 181 outptr = (char *)outbuf; in conv_einval() 192 printf("outptr - outbuf = %d\n", (uint8_t *)outptr - (uint8_t *)outbuf); in conv_einval() 198 (outbytesleft == 8) && ((uint8_t *)outptr - (uint8_t *)outbuf == 8) && in conv_einval() [all …]
|
| /NextBSD/crypto/openssl/crypto/des/ |
| HD | enc_writ.c | 93 static unsigned char *outbuf = NULL; in DES_enc_write() 102 if (outbuf == NULL) { in DES_enc_write() 103 outbuf = OPENSSL_malloc(BSIZE + HDRSIZE); in DES_enc_write() 104 if (outbuf == NULL) in DES_enc_write() 131 p = outbuf; in DES_enc_write() 148 DES_pcbc_encrypt(cp, &(outbuf[HDRSIZE]), (len < 8) ? 8 : len, sched, in DES_enc_write() 151 DES_cbc_encrypt(cp, &(outbuf[HDRSIZE]), (len < 8) ? 8 : len, sched, in DES_enc_write() 162 i = write(fd, (void *)&(outbuf[j]), outnum - j); in DES_enc_write() 164 i = _write(fd, (void *)&(outbuf[j]), outnum - j); in DES_enc_write()
|
| /NextBSD/usr.bin/rctl/ |
| HD | rctl.c | 417 char *outbuf = NULL; in show_limits() local 422 outbuf = realloc(outbuf, outbuflen); in show_limits() 423 if (outbuf == NULL) in show_limits() 426 outbuf, outbuflen); in show_limits() 434 free(outbuf); in show_limits() 439 print_rules(outbuf, hflag, nflag); in show_limits() 440 free(outbuf); in show_limits() 500 char *copy, *outbuf = NULL, *tmp; in show_usage() local 505 outbuf = realloc(outbuf, outbuflen); in show_usage() 506 if (outbuf == NULL) in show_usage() [all …]
|
| /NextBSD/contrib/apr-util/xlate/ |
| HD | xlate.c | 108 char inbuf[256], outbuf[256]; in check_sbcs() local 110 char *outbufptr = outbuf; in check_sbcs() 130 convset->sbcs_table = apr_palloc(convset->pool, sizeof(outbuf)); in check_sbcs() 131 memcpy(convset->sbcs_table, outbuf, sizeof(outbuf)); in check_sbcs() 147 char inbuf[256], outbuf[256]; in check_sbcs() local 149 char *outbufptr = outbuf; in check_sbcs() 172 convset->sbcs_table = apr_palloc(convset->pool, sizeof(outbuf)); in check_sbcs() 173 memcpy(convset->sbcs_table, outbuf, sizeof(outbuf)); in check_sbcs() 286 char *outbuf, in apr_xlate_conv_buffer() argument 295 char *outbufptr = outbuf; in apr_xlate_conv_buffer() [all …]
|
| /NextBSD/contrib/ncurses/progs/ |
| HD | dump_entry.c | 67 static DYNBUF outbuf; variable 152 free_DYN(&outbuf); in _nc_leaks_dump_entry() 402 while (outbuf.used > 0 && outbuf.text[outbuf.used - 1] == ' ') in trim_trailing() 403 outbuf.text[--outbuf.used] = '\0'; in trim_trailing() 411 strcpy_DYN(&outbuf, trailer); in force_wrap() 425 strcpy_DYN(&outbuf, src); in wrap_concat() 426 strcpy_DYN(&outbuf, separator); in wrap_concat() 623 strcpy_DYN(&outbuf, 0); in fmt_entry() 627 strcpy_DYN(&outbuf, tterm->term_names); in fmt_entry() 633 char *p = outbuf.text; in fmt_entry() [all …]
|
| /NextBSD/sys/fs/cd9660/ |
| HD | cd9660_rrip.c | 120 char *outbuf, *inbuf; local 126 outbuf = ana->outbuf; 140 *outbuf++ = '/'; 168 outbuf -= len; 200 ana->outbuf -= *ana->outlen; 205 bcopy(inbuf,outbuf,wlen); 206 outbuf += wlen; 210 ana->outbuf = outbuf; 274 ana->outbuf -= *ana->outlen - wlen; 279 bcopy(inbuf,ana->outbuf,wlen); [all …]
|
| /NextBSD/tools/test/iconv/gnu/ |
| HD | gnu.c | 249 char *outbuf; in ctl_uc_hook() local 255 outbuf = malloc(40); in ctl_uc_hook() 256 outptr = &outbuf; in ctl_uc_hook() 279 char *outbuf; in ctl_wc_hook() local 285 outbuf = malloc(40); in ctl_wc_hook() 286 outptr = &outbuf; in ctl_wc_hook() 352 uint8_t outbuf[4] = { 0x00, 0x00, 0x00, 0x00 }; in ctl_mb_to_uc_fb() local 370 outptr = (char *)outbuf; in ctl_mb_to_uc_fb() 378 printf("mb_uc fallback: %c\n", outbuf[0]); in ctl_mb_to_uc_fb() 381 if (mb_uc_fb && (outbuf[0] == 0x3F)) in ctl_mb_to_uc_fb() [all …]
|
| /NextBSD/crypto/heimdal/lib/krb5/ |
| HD | rd_safe.c | 87 krb5_data *outbuf, in krb5_rd_safe() argument 94 krb5_data_zero(outbuf); in krb5_rd_safe() 191 outbuf->length = safe.safe_body.user_data.length; in krb5_rd_safe() 192 outbuf->data = malloc(outbuf->length); in krb5_rd_safe() 193 if (outbuf->data == NULL && outbuf->length != 0) { in krb5_rd_safe() 196 krb5_data_zero(outbuf); in krb5_rd_safe() 199 memcpy (outbuf->data, safe.safe_body.user_data.data, outbuf->length); in krb5_rd_safe()
|
| HD | mk_req.c | 43 krb5_data *outbuf) in krb5_mk_req_exact() argument 75 outbuf); in krb5_mk_req_exact() 88 krb5_data *outbuf) in krb5_mk_req() argument 111 server, in_data, ccache, outbuf); in krb5_mk_req()
|
| /NextBSD/contrib/ipfilter/samples/ |
| HD | proxy.c | 233 char netbuf[1024], outbuf[1024]; local 249 orptr = outbuf; 250 owptr = outbuf; 251 osz = sizeof(outbuf); 259 if (orptr - outbuf < sizeof(outbuf)) 264 if (osz < sizeof(outbuf)) 279 i = read(net, orptr, sizeof(outbuf) - (orptr - outbuf)); 292 if (osz == sizeof(outbuf) || owptr == orptr) { 293 orptr = outbuf; 294 owptr = outbuf;
|
| /NextBSD/usr.bin/gzip/ |
| HD | unbzip2.c | 42 static char *inbuf, *outbuf; in unbzip2() local 46 if (outbuf == NULL) in unbzip2() 47 outbuf = malloc(BUFLEN); in unbzip2() 48 if (inbuf == NULL || outbuf == NULL) in unbzip2() 82 bzs.next_out = outbuf; in unbzip2() 104 n = write(out, outbuf, BUFLEN - bzs.avail_out); in unbzip2()
|
| /NextBSD/sys/fs/smbfs/ |
| HD | smbfs_subr.c | 160 char outbuf[SMB_MAXFNAMELEN]; in smbfs_fname_tolocal() local 161 char *obuf = outbuf; in smbfs_fname_tolocal() 164 olen = sizeof(outbuf); in smbfs_fname_tolocal() 165 bzero(outbuf, sizeof(outbuf)); in smbfs_fname_tolocal() 187 *nmlen = sizeof(outbuf) - olen; in smbfs_fname_tolocal() 188 memcpy(name, outbuf, *nmlen); in smbfs_fname_tolocal()
|
| /NextBSD/sys/sys/ |
| HD | iconv.h | 158 size_t *inbytesleft, char **outbuf, size_t *outbytesleft); 160 size_t *inbytesleft, char **outbuf, size_t *outbytesleft, int casetype); 162 size_t *inbytesleft, char **outbuf, size_t *outbytesleft); 164 size_t *inbytesleft, char **outbuf, size_t *outbytesleft, int casetype); 180 char **outbuf, size_t *outbytesleft); 182 char **outbuf, size_t *outbytesleft, int casetype); 184 char **outbuf, size_t *outbytesleft); 186 char **outbuf, size_t *outbytesleft, int casetype);
|
| /NextBSD/contrib/wpa/src/eap_peer/ |
| HD | eap_pwd.c | 35 struct wpabuf *outbuf; member 138 data->inbuf = data->outbuf = NULL; in eap_pwd_init() 173 wpabuf_free(data->outbuf); in eap_pwd_deinit() 338 data->outbuf = wpabuf_alloc(sizeof(struct eap_pwd_id) + in eap_pwd_perform_id_exchange() 340 if (data->outbuf == NULL) { in eap_pwd_perform_id_exchange() 344 wpabuf_put_be16(data->outbuf, data->group_num); in eap_pwd_perform_id_exchange() 345 wpabuf_put_u8(data->outbuf, EAP_PWD_DEFAULT_RAND_FUNC); in eap_pwd_perform_id_exchange() 346 wpabuf_put_u8(data->outbuf, EAP_PWD_DEFAULT_PRF); in eap_pwd_perform_id_exchange() 347 wpabuf_put_data(data->outbuf, id->token, sizeof(id->token)); in eap_pwd_perform_id_exchange() 348 wpabuf_put_u8(data->outbuf, EAP_PWD_PREP_NONE); in eap_pwd_perform_id_exchange() [all …]
|
| /NextBSD/sys/libkern/ |
| HD | iconv_xlat.c | 81 size_t *inbytesleft, char **outbuf, size_t *outbytesleft, in iconv_xlat_conv() argument 89 if (inbuf == NULL || *inbuf == NULL || outbuf == NULL || *outbuf == NULL) in iconv_xlat_conv() 98 dst = *outbuf; in iconv_xlat_conv() 102 *outbuf += n; in iconv_xlat_conv()
|
| /NextBSD/sys/dev/acpi_support/ |
| HD | acpi_hp.c | 293 UINT8 instance, char* outbuf, size_t outsize, 888 char* outbuf, size_t outsize, UINT32* sequence, int detail) in acpi_hp_get_cmi_block() argument 901 outbuf[0] = 0; in acpi_hp_get_cmi_block() 933 strlcat(outbuf, acpi_hp_get_string_from_object( in acpi_hp_get_cmi_block() 937 while (strlen(outbuf) < outlen) in acpi_hp_get_cmi_block() 938 strlcat(outbuf, " ", outsize); in acpi_hp_get_cmi_block() 940 strlcat(outbuf, acpi_hp_get_string_from_object( in acpi_hp_get_cmi_block() 944 while (strlen(outbuf) < outlen) in acpi_hp_get_cmi_block() 945 strlcat(outbuf, " ", outsize); in acpi_hp_get_cmi_block() 946 strlcat(outbuf, acpi_hp_get_string_from_object( in acpi_hp_get_cmi_block() [all …]
|
| /NextBSD/contrib/wpa/src/eap_server/ |
| HD | eap_server_pwd.c | 35 struct wpabuf *outbuf; member 129 data->inbuf = data->outbuf = NULL; in eap_pwd_init() 159 wpabuf_free(data->outbuf); in eap_pwd_reset() 174 data->outbuf = wpabuf_alloc(sizeof(struct eap_pwd_id) + in eap_pwd_build_id_req() 176 if (data->outbuf == NULL) { in eap_pwd_build_id_req() 183 wpabuf_put_be16(data->outbuf, data->group_num); in eap_pwd_build_id_req() 184 wpabuf_put_u8(data->outbuf, EAP_PWD_DEFAULT_RAND_FUNC); in eap_pwd_build_id_req() 185 wpabuf_put_u8(data->outbuf, EAP_PWD_DEFAULT_PRF); in eap_pwd_build_id_req() 186 wpabuf_put_data(data->outbuf, &data->token, sizeof(data->token)); in eap_pwd_build_id_req() 187 wpabuf_put_u8(data->outbuf, data->password_hash ? EAP_PWD_PREP_MS : in eap_pwd_build_id_req() [all …]
|
| /NextBSD/contrib/pf/libevent/ |
| HD | buffer.c | 92 evbuffer_add_buffer(struct evbuffer *outbuf, struct evbuffer *inbuf) in evbuffer_add_buffer() argument 97 if (outbuf->off == 0) { in evbuffer_add_buffer() 102 SWAP(&tmp, outbuf); in evbuffer_add_buffer() 103 SWAP(outbuf, inbuf); in evbuffer_add_buffer() 113 if (oldoff && outbuf->cb != NULL) in evbuffer_add_buffer() 114 (*outbuf->cb)(outbuf, 0, oldoff, outbuf->cbarg); in evbuffer_add_buffer() 119 res = evbuffer_add(outbuf, inbuf->buffer, inbuf->off); in evbuffer_add_buffer()
|
| /NextBSD/contrib/gcclibs/libcpp/ |
| HD | charset.c | 235 uchar *outbuf = *outbufp; in one_cppchar_to_utf8() local 256 *outbuf++ = *p++; in one_cppchar_to_utf8() 258 *outbufp = outbuf; in one_cppchar_to_utf8() 283 uchar *outbuf; in one_utf8_to_utf32() local 295 outbuf = *outbufp; in one_utf8_to_utf32() 296 outbuf[bigend ? 3 : 0] = (s & 0x000000FF); in one_utf8_to_utf32() 297 outbuf[bigend ? 2 : 1] = (s & 0x0000FF00) >> 8; in one_utf8_to_utf32() 298 outbuf[bigend ? 1 : 2] = (s & 0x00FF0000) >> 16; in one_utf8_to_utf32() 299 outbuf[bigend ? 0 : 3] = (s & 0xFF000000) >> 24; in one_utf8_to_utf32() 344 uchar *outbuf = *outbufp; in one_utf8_to_utf16() local [all …]
|
| /NextBSD/crypto/heimdal/lib/gssapi/krb5/ |
| HD | init_sec_context.c | 394 krb5_data outbuf; in init_auth() local 399 krb5_data_zero(&outbuf); in init_auth() 441 "realm-config", &outbuf); in init_auth() 444 if (outbuf.length < 1 || ((((unsigned char *)outbuf.data)[0]) & 2)) in init_auth() 446 krb5_data_free(&outbuf); in init_auth() 526 krb5_data outbuf; in init_auth_restart() local 535 krb5_data_zero(&outbuf); in init_auth_restart() 664 &outbuf); in init_auth_restart() 674 output_token->value = outbuf.data; in init_auth_restart() 675 output_token->length = outbuf.length; in init_auth_restart() [all …]
|
| /NextBSD/contrib/xz/src/liblzma/common/ |
| HD | stream_encoder_mt.c | 64 lzma_outbuf *outbuf; member 236 thr->outbuf->size = thr->block_options.header_size; in worker_encode() 249 thr->progress_out = thr->outbuf->size; in worker_encode() 278 thr->in, &in_pos, in_limit, thr->outbuf->buf, in worker_encode() 279 &thr->outbuf->size, out_size, action); in worker_encode() 280 } while (ret == LZMA_OK && thr->outbuf->size < out_size); in worker_encode() 290 thr->outbuf->buf); in worker_encode() 315 thr->outbuf->size = 0; in worker_encode() 317 thr->in, in_size, thr->outbuf->buf, in worker_encode() 318 &thr->outbuf->size, out_size); in worker_encode() [all …]
|
| /NextBSD/contrib/bzip2/ |
| HD | unzcrash.c | 41 uchar outbuf[M_BLOCK_OUT]; variable 107 outbuf, &nOut, zbuf, nZ, 0, 0 ); in main() 118 if (inbuf[i] != outbuf[i]) { in main() 132 if (inbuf[i] != outbuf[i]) { in main()
|
| /NextBSD/sys/fs/msdosfs/ |
| HD | msdosfs_conv.c | 791 dos2unixchr(u_char *outbuf, const u_char **instr, size_t *ilen, int lower, struct msdosfsmount *pmp) in dos2unixchr() argument 796 outp = outbuf; in dos2unixchr() 823 outbuf[1] = '\0'; in dos2unixchr() 827 outp = outbuf; in dos2unixchr() 838 char *up, *outp, unicode[3], outbuf[3]; in unix2doschr() local 881 outp = outbuf; in unix2doschr() 912 win2unixchr(u_char *outbuf, u_int16_t wc, struct msdosfsmount *pmp) in win2unixchr() argument 917 outp = outbuf; in win2unixchr() 940 outp = outbuf; in win2unixchr() 950 u_char *outp, outbuf[3]; in unix2winchr() local [all …]
|
| /NextBSD/contrib/binutils/bfd/ |
| HD | simple.c | 154 bfd_byte *outbuf, in bfd_simple_get_relocated_section_contents() argument 169 if (outbuf == NULL) in bfd_simple_get_relocated_section_contents() 172 contents = outbuf; in bfd_simple_get_relocated_section_contents() 206 if (outbuf == NULL) in bfd_simple_get_relocated_section_contents() 211 outbuf = data; in bfd_simple_get_relocated_section_contents() 247 outbuf, in bfd_simple_get_relocated_section_contents()
|