| /freebsd-12-stable/contrib/libarchive/libarchive/test/ |
| D | test_ustar_filenames.c | 33 test_filename(const char *prefix, int dlen, int flen) in test_filename() argument 54 for (; i < dlen + flen + separator; i++) in test_filename() 73 failure("dlen=%d, flen=%d", dlen, flen); in test_filename() 74 if (flen > 100) { in test_filename() 87 failure("dlen=%d, flen=%d", dlen, flen); in test_filename() 88 if (flen >= 100) { in test_filename() 104 failure("dlen=%d, flen=%d", dlen, flen); in test_filename() 105 if (flen >= 100) { in test_filename() 124 if (flen <= 100) { in test_filename() 127 failure("dlen=%d, flen=%d", dlen, flen); in test_filename() [all …]
|
| D | test_tar_filenames.c | 35 test_filename(const char *prefix, int dlen, int flen) in test_filename() argument 56 for (i = 0; i < flen; i++) in test_filename() 75 failure("Pathname %d/%d", dlen, flen); in test_filename() 85 failure("Dirname %d/%d", dlen, flen); in test_filename() 98 failure("Dirname %d/%d", dlen, flen); in test_filename() 143 int dlen, flen; in DEFINE_TEST() local 147 for (flen = 45; flen < 55; flen++) { in DEFINE_TEST() 148 test_filename(NULL, dlen, flen); in DEFINE_TEST() 149 test_filename("/", dlen, flen); in DEFINE_TEST() 154 for (flen = 98; flen < 102; flen++) { in DEFINE_TEST() [all …]
|
| /freebsd-12-stable/crypto/openssl/crypto/rsa/ |
| D | rsa_pk1.c | 19 const unsigned char *from, int flen) in RSA_padding_add_PKCS1_type_1() argument 24 if (flen > (tlen - RSA_PKCS1_PADDING_SIZE)) { in RSA_padding_add_PKCS1_type_1() 36 j = tlen - 3 - flen; in RSA_padding_add_PKCS1_type_1() 40 memcpy(p, from, (unsigned int)flen); in RSA_padding_add_PKCS1_type_1() 45 const unsigned char *from, int flen, in RSA_padding_check_PKCS1_type_1() argument 64 if (num == flen) { in RSA_padding_check_PKCS1_type_1() 70 flen--; in RSA_padding_check_PKCS1_type_1() 73 if ((num != (flen + 1)) || (*(p++) != 0x01)) { in RSA_padding_check_PKCS1_type_1() 80 j = flen - 1; /* one for type. */ in RSA_padding_check_PKCS1_type_1() 118 const unsigned char *from, int flen) in RSA_padding_add_PKCS1_type_2() argument [all …]
|
| D | rsa_none.c | 15 const unsigned char *from, int flen) in RSA_padding_add_none() argument 17 if (flen > tlen) { in RSA_padding_add_none() 22 if (flen < tlen) { in RSA_padding_add_none() 27 memcpy(to, from, (unsigned int)flen); in RSA_padding_add_none() 32 const unsigned char *from, int flen, int num) in RSA_padding_check_none() argument 35 if (flen > tlen) { in RSA_padding_check_none() 40 memset(to, 0, tlen - flen); in RSA_padding_check_none() 41 memcpy(to + tlen - flen, from, flen); in RSA_padding_check_none()
|
| D | rsa_x931.c | 17 const unsigned char *from, int flen) in RSA_padding_add_X931() argument 27 j = tlen - flen - 2; in RSA_padding_add_X931() 47 memcpy(p, from, (unsigned int)flen); in RSA_padding_add_X931() 48 p += flen; in RSA_padding_add_X931() 54 const unsigned char *from, int flen, int num) in RSA_padding_check_X931() argument 60 if ((num != flen) || ((*p != 0x6A) && (*p != 0x6B))) { in RSA_padding_check_X931() 66 j = flen - 3; in RSA_padding_check_X931() 85 j = flen - 2; in RSA_padding_check_X931()
|
| D | rsa_oaep.c | 34 const unsigned char *from, int flen, in RSA_padding_add_PKCS1_OAEP() argument 37 return RSA_padding_add_PKCS1_OAEP_mgf1(to, tlen, from, flen, in RSA_padding_add_PKCS1_OAEP() 42 const unsigned char *from, int flen, in RSA_padding_add_PKCS1_OAEP_mgf1() argument 60 if (flen > emlen - 2 * mdlen - 1) { in RSA_padding_add_PKCS1_OAEP_mgf1() 78 memset(db + mdlen, 0, emlen - flen - 2 * mdlen - 1); in RSA_padding_add_PKCS1_OAEP_mgf1() 79 db[emlen - flen - mdlen - 1] = 0x01; in RSA_padding_add_PKCS1_OAEP_mgf1() 80 memcpy(db + emlen - flen - mdlen, from, (unsigned int)flen); in RSA_padding_add_PKCS1_OAEP_mgf1() 109 const unsigned char *from, int flen, int num, in RSA_padding_check_PKCS1_OAEP() argument 112 return RSA_padding_check_PKCS1_OAEP_mgf1(to, tlen, from, flen, num, in RSA_padding_check_PKCS1_OAEP() 117 const unsigned char *from, int flen, in RSA_padding_check_PKCS1_OAEP_mgf1() argument [all …]
|
| D | rsa_ssl.c | 18 const unsigned char *from, int flen) in RSA_padding_add_SSLv23() argument 23 if (flen > (tlen - RSA_PKCS1_PADDING_SIZE)) { in RSA_padding_add_SSLv23() 35 j = tlen - 3 - 8 - flen; in RSA_padding_add_SSLv23() 52 memcpy(p, from, (unsigned int)flen); in RSA_padding_add_SSLv23() 62 const unsigned char *from, int flen, int num) in RSA_padding_check_SSLv23() argument 70 if (tlen <= 0 || flen <= 0) in RSA_padding_check_SSLv23() 73 if (flen > num || num < RSA_PKCS1_PADDING_SIZE) { in RSA_padding_check_SSLv23() 89 for (from += flen, em += num, i = 0; i < num; i++) { in RSA_padding_check_SSLv23() 90 mask = ~constant_time_is_zero(flen); in RSA_padding_check_SSLv23() 91 flen -= 1 & mask; in RSA_padding_check_SSLv23()
|
| D | rsa_crpt.c | 27 int RSA_public_encrypt(int flen, const unsigned char *from, unsigned char *to, in RSA_public_encrypt() argument 30 return rsa->meth->rsa_pub_enc(flen, from, to, rsa, padding); in RSA_public_encrypt() 33 int RSA_private_encrypt(int flen, const unsigned char *from, in RSA_private_encrypt() argument 36 return rsa->meth->rsa_priv_enc(flen, from, to, rsa, padding); in RSA_private_encrypt() 39 int RSA_private_decrypt(int flen, const unsigned char *from, in RSA_private_decrypt() argument 42 return rsa->meth->rsa_priv_dec(flen, from, to, rsa, padding); in RSA_private_decrypt() 45 int RSA_public_decrypt(int flen, const unsigned char *from, unsigned char *to, in RSA_public_decrypt() argument 48 return rsa->meth->rsa_pub_dec(flen, from, to, rsa, padding); in RSA_public_decrypt()
|
| D | rsa_meth.c | 101 (int flen, const unsigned char *from, in RSA_meth_get_pub_enc() 108 int (*pub_enc) (int flen, const unsigned char *from, in RSA_meth_set_pub_enc() 117 (int flen, const unsigned char *from, in RSA_meth_get_pub_dec() 124 int (*pub_dec) (int flen, const unsigned char *from, in RSA_meth_set_pub_dec() 133 (int flen, const unsigned char *from, in RSA_meth_get_priv_enc() 140 int (*priv_enc) (int flen, const unsigned char *from, in RSA_meth_set_priv_enc() 149 (int flen, const unsigned char *from, in RSA_meth_get_priv_dec() 156 int (*priv_dec) (int flen, const unsigned char *from, in RSA_meth_set_priv_dec()
|
| D | rsa_ossl.c | 15 static int rsa_ossl_public_encrypt(int flen, const unsigned char *from, 17 static int rsa_ossl_private_encrypt(int flen, const unsigned char *from, 19 static int rsa_ossl_public_decrypt(int flen, const unsigned char *from, 21 static int rsa_ossl_private_decrypt(int flen, const unsigned char *from, 68 static int rsa_ossl_public_encrypt(int flen, const unsigned char *from, in rsa_ossl_public_encrypt() argument 108 i = RSA_padding_add_PKCS1_type_2(buf, num, from, flen); in rsa_ossl_public_encrypt() 111 i = RSA_padding_add_PKCS1_OAEP(buf, num, from, flen, NULL, 0); in rsa_ossl_public_encrypt() 114 i = RSA_padding_add_SSLv23(buf, num, from, flen); in rsa_ossl_public_encrypt() 117 i = RSA_padding_add_none(buf, num, from, flen); in rsa_ossl_public_encrypt() 234 static int rsa_ossl_private_encrypt(int flen, const unsigned char *from, in rsa_ossl_private_encrypt() argument [all …]
|
| D | rsa_local.h | 70 int (*rsa_pub_enc) (int flen, const unsigned char *from, 72 int (*rsa_pub_dec) (int flen, const unsigned char *from, 74 int (*rsa_priv_enc) (int flen, const unsigned char *from, 76 int (*rsa_priv_dec) (int flen, const unsigned char *from,
|
| /freebsd-12-stable/lib/libfigpar/ |
| D | string_m.c | 51 size_t flen; in strcount() local 59 flen = strlen(find); in strcount() 60 if (strlen(source) == 0 || flen == 0) in strcount() 65 if (strncmp(p, find, flen) == 0) { /* found an instance */ in strcount() 66 p += flen; in strcount() 98 size_t flen; in replaceall() local 113 flen = strlen(find); in replaceall() 117 if (slen == 0 || flen == 0 || slen < flen) in replaceall() 121 if (rlen > flen) { in replaceall() 133 if (strncmp(t, find, flen) == 0) { in replaceall() [all …]
|
| /freebsd-12-stable/contrib/ngatm/sscop/ |
| D | common.c | 123 u_int32_t flen; in proto_msgin() local 127 if ((size = read(sscop_fd, &flen, 4)) == -1) in proto_msgin() 135 if ((m = uni_msg_alloc(flen)) == NULL) in proto_msgin() 137 for (got = 0; got < flen; got += (size_t)size) { in proto_msgin() 138 size = read(sscop_fd, m->b_rptr + got, flen - got); in proto_msgin() 185 u_int32_t flen; in user_msgin() local 189 if ((size = read(user_fd, &flen, 4)) == -1) in user_msgin() 197 if ((m = uni_msg_alloc(flen)) == NULL) in user_msgin() 199 for (got = 0; got < flen; got++) { in user_msgin() 200 size = read(user_fd, m->b_rptr + got, flen - got); in user_msgin() [all …]
|
| /freebsd-12-stable/contrib/ntp/libntp/lib/isc/unix/ |
| D | time.c | 384 unsigned int flen; in isc_time_formattimestamp() local 389 flen = strftime(buf, len, "%d-%b-%Y %X", localtime(&now)); in isc_time_formattimestamp() 390 INSIST(flen < len); in isc_time_formattimestamp() 391 if (flen != 0) in isc_time_formattimestamp() 392 snprintf(buf + flen, len - flen, in isc_time_formattimestamp() 401 unsigned int flen; in isc_time_formathttptimestamp() local 406 flen = strftime(buf, len, "%a, %d %b %Y %H:%M:%S GMT", gmtime(&now)); in isc_time_formathttptimestamp() 407 INSIST(flen < len); in isc_time_formathttptimestamp() 413 unsigned int flen; in isc_time_formatISO8601() local 418 flen = strftime(buf, len, "%Y-%m-%dT%H:%M:%SZ", gmtime(&now)); in isc_time_formatISO8601() [all …]
|
| /freebsd-12-stable/contrib/elftoolchain/libpe/ |
| D | libpe_rich.c | 37 memfind(char *s, const char *find, size_t slen, size_t flen) in memfind() argument 41 if (slen == 0 || flen == 0 || flen > slen) in memfind() 44 for (i = 0; (size_t) i <= slen - flen; i++) { in memfind() 47 if (flen == 1) in memfind() 49 if (memcmp(&s[i + 1], &find[1], flen - 1) == 0) in memfind()
|
| /freebsd-12-stable/usr.bin/number/ |
| D | number.c | 125 int flen, len, rval; in convert() local 128 flen = 0; in convert() 159 (fraction != NULL && ((flen = strlen(fraction)) > MAXNUM))) in convert() 169 if (fraction != NULL && flen != 0) in convert() 176 if (unit(flen, fraction)) { in convert() 179 pfract(flen); in convert()
|
| /freebsd-12-stable/crypto/openssl/include/openssl/ |
| D | rsa.h | 255 int RSA_public_encrypt(int flen, const unsigned char *from, 257 int RSA_private_encrypt(int flen, const unsigned char *from, 259 int RSA_public_decrypt(int flen, const unsigned char *from, 261 int RSA_private_decrypt(int flen, const unsigned char *from, 354 const unsigned char *from, int flen, 358 const unsigned char *from, int flen, 432 (int flen, const unsigned char *from, 435 int (*pub_enc) (int flen, const unsigned char *from, 439 (int flen, const unsigned char *from, 442 int (*pub_dec) (int flen, const unsigned char *from, [all …]
|
| /freebsd-12-stable/contrib/ntp/sntp/libopts/ |
| D | usage.c | 294 int flen; in print_usage_details() local 300 flen = setGnuOptFmts(opts, &pOptTitle); in print_usage_details() 301 sprintf(line_fmt_buf, zFmtFmt, flen); in print_usage_details() 305 flen = setStdOptFmts(opts, &pOptTitle); in print_usage_details() 306 sprintf(line_fmt_buf, zFmtFmt, flen); in print_usage_details() 319 flen = 4 - ((flen + 15) / 8); in print_usage_details() 320 if (flen > 0) in print_usage_details() 321 tab_skip_ct = flen; in print_usage_details() 1193 int flen = 22; in setGnuOptFmts() local 1219 flen = 8; in setGnuOptFmts() [all …]
|
| /freebsd-12-stable/contrib/wpa/src/common/ |
| D | wpa_helpers.c | 169 size_t len, flen; in get_wpa_status() local 183 flen = strlen(field); in get_wpa_status() 185 while (pos + flen < buf + len) { in get_wpa_status() 193 if (strncmp(pos, field, flen) != 0 || pos[flen] != '=') { in get_wpa_status() 197 pos += flen + 1; in get_wpa_status()
|
| /freebsd-12-stable/crypto/openssl/engines/ |
| D | e_dasync.c | 97 static int dasync_pub_enc(int flen, const unsigned char *from, 99 static int dasync_pub_dec(int flen, const unsigned char *from, 101 static int dasync_rsa_priv_enc(int flen, const unsigned char *from, 103 static int dasync_rsa_priv_dec(int flen, const unsigned char *from, 516 static int dasync_pub_enc(int flen, const unsigned char *from, in dasync_pub_enc() argument 521 (flen, from, to, rsa, padding); in dasync_pub_enc() 524 static int dasync_pub_dec(int flen, const unsigned char *from, in dasync_pub_dec() argument 529 (flen, from, to, rsa, padding); in dasync_pub_dec() 532 static int dasync_rsa_priv_enc(int flen, const unsigned char *from, in dasync_rsa_priv_enc() argument 538 (flen, from, to, rsa, padding); in dasync_rsa_priv_enc() [all …]
|
| /freebsd-12-stable/usr.sbin/ppp/ |
| D | fsm.c | 472 int plen, flen; in FsmRecvConfigReq() local 478 flen = ntohs(lhp->length) - sizeof *lhp; in FsmRecvConfigReq() 479 if (plen < flen) { in FsmRecvConfigReq() 481 fp->link->name, plen, flen); in FsmRecvConfigReq() 496 (*fp->fn->DecodeConfig)(fp, cp, cp + flen, MODE_REQ, &dec); in FsmRecvConfigReq() 497 if (flen < (int)sizeof(struct fsm_opt_hdr)) in FsmRecvConfigReq() 615 int plen, flen; in FsmRecvConfigAck() local 619 flen = ntohs(lhp->length) - sizeof *lhp; in FsmRecvConfigAck() 620 if (plen < flen) { in FsmRecvConfigAck() 630 (*fp->fn->DecodeConfig)(fp, cp, cp + flen, MODE_ACK, &dec); in FsmRecvConfigAck() [all …]
|
| /freebsd-12-stable/contrib/file/src/ |
| D | ascmagic.c | 83 bb.flen = trim_nuls(CAST(const unsigned char *, b->fbuf), b->flen); in file_ascmagic() 88 if ((bb.flen & 1) && !(b->flen & 1)) in file_ascmagic() 89 bb.flen++; in file_ascmagic() 111 size_t nbytes = b->flen; in file_ascmagic_with_encoding()
|
| D | buffer.c | 49 b->flen = len; in buffer_init() 72 b->elen = CAST(size_t, b->st.st_size) < b->flen ? in buffer_fill() 73 CAST(size_t, b->st.st_size) : b->flen; in buffer_fill()
|
| /freebsd-12-stable/contrib/nvi/common/ |
| D | line.c | 258 size_t flen; in db_append() local 270 INT2FILE(sp, p, len, fp, flen); in db_append() 276 data.size = flen; in db_append() 329 size_t flen; in db_insert() local 342 INT2FILE(sp, p, len, fp, flen); in db_insert() 348 data.size = flen; in db_insert() 392 size_t flen; in db_set() local 407 INT2FILE(sp, p, len, fp, flen); in db_set() 413 data.size = flen; in db_set()
|
| /freebsd-12-stable/contrib/libxo/libxo/ |
| D | libxo.c | 484 const char *fmt, ssize_t flen, 3307 const char *fmt, ssize_t flen, xo_xff_flags_t flags) in xo_do_format_field() argument 3327 for (cp = fmt, ep = fmt + flen; cp < ep; cp++) { in xo_do_format_field() 3804 const char *fmt, ssize_t flen, xo_xff_flags_t flags) in xo_simple_field() argument 3810 xo_do_format_field(xop, NULL, fmt, flen, flags); in xo_simple_field() 3823 const char *fmt, ssize_t flen, in xo_buf_append_div() argument 3835 char *enc = alloca(flen + 1); in xo_buf_append_div() 3836 memcpy(enc, fmt, flen); in xo_buf_append_div() 3837 enc[flen] = '\0'; in xo_buf_append_div() 4015 xo_simple_field(xop, FALSE, value, vlen, fmt, flen, flags); in xo_buf_append_div() [all …]
|