/freebsd/crypto/openssl/test/ |
H A D | rand_test.c | 22 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/crypto/openssl/demos/cipher/ |
H A D | aeskeywrap.c | 62 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 D | ariacbc.c | 62 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 D | aesgcm.c | 77 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 D | aesccm.c | 79 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/tools/test/iconv/posix/ |
H A D | posix.c | 114 uint32_t outbuf[4]; in conv_ret() local 121 outptr = (char *)outbuf; in conv_ret() 136 uint32_t outbuf[2]; in conv_2big() local 143 outptr = (char *)outbuf; in conv_2big() 154 printf("outptr - outbuf = %d\n", (uint8_t *)outptr - (uint8_t *)outbuf); in conv_2big() 174 uint32_t outbuf[4]; in conv_einval() local 182 outptr = (char *)outbuf; in conv_einval() 193 printf("outptr - outbuf = %d\n", (uint8_t *)outptr - (uint8_t *)outbuf); in conv_einval() 213 uint32_t outbuf[4]; in conv_eilseq() local 221 outptr = (char *)outbuf; in conv_eilseq() [all …]
|
/freebsd/usr.bin/rctl/ |
H A D | rctl.c | 414 char *outbuf = NULL; in show_limits() local 419 outbuf = realloc(outbuf, outbuflen); in show_limits() 431 free(outbuf); in show_limits() 437 free(outbuf); in show_limits() 502 outbuf = realloc(outbuf, outbuflen); in show_usage() 515 free(outbuf); in show_usage() 520 copy = outbuf; in show_usage() 531 free(outbuf); in show_usage() 554 outbuf = realloc(outbuf, outbuflen); in show_rules() 565 free(outbuf); in show_rules() [all …]
|
/freebsd/contrib/ncurses/progs/ |
H A D | dump_entry.c | 73 static DYNBUF outbuf; variable 159 free_DYN(&outbuf); in _nc_leaks_dump_entry() 419 while (outbuf.used > 0 && outbuf.text[outbuf.used - 1] == ' ') in trim_trailing() 420 outbuf.text[--outbuf.used] = '\0'; in trim_trailing() 1277 outbuf.used -= 2; in fmt_entry() 1284 outbuf.used -= 4; in fmt_entry() 1288 outbuf.text[outbuf.used] = '\0'; in fmt_entry() 1298 tterm->term_names, len, outbuf.used, outbuf.text); in fmt_entry() 1494 if (outbuf.used) in dump_entry() 1507 if (outbuf.used) in dump_entry() [all …]
|
/freebsd/tools/test/iconv/gnu/ |
H A D | gnu.c | 247 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/crypto/heimdal/lib/krb5/ |
H A D | 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()
|
/freebsd/sys/fs/cd9660/ |
H A D | cd9660_rrip.c | 111 char *outbuf, *inbuf; in cd9660_rrip_slink() local 117 outbuf = ana->outbuf; in cd9660_rrip_slink() 130 *outbuf++ = '/'; in cd9660_rrip_slink() 157 outbuf -= len; in cd9660_rrip_slink() 195 outbuf += wlen; in cd9660_rrip_slink() 198 ana->outbuf = outbuf; in cd9660_rrip_slink() 266 ana->outbuf += wlen; in cd9660_rrip_altname() 282 switch (*ana->outbuf) { in cd9660_rrip_defname() 290 strcpy(ana->outbuf,".."); in cd9660_rrip_defname() 602 analyze.outbuf = outbuf; in cd9660_rrip_getname() [all …]
|
/freebsd/usr.bin/gzip/ |
H A D | 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() 84 bzs.next_out = outbuf; in unbzip2() 106 n = write(out, outbuf, BUFLEN - bzs.avail_out); in unbzip2()
|
/freebsd/contrib/wpa/src/eap_server/ |
H A D | eap_server_pwd.c | 39 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() 306 if (data->outbuf == NULL) in eap_pwd_build_commit_req() 399 if (data->outbuf == NULL) in eap_pwd_build_confirm_req() 406 if (data->outbuf == NULL) in eap_pwd_build_confirm_req() 524 wpabuf_free(data->outbuf); in eap_pwd_build_req() [all …]
|
/freebsd/share/examples/ipfilter/samples/ |
H A D | proxy.c | 232 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/sys/fs/smbfs/ |
H A D | smbfs_subr.c | 159 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/contrib/wpa/src/eap_peer/ |
H A D | eap_pwd.c | 41 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() 679 if (data->outbuf == NULL) in eap_pwd_perform_commit_exchange() 844 if (data->outbuf == NULL) in eap_pwd_perform_confirm_exchange() 851 if (data->outbuf == NULL) { in eap_pwd_perform_confirm_exchange() 931 data->outbuf = NULL; in eap_pwd_process() 1051 if (data->outbuf == NULL) { in eap_pwd_process() 1096 wpabuf_free(data->outbuf); in eap_pwd_process() [all …]
|
/freebsd/sys/sys/ |
H A D | 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);
|
/freebsd/sys/netgraph/ |
H A D | ng_deflate.c | 484 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/contrib/ofed/libibnetdisc/ |
H A D | ibnetdisc_cache.c | 217 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/crypto/openssl/crypto/ct/ |
H A D | ct_b64.c | 28 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/sys/libkern/ |
H A D | iconv_xlat.c | 80 size_t *inbytesleft, char **outbuf, size_t *outbytesleft, in iconv_xlat_conv() argument 88 if (inbuf == NULL || *inbuf == NULL || outbuf == NULL || *outbuf == NULL) in iconv_xlat_conv() 97 dst = *outbuf; in iconv_xlat_conv() 101 *outbuf += n; in iconv_xlat_conv()
|
/freebsd/usr.bin/calendar/ |
H A D | events.c | 81 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/contrib/sendmail/src/ |
H A D | sfsasl.c | 191 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/sys/crypto/aesni/ |
H A D | aesni.c | 620 uint8_t *authbuf, *buf, *outbuf; in aesni_cipher_crypt() local 656 if (outbuf == NULL) { in aesni_cipher_crypt() 659 outbuf = buf; in aesni_cipher_crypt() 661 outbuf = malloc(crp->crp_payload_length, in aesni_cipher_crypt() 663 if (outbuf == NULL) { in aesni_cipher_crypt() 672 outbuf = buf; in aesni_cipher_crypt() 692 if (buf != outbuf) in aesni_cipher_crypt() 707 outbuf, iv); in aesni_cipher_crypt() 711 outbuf, iv); in aesni_cipher_crypt() 756 crp->crp_payload_length, outbuf); in aesni_cipher_crypt() [all …]
|
/freebsd/contrib/bzip2/ |
H A D | 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()
|