Home
last modified time | relevance | path

Searched refs:outbuf (Results 1 – 25 of 122) sorted by relevance

12345

/freebsd-14.2/crypto/openssl/test/
H A Drand_test.c22 unsigned char outbuf[3]; in test_rand() local
30 || !TEST_int_gt(RAND_priv_bytes(outbuf, sizeof(outbuf)), 0) in test_rand()
31 || !TEST_mem_eq(outbuf, sizeof(outbuf), entropy1, sizeof(outbuf)) in test_rand()
32 || !TEST_int_le(RAND_priv_bytes(outbuf, sizeof(outbuf) + 1), 0) in test_rand()
33 || !TEST_int_gt(RAND_priv_bytes(outbuf, sizeof(outbuf)), 0) in test_rand()
34 || !TEST_mem_eq(outbuf, sizeof(outbuf), in test_rand()
35 entropy1 + sizeof(outbuf), sizeof(outbuf))) in test_rand()
41 || !TEST_int_gt(RAND_priv_bytes(outbuf, sizeof(outbuf)), 0) in test_rand()
42 || !TEST_mem_eq(outbuf, sizeof(outbuf), entropy2, sizeof(outbuf))) in test_rand()
/freebsd-14.2/crypto/openssl/demos/cipher/
H A Dariacbc.c62 unsigned char outbuf[1024]; in aria_cbc_encrypt() local
85 if (!EVP_EncryptUpdate(ctx, outbuf, &outlen, cbc_pt, sizeof(cbc_pt))) in aria_cbc_encrypt()
89 if (!EVP_EncryptFinal_ex(ctx, outbuf + outlen, &tmplen)) in aria_cbc_encrypt()
95 BIO_dump_fp(stdout, outbuf, outlen); in aria_cbc_encrypt()
97 if (sizeof(cbc_ct) == outlen && !CRYPTO_memcmp(outbuf, cbc_ct, outlen)) in aria_cbc_encrypt()
120 unsigned char outbuf[1024]; in aria_cbc_decrypt() local
141 if (!EVP_DecryptUpdate(ctx, outbuf, &outlen, cbc_ct, sizeof(cbc_ct))) in aria_cbc_decrypt()
145 if (!EVP_DecryptFinal_ex(ctx, outbuf + outlen, &tmplen)) in aria_cbc_decrypt()
151 BIO_dump_fp(stdout, outbuf, outlen); in aria_cbc_decrypt()
153 if (sizeof(cbc_pt) == outlen && !CRYPTO_memcmp(outbuf, cbc_pt, outlen)) in aria_cbc_decrypt()
H A Daeskeywrap.c62 unsigned char outbuf[1024]; in aes_wrap_encrypt() local
86 if (!EVP_EncryptUpdate(ctx, outbuf, &outlen, wrap_pt, sizeof(wrap_pt))) in aes_wrap_encrypt()
90 if (!EVP_EncryptFinal_ex(ctx, outbuf + outlen, &tmplen)) in aes_wrap_encrypt()
96 BIO_dump_fp(stdout, outbuf, outlen); in aes_wrap_encrypt()
98 if (sizeof(wrap_ct) == outlen && !CRYPTO_memcmp(outbuf, wrap_ct, outlen)) in aes_wrap_encrypt()
120 unsigned char outbuf[1024]; in aes_wrap_decrypt() local
143 if (!EVP_DecryptUpdate(ctx, outbuf, &outlen, wrap_ct, sizeof(wrap_ct))) in aes_wrap_decrypt()
147 if (!EVP_DecryptFinal_ex(ctx, outbuf + outlen, &tmplen)) in aes_wrap_decrypt()
153 BIO_dump_fp(stdout, outbuf, outlen); in aes_wrap_decrypt()
155 if (sizeof(wrap_pt) == outlen && !CRYPTO_memcmp(outbuf, wrap_pt, outlen)) in aes_wrap_decrypt()
H A Daesgcm.c77 unsigned char outbuf[1024]; in aes_gcm_encrypt() local
114 if (!EVP_EncryptUpdate(ctx, outbuf, &outlen, gcm_pt, sizeof(gcm_pt))) in aes_gcm_encrypt()
119 BIO_dump_fp(stdout, outbuf, outlen); in aes_gcm_encrypt()
122 if (!EVP_EncryptFinal_ex(ctx, outbuf, &tmplen)) in aes_gcm_encrypt()
154 unsigned char outbuf[1024]; in aes_gcm_decrypt() local
186 if (!EVP_DecryptUpdate(ctx, outbuf, &outlen, gcm_ct, sizeof(gcm_ct))) in aes_gcm_decrypt()
191 BIO_dump_fp(stdout, outbuf, outlen); in aes_gcm_decrypt()
201 rv = EVP_DecryptFinal_ex(ctx, outbuf, &outlen); in aes_gcm_decrypt()
H A Daesccm.c79 unsigned char outbuf[1024]; in aes_ccm_encrypt() local
124 if (!EVP_EncryptUpdate(ctx, outbuf, &outlen, ccm_pt, sizeof(ccm_pt))) in aes_ccm_encrypt()
129 BIO_dump_fp(stdout, outbuf, outlen); in aes_ccm_encrypt()
164 unsigned char outbuf[1024]; in aes_ccm_decrypt() local
208 rv = EVP_DecryptUpdate(ctx, outbuf, &outlen, ccm_ct, sizeof(ccm_ct)); in aes_ccm_decrypt()
213 BIO_dump_fp(stdout, outbuf, outlen); in aes_ccm_decrypt()
/freebsd-14.2/tools/test/iconv/posix/
H A Dposix.c115 uint32_t outbuf[4]; in conv_ret() local
122 outptr = (char *)outbuf; in conv_ret()
137 uint32_t outbuf[2]; in conv_2big() local
144 outptr = (char *)outbuf; in conv_2big()
155 printf("outptr - outbuf = %d\n", (uint8_t *)outptr - (uint8_t *)outbuf); in conv_2big()
175 uint32_t outbuf[4]; in conv_einval() local
183 outptr = (char *)outbuf; in conv_einval()
194 printf("outptr - outbuf = %d\n", (uint8_t *)outptr - (uint8_t *)outbuf); in conv_einval()
214 uint32_t outbuf[4]; in conv_eilseq() local
222 outptr = (char *)outbuf; in conv_eilseq()
[all …]
/freebsd-14.2/usr.bin/rctl/
H A Drctl.c415 char *outbuf = NULL; in show_limits() local
420 outbuf = realloc(outbuf, outbuflen); in show_limits()
432 free(outbuf); in show_limits()
438 free(outbuf); in show_limits()
503 outbuf = realloc(outbuf, outbuflen); in show_usage()
516 free(outbuf); in show_usage()
521 copy = outbuf; in show_usage()
532 free(outbuf); in show_usage()
555 outbuf = realloc(outbuf, outbuflen); in show_rules()
566 free(outbuf); in show_rules()
[all …]
/freebsd-14.2/contrib/ncurses/progs/
H A Ddump_entry.c73 static DYNBUF outbuf; variable
157 free_DYN(&outbuf); in _nc_leaks_dump_entry()
417 while (outbuf.used > 0 && outbuf.text[outbuf.used - 1] == ' ') in trim_trailing()
418 outbuf.text[--outbuf.used] = '\0'; in trim_trailing()
1280 outbuf.used -= 2; in fmt_entry()
1287 outbuf.used -= 4; in fmt_entry()
1291 outbuf.text[outbuf.used] = '\0'; in fmt_entry()
1301 tterm->term_names, len, outbuf.used, outbuf.text); in fmt_entry()
1502 if (outbuf.used) in dump_entry()
1516 if (outbuf.used) in dump_entry()
[all …]
/freebsd-14.2/tools/test/iconv/gnu/
H A Dgnu.c247 char *outbuf; in ctl_uc_hook() local
253 outbuf = malloc(40); in ctl_uc_hook()
254 outptr = &outbuf; in ctl_uc_hook()
277 char *outbuf; in ctl_wc_hook() local
283 outbuf = malloc(40); in ctl_wc_hook()
284 outptr = &outbuf; in ctl_wc_hook()
368 outptr = (char *)outbuf; in ctl_mb_to_uc_fb()
376 printf("mb_uc fallback: %c\n", outbuf[0]); in ctl_mb_to_uc_fb()
379 if (mb_uc_fb && (outbuf[0] == 0x3F)) in ctl_mb_to_uc_fb()
392 char outbuf[6]; in gnu_openinto() local
[all …]
/freebsd-14.2/crypto/heimdal/lib/krb5/
H A Drd_safe.c87 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()
/freebsd-14.2/sys/fs/cd9660/
H A Dcd9660_rrip.c114 char *outbuf, *inbuf; in cd9660_rrip_slink() local
120 outbuf = ana->outbuf; in cd9660_rrip_slink()
133 *outbuf++ = '/'; in cd9660_rrip_slink()
160 outbuf -= len; in cd9660_rrip_slink()
198 outbuf += wlen; in cd9660_rrip_slink()
201 ana->outbuf = outbuf; in cd9660_rrip_slink()
269 ana->outbuf += wlen; in cd9660_rrip_altname()
285 switch (*ana->outbuf) { in cd9660_rrip_defname()
293 strcpy(ana->outbuf,".."); in cd9660_rrip_defname()
605 analyze.outbuf = outbuf; in cd9660_rrip_getname()
[all …]
/freebsd-14.2/usr.bin/gzip/
H A Dunbzip2.c42 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()
84 bzs.next_out = outbuf; in unbzip2()
106 n = write(out, outbuf, BUFLEN - bzs.avail_out); in unbzip2()
/freebsd-14.2/contrib/wpa/src/eap_server/
H A Deap_server_pwd.c39 struct wpabuf *outbuf; member
163 wpabuf_free(data->outbuf); in eap_pwd_reset()
180 if (data->outbuf == NULL) { in eap_pwd_build_id_req()
186 wpabuf_free(data->outbuf); in eap_pwd_build_id_req()
187 data->outbuf = NULL; in eap_pwd_build_id_req()
284 if (data->outbuf == NULL) in eap_pwd_build_commit_req()
309 if (data->outbuf == NULL) in eap_pwd_build_commit_req()
410 if (data->outbuf == NULL) in eap_pwd_build_confirm_req()
417 if (data->outbuf == NULL) in eap_pwd_build_confirm_req()
535 wpabuf_free(data->outbuf); in eap_pwd_build_req()
[all …]
/freebsd-14.2/share/examples/ipfilter/samples/
H A Dproxy.c232 char netbuf[1024], outbuf[1024]; local
248 orptr = outbuf;
249 owptr = outbuf;
250 osz = sizeof(outbuf);
258 if (orptr - outbuf < sizeof(outbuf))
263 if (osz < sizeof(outbuf))
278 i = read(net, orptr, sizeof(outbuf) - (orptr - outbuf));
291 if (osz == sizeof(outbuf) || owptr == orptr) {
292 orptr = outbuf;
293 owptr = outbuf;
/freebsd-14.2/sys/fs/smbfs/
H A Dsmbfs_subr.c159 char outbuf[SMB_MAXFNAMELEN]; in smbfs_fname_tolocal() local
160 char *obuf = outbuf; in smbfs_fname_tolocal()
163 olen = sizeof(outbuf); in smbfs_fname_tolocal()
164 bzero(outbuf, sizeof(outbuf)); in smbfs_fname_tolocal()
186 *nmlen = sizeof(outbuf) - olen; in smbfs_fname_tolocal()
187 memcpy(name, outbuf, *nmlen); in smbfs_fname_tolocal()
/freebsd-14.2/contrib/wpa/src/eap_peer/
H A Deap_pwd.c41 struct wpabuf *outbuf; member
197 wpabuf_free(data->outbuf); in eap_pwd_deinit()
337 if (data->outbuf == NULL) { in eap_pwd_perform_id_exchange()
658 if (data->outbuf == NULL) in eap_pwd_perform_commit_exchange()
682 if (data->outbuf == NULL) in eap_pwd_perform_commit_exchange()
863 if (data->outbuf == NULL) in eap_pwd_perform_confirm_exchange()
870 if (data->outbuf == NULL) { in eap_pwd_perform_confirm_exchange()
950 data->outbuf = NULL; in eap_pwd_process()
1070 if (data->outbuf == NULL) { in eap_pwd_process()
1115 wpabuf_free(data->outbuf); in eap_pwd_process()
[all …]
/freebsd-14.2/sys/sys/
H A Diconv.h158 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);
/freebsd-14.2/sys/netgraph/
H A Dng_deflate.c484 MPASS(priv->outbuf[outlen + 0] == 0x00); in ng_deflate_compress()
485 MPASS(priv->outbuf[outlen + 1] == 0x00); in ng_deflate_compress()
486 MPASS(priv->outbuf[outlen + 2] == 0xff); in ng_deflate_compress()
487 MPASS(priv->outbuf[outlen + 3] == 0xff); in ng_deflate_compress()
497 be16enc(priv->outbuf, PROT_COMPD); in ng_deflate_compress()
498 be16enc(priv->outbuf + 2, priv->seqnum); in ng_deflate_compress()
591 priv->cx.next_out = priv->outbuf + 1; in ng_deflate_decompress()
626 if ((priv->outbuf[1] & 0x01) != 0) { in ng_deflate_decompress()
627 priv->outbuf[0] = 0; in ng_deflate_decompress()
662 priv->cx.next_out = priv->outbuf; in ng_deflate_decompress()
[all …]
/freebsd-14.2/contrib/ofed/libibnetdisc/
H A Dibnetdisc_cache.c217 memcpy(outbuf, inbuf, len); in _unmarshall_buf()
723 outbuf[0] = num; in _marshall8()
730 outbuf[0] = num & 0x00FF; in _marshall16()
731 outbuf[1] = (num & 0xFF00) >> 8; in _marshall16()
738 outbuf[0] = num & 0x000000FF; in _marshall32()
748 outbuf[0] = (uint8_t) num; in _marshall64()
749 outbuf[1] = (uint8_t) (num >> 8); in _marshall64()
750 outbuf[2] = (uint8_t) (num >> 16); in _marshall64()
751 outbuf[3] = (uint8_t) (num >> 24); in _marshall64()
752 outbuf[4] = (uint8_t) (num >> 32); in _marshall64()
[all …]
/freebsd-14.2/crypto/openssl/crypto/ct/
H A Dct_b64.c28 unsigned char *outbuf = NULL; in ct_base64_decode() local
36 outbuf = OPENSSL_malloc(outlen); in ct_base64_decode()
37 if (outbuf == NULL) { in ct_base64_decode()
42 outlen = EVP_DecodeBlock(outbuf, (unsigned char *)in, inlen); in ct_base64_decode()
56 *out = outbuf; in ct_base64_decode()
59 OPENSSL_free(outbuf); in ct_base64_decode()
/freebsd-14.2/sys/libkern/
H A Diconv_xlat.c81 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()
/freebsd-14.2/usr.bin/calendar/
H A Devents.c81 char *outbuf, *tmp; in convert() local
110 outbuf = output + converted; in convert()
113 converted = iconv(conv, (char **) &inbuf, &inleft, &outbuf, &outleft); in convert()
124 converted = outbuf - output; in convert()
133 outbuf = output + converted; in convert()
137 iconv(conv, NULL, NULL, &outbuf, &outleft); in convert()
140 *outbuf = '\0'; in convert()
/freebsd-14.2/contrib/sendmail/src/
H A Dsfsasl.c191 static const char *outbuf = NULL; local
193 static char *outbuf = NULL; local
227 outbuf = NULL;
234 if (outbuf == NULL)
253 SASL_DEALLOC(outbuf);
255 outbuf = NULL;
285 const char *outbuf; local
287 char *outbuf; local
323 if (outbuf != NULL)
330 &outbuf[total], outlen);
[all …]
/freebsd-14.2/sys/crypto/aesni/
H A Daesni.c621 uint8_t *authbuf, *buf, *outbuf; in aesni_cipher_crypt() local
657 if (outbuf == NULL) { in aesni_cipher_crypt()
660 outbuf = buf; in aesni_cipher_crypt()
662 outbuf = malloc(crp->crp_payload_length, in aesni_cipher_crypt()
664 if (outbuf == NULL) { in aesni_cipher_crypt()
673 outbuf = buf; in aesni_cipher_crypt()
693 if (buf != outbuf) in aesni_cipher_crypt()
708 outbuf, iv); in aesni_cipher_crypt()
712 outbuf, iv); in aesni_cipher_crypt()
757 crp->crp_payload_length, outbuf); in aesni_cipher_crypt()
[all …]
/freebsd-14.2/contrib/bzip2/
H A Dunzcrash.c41 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()

12345