/dports/sysutils/tarsnap/tarsnap-autoconf-1.0.39/lib/util/ |
H A D | hexlink.c | 20 char * hexbuf; in hexlink_write() local 27 hexify(buf, hexbuf, buflen); in hexlink_write() 30 if (symlink(hexbuf, path)) { in hexlink_write() 36 free(hexbuf); in hexlink_write() 42 free(hexbuf); in hexlink_write() 58 char * hexbuf; in hexlink_read() local 78 hexbuf[rc] = '\0'; in hexlink_read() 81 if (unhexify(hexbuf, buf, buflen)) { in hexlink_read() 83 path, hexbuf); in hexlink_read() 88 free(hexbuf); in hexlink_read() [all …]
|
/dports/databases/pointcloud/pointcloud-1.2.1/lib/cunit/ |
H A D | cu_pc_sort.c | 59 size_t hexsize = strlen(hexbuf); in test_sort_simple() 61 uint8_t *wkb = pc_bytes_from_hexbytes(hexbuf, hexsize); in test_sort_simple() 106 size_t hexsize = strlen(hexbuf); in test_sort_consistency() 107 uint8_t *wkb = pc_bytes_from_hexbytes(hexbuf, hexsize); in test_sort_consistency() 151 size_t hexsize = strlen(hexbuf); in test_sort_one_point() 152 uint8_t *wkb = pc_bytes_from_hexbytes(hexbuf, hexsize); in test_sort_one_point() 194 size_t hexsize = strlen(hexbuf); in test_sort_stable() 195 uint8_t *wkb = pc_bytes_from_hexbytes(hexbuf, hexsize); in test_sort_stable() 231 size_t hexsize = strlen(hexbuf); in test_sort_patch_is_sorted_no_compression() 232 uint8_t *wkb = pc_bytes_from_hexbytes(hexbuf, hexsize); in test_sort_patch_is_sorted_no_compression() [all …]
|
/dports/security/snort/snort-2.9.18/src/ |
H A D | hashstring.c | 102 char *hexbuf; in hashSearchFixed() local 105 hexbuf = fasthex((const u_char *)buf, blen); in hashSearchFixed() 106 DebugMessage(DEBUG_PATTERN_MATCH,"buf: %s\n", hexbuf); in hashSearchFixed() 107 free(hexbuf); in hashSearchFixed() 108 hexbuf = fasthex((const u_char *)ptrn, strlen(ptrn)); in hashSearchFixed() 109 DebugMessage(DEBUG_PATTERN_MATCH,"ptrn: %s\n", hexbuf); in hashSearchFixed() 110 free(hexbuf); in hashSearchFixed()
|
/dports/net/mediastreamer/mediastreamer-2.16.1/tools/ |
H A D | xxd.py | 25 hexbuf = [('0x%02x' % ord(i)) for i in buf] 27 if len(hexbuf) == 12: 29 print(" {0}{1}".format(", ".join(hexbuf[i] for i in range(0, len(hexbuf))), finalcomma)) 46 hexbuf = [('%02x' % ord(i)) for i in buf] 48 ' '.join([''.join(hexbuf[i : i + 2]) for i in range(0, len(hexbuf), 2)]),
|
/dports/astro/gpsd/gpsd-3.20/contrib/ |
H A D | motosend.c | 153 static char hexbuf[USHRT_MAX*2+10+2]; in gpsd_hexdump() local 161 hexbuf[j++] = '\n'; in gpsd_hexdump() 162 hexbuf[j++] = ibuf[i++]; in gpsd_hexdump() 163 hexbuf[j++] = ibuf[i++]; in gpsd_hexdump() 164 hexbuf[j++] = ibuf[i++]; in gpsd_hexdump() 165 hexbuf[j++] = ibuf[i++]; in gpsd_hexdump() 167 hexbuf[j++] = hexchar[ (ibuf[i]&0xf0)>>4 ]; in gpsd_hexdump() 168 hexbuf[j++] = hexchar[ ibuf[i]&0x0f ]; in gpsd_hexdump() 172 hexbuf[j] ='\0'; in gpsd_hexdump() 173 return hexbuf; in gpsd_hexdump()
|
/dports/mail/thunderbird/thunderbird-91.8.0/comm/third_party/rnp/src/lib/ |
H A D | json-utils.cpp | 78 char *hexbuf = hexlen < sizeof(smallbuf) ? smallbuf : (char *) malloc(hexlen); in obj_add_hex_json() local 79 if (!hexbuf) { in obj_add_hex_json() 83 bool res = rnp::hex_encode(val, val_len, hexbuf, hexlen, rnp::HEX_LOWERCASE) && in obj_add_hex_json() 84 obj_add_field_json(obj, name, json_object_new_string(hexbuf)); in obj_add_hex_json() 86 if (hexbuf != smallbuf) { in obj_add_hex_json() 87 free(hexbuf); in obj_add_hex_json()
|
/dports/security/gnupg/gnupg-2.3.3/sm/ |
H A D | certreqgen.c | 1048 char *hexbuf; in create_request() local 1057 if (!hexbuf) in create_request() 1082 xfree (hexbuf); in create_request() 1199 char *hexbuf; in create_request() local 1204 if (!hexbuf) in create_request() 1224 xfree (hexbuf); in create_request() 1287 char *hexbuf; in create_request() local 1292 if (!hexbuf) in create_request() 1310 xfree (hexbuf); in create_request() 1369 char *hexbuf; in create_request() local [all …]
|
/dports/mail/dovecot/dovecot-2.3.17/src/lib-mail/ |
H A D | quoted-printable.c | 11 char hexbuf[3]; in quoted_printable_q_decode() local 15 hexbuf[2] = '\0'; in quoted_printable_q_decode() 35 hexbuf[0] = src[src_pos+1]; in quoted_printable_q_decode() 36 hexbuf[1] = src[src_pos+2]; in quoted_printable_q_decode() 38 if (hex_to_binary(hexbuf, dest) == 0) { in quoted_printable_q_decode()
|
/dports/games/xonotic/Xonotic/source/darkplaces/ |
H A D | crypto-keygen-standalone.c | 717 char hexbuf[131073]; in main() local 725 printf("%s\n", hexbuf); in main() 726 fgets(hexbuf, sizeof(hexbuf), stdin); in main() 729 buf2[i] = ((strchr(hex, hexbuf[2*i]) - hex) << 4) | (strchr(hex, hexbuf[2*i+1]) - hex); in main() 734 printf("%s\n", hexbuf); in main() 740 char hexbuf[131073]; in main() local 745 fgets(hexbuf, sizeof(hexbuf), stdin); in main() 748 buf2[i] = ((strchr(hex, hexbuf[2*i]) - hex) << 4) | (strchr(hex, hexbuf[2*i+1]) - hex); in main() 753 printf("%s\n", hexbuf); in main() 754 fgets(hexbuf, sizeof(hexbuf), stdin); in main() [all …]
|
/dports/games/darkplaces/darkplaces/ |
H A D | crypto-keygen-standalone.c | 717 char hexbuf[131073]; in main() local 725 printf("%s\n", hexbuf); in main() 726 fgets(hexbuf, sizeof(hexbuf), stdin); in main() 729 buf2[i] = ((strchr(hex, hexbuf[2*i]) - hex) << 4) | (strchr(hex, hexbuf[2*i+1]) - hex); in main() 734 printf("%s\n", hexbuf); in main() 740 char hexbuf[131073]; in main() local 745 fgets(hexbuf, sizeof(hexbuf), stdin); in main() 748 buf2[i] = ((strchr(hex, hexbuf[2*i]) - hex) << 4) | (strchr(hex, hexbuf[2*i+1]) - hex); in main() 753 printf("%s\n", hexbuf); in main() 754 fgets(hexbuf, sizeof(hexbuf), stdin); in main() [all …]
|
/dports/converters/libiconv/libiconv-1.16/tests/ |
H A D | table-from.c | 34 static const char* hexbuf (unsigned char buf[], unsigned int buflen) in hexbuf() function 65 fprintf(stderr,"%s: iconv error: ",hexbuf(buf,buflen)); in try() 74 …fprintf(stderr,"%s: inbytes = %ld, outbytes = %ld\n",hexbuf(buf,buflen),(long)(buflen-inbytesleft)… in try() 84 static char hexbuf[21]; in ucs4_decode() local 85 char* p = hexbuf; in ucs4_decode() 87 if (p > hexbuf) in ucs4_decode() 95 return hexbuf; in ucs4_decode() 166 fprintf(stderr,"%s: incomplete byte sequence\n",hexbuf(buf,4)); in main()
|
/dports/biology/py-python-libsbml/python-libsbml-5.19.0/libsbml_dependencies/libiconv/source/tests/ |
H A D | table-from.c | 35 static const char* hexbuf (unsigned char buf[], unsigned int buflen) in hexbuf() function 66 fprintf(stderr,"%s: iconv error: ",hexbuf(buf,buflen)); in try() 75 …fprintf(stderr,"%s: inbytes = %ld, outbytes = %ld\n",hexbuf(buf,buflen),(long)(buflen-inbytesleft)… in try() 85 static char hexbuf[21]; in ucs4_decode() local 86 char* p = hexbuf; in ucs4_decode() 88 if (p > hexbuf) in ucs4_decode() 96 return hexbuf; in ucs4_decode() 167 fprintf(stderr,"%s: incomplete byte sequence\n",hexbuf(buf,4)); in main()
|
/dports/dns/p5-DNS-Ldns/ldns-1.8.1/drill/ |
H A D | work.c | 79 uint8_t *hexbuf = xmalloc(LDNS_MAX_PACKETLEN); in packetbuffromfile() local 90 xfree(hexbuf); in packetbuffromfile() 108 hexbuf[hexbufpos] = (uint8_t) c; in packetbuffromfile() 122 hexbuf[hexbufpos] = (uint8_t) c; in packetbuffromfile() 148 hexbuf[hexbufpos] = (uint8_t) '0'; in packetbuffromfile() 153 wirelen = hexstr2bin((char *) hexbuf, in packetbuffromfile() 159 memcpy(wire, hexbuf, (size_t) hexbufpos); in packetbuffromfile() 165 xfree(hexbuf); in packetbuffromfile()
|
/dports/dns/py-ldns/ldns-1.8.1/drill/ |
H A D | work.c | 79 uint8_t *hexbuf = xmalloc(LDNS_MAX_PACKETLEN); in packetbuffromfile() local 90 xfree(hexbuf); in packetbuffromfile() 108 hexbuf[hexbufpos] = (uint8_t) c; in packetbuffromfile() 122 hexbuf[hexbufpos] = (uint8_t) c; in packetbuffromfile() 148 hexbuf[hexbufpos] = (uint8_t) '0'; in packetbuffromfile() 153 wirelen = hexstr2bin((char *) hexbuf, in packetbuffromfile() 159 memcpy(wire, hexbuf, (size_t) hexbufpos); in packetbuffromfile() 165 xfree(hexbuf); in packetbuffromfile()
|
/dports/dns/ldns/ldns-1.8.1/drill/ |
H A D | work.c | 79 uint8_t *hexbuf = xmalloc(LDNS_MAX_PACKETLEN); in packetbuffromfile() local 90 xfree(hexbuf); in packetbuffromfile() 108 hexbuf[hexbufpos] = (uint8_t) c; in packetbuffromfile() 122 hexbuf[hexbufpos] = (uint8_t) c; in packetbuffromfile() 148 hexbuf[hexbufpos] = (uint8_t) '0'; in packetbuffromfile() 153 wirelen = hexstr2bin((char *) hexbuf, in packetbuffromfile() 159 memcpy(wire, hexbuf, (size_t) hexbufpos); in packetbuffromfile() 165 xfree(hexbuf); in packetbuffromfile()
|
/dports/misc/rump/buildrump.sh-b914579/src/sys/netatalk/ |
H A D | at_rmx.c | 54 static char hexbuf[256]; variable 59 char *bp = &hexbuf[0]; in prsockaddr() 68 bp += snprintf(bp, sizeof(hexbuf), "(%d)", len); in prsockaddr() 69 for (cp++; cp < cplim && bp < hexbuf + 252; cp++) { in prsockaddr() 74 bp += snprintf(bp, sizeof(hexbuf), "null"); in prsockaddr() 78 return &hexbuf[0]; in prsockaddr()
|
/dports/net/tcpflow/tcpflow-1.5.0/src/dfxml/src/ |
H A D | hash_t.h | 97 static hash__ fromhex(const std::string &hexbuf) { in fromhex() argument 99 assert(hexbuf.size()==SIZE*2); in fromhex() 100 for(unsigned int i=0;i+1<hexbuf.size() && (i/2)<size();i+=2){ in fromhex() 101 res.digest[i/2] = hex2int(hexbuf[i],hexbuf[i+1]); in fromhex() 105 const char *hexdigest(char *hexbuf,size_t bufsize) const { in hexdigest() argument 106 const char *hexbuf_start = hexbuf; in hexdigest() 108 snprintf(hexbuf,bufsize,"%02x",this->digest[i]); in hexdigest() 109 hexbuf += 2; in hexdigest()
|
/dports/comms/flrig/flrig-1.3.54/src/support/ |
H A D | util.cxx | 223 static std::vector<char>* hexbuf; variable 228 if (unlikely(!hexbuf)) { 229 hexbuf = new std::vector<char>; 230 hexbuf->reserve(192); 232 if (unlikely(hexbuf->size() < len * 3)) 233 hexbuf->resize(len * 3); 235 char* p = &(*hexbuf)[0]; 244 return &(*hexbuf)[0];
|
/dports/security/tthsum/tthsum/ |
H A D | thex_test.c | 39 char hexbuf[49]; in thex_cmp() local 40 memset(hexbuf, '.', 48); in thex_cmp() 41 hexbuf[48] = '\0'; in thex_cmp() 48 hexbuf[2*i] = tsthigh >= 10 ? 'a'+(tsthigh-10) : '0'+tsthigh; in thex_cmp() 50 hexbuf[2*i+1] = tstlow >= 10 ? 'a'+(tstlow-10) : '0'+tstlow; in thex_cmp() 52 FAIL3("memcmp: mismatch on %s != %s: %s", base32, tstbase32, hexbuf); in thex_cmp()
|
/dports/security/pktsuckers/pktsuckers1_2/ |
H A D | dump_pkt.c | 24 char hexbuf[40], ascbuf[40]; in dump_packet() local 30 strcpy(hexbuf, " "); in dump_packet() 31 for (hc = hexbuf, ac = ascbuf, cnt = 0; cnt < 16 && i < len; cnt++, i++) { in dump_packet() 41 syslog(LOG_NOTICE, "%4d- %s %s", first, hexbuf, ascbuf); in dump_packet()
|
/dports/devel/libght/libght-0.1.0/src/ |
H A D | ght_util.c | 44 bytes_from_hexbytes(const char *hexbuf, size_t hexsize, uint8_t **bytes) in bytes_from_hexbytes() argument 66 h1 = hex2char[(int)hexbuf[2*i]]; in bytes_from_hexbytes() 67 h2 = hex2char[(int)hexbuf[2*i+1]]; in bytes_from_hexbytes() 70 ght_error("Invalid hex character (%c) encountered", hexbuf[2*i]); in bytes_from_hexbytes() 75 ght_error("Invalid hex character (%c) encountered", hexbuf[2*i+1]); in bytes_from_hexbytes()
|
/dports/emulators/qemu60/qemu-6.0.0/roms/edk2/CryptoPkg/Library/OpensslLib/openssl/crypto/ |
H A D | o_str.c | 149 unsigned char *hexbuf, *q; in OPENSSL_hexstr2buf() local 156 if ((hexbuf = OPENSSL_malloc(s >> 1)) == NULL) { in OPENSSL_hexstr2buf() 160 for (p = (const unsigned char *)str, q = hexbuf; *p; ) { in OPENSSL_hexstr2buf() 168 OPENSSL_free(hexbuf); in OPENSSL_hexstr2buf() 174 OPENSSL_free(hexbuf); in OPENSSL_hexstr2buf() 182 *len = q - hexbuf; in OPENSSL_hexstr2buf() 183 return hexbuf; in OPENSSL_hexstr2buf()
|
/dports/devel/cargo-c/cargo-c-0.9.6+cargo-0.58/cargo-crates/openssl-src-111.16.0+1.1.1l/openssl/crypto/ |
H A D | o_str.c | 149 unsigned char *hexbuf, *q; in OPENSSL_hexstr2buf() local 156 if ((hexbuf = OPENSSL_malloc(s >> 1)) == NULL) { in OPENSSL_hexstr2buf() 160 for (p = (const unsigned char *)str, q = hexbuf; *p; ) { in OPENSSL_hexstr2buf() 168 OPENSSL_free(hexbuf); in OPENSSL_hexstr2buf() 174 OPENSSL_free(hexbuf); in OPENSSL_hexstr2buf() 182 *len = q - hexbuf; in OPENSSL_hexstr2buf() 183 return hexbuf; in OPENSSL_hexstr2buf()
|
/dports/emulators/qemu42/qemu-4.2.1/roms/edk2/CryptoPkg/Library/OpensslLib/openssl/crypto/ |
H A D | o_str.c | 149 unsigned char *hexbuf, *q; in OPENSSL_hexstr2buf() local 156 if ((hexbuf = OPENSSL_malloc(s >> 1)) == NULL) { in OPENSSL_hexstr2buf() 160 for (p = (const unsigned char *)str, q = hexbuf; *p; ) { in OPENSSL_hexstr2buf() 168 OPENSSL_free(hexbuf); in OPENSSL_hexstr2buf() 174 OPENSSL_free(hexbuf); in OPENSSL_hexstr2buf() 182 *len = q - hexbuf; in OPENSSL_hexstr2buf() 183 return hexbuf; in OPENSSL_hexstr2buf()
|
/dports/sysutils/vector/vector-0.10.0/cargo-crates/openssl-src-111.9.0+1.1.1g/openssl/crypto/ |
H A D | o_str.c | 149 unsigned char *hexbuf, *q; in OPENSSL_hexstr2buf() local 156 if ((hexbuf = OPENSSL_malloc(s >> 1)) == NULL) { in OPENSSL_hexstr2buf() 160 for (p = (const unsigned char *)str, q = hexbuf; *p; ) { in OPENSSL_hexstr2buf() 168 OPENSSL_free(hexbuf); in OPENSSL_hexstr2buf() 174 OPENSSL_free(hexbuf); in OPENSSL_hexstr2buf() 182 *len = q - hexbuf; in OPENSSL_hexstr2buf() 183 return hexbuf; in OPENSSL_hexstr2buf()
|