Home
last modified time | relevance | path

Searched refs:flen (Results 1 – 25 of 87) sorted by relevance

1234

/freebsd/contrib/libarchive/libarchive/test/
H A Dtest_ustar_filenames.c32 test_filename(const char *prefix, int dlen, int flen)
53 for (; i < dlen + flen + separator; i++) in test_filename()
72 failure("dlen=%d, flen=%d", dlen, flen); in test_filename()
73 if (flen > 100) { in test_filename()
86 failure("dlen=%d, flen=%d", dlen, flen); in test_filename()
87 if (flen >= 100) { in test_filename()
103 failure("dlen=%d, flen=%d", dlen, flen); in test_filename()
33 test_filename(const char * prefix,int dlen,int flen) test_filename() argument
161 int dlen, flen; DEFINE_TEST() local
[all...]
H A Dtest_tar_filenames.c34 test_filename(const char *prefix, int dlen, int flen)
55 for (i = 0; i < flen; i++) in test_filename()
74 failure("Pathname %d/%d", dlen, flen); in test_filename()
84 failure("Dirname %d/%d", dlen, flen); in test_filename()
97 failure("Dirname %d/%d", dlen, flen); in test_filename()
142 int dlen, flen; in DEFINE_TEST()
146 for (flen = 45; flen < 55; flen++) { in DEFINE_TEST()
147 test_filename(NULL, dlen, flen); in DEFINE_TEST()
35 test_filename(const char * prefix,int dlen,int flen) test_filename() argument
143 int dlen, flen; DEFINE_TEST() local
[all...]
/freebsd/crypto/openssl/crypto/rsa/
H A Drsa_pk1.c29 const unsigned char *from, int flen) in RSA_padding_add_PKCS1_type_1() argument
34 if (flen > (tlen - RSA_PKCS1_PADDING_SIZE)) { in RSA_padding_add_PKCS1_type_1()
45 j = tlen - 3 - flen; in RSA_padding_add_PKCS1_type_1()
49 memcpy(p, from, (unsigned int)flen); in RSA_padding_add_PKCS1_type_1()
54 const unsigned char *from, int flen, in RSA_padding_check_PKCS1_type_1() argument
73 if (num == flen) { in RSA_padding_check_PKCS1_type_1()
78 flen--; in RSA_padding_check_PKCS1_type_1()
81 if ((num != (flen + 1)) || (*(p++) != 0x01)) { in RSA_padding_check_PKCS1_type_1()
87 j = flen - 1; /* one for type. */ in RSA_padding_check_PKCS1_type_1()
123 int flen) in ossl_rsa_padding_add_PKCS1_type_2_ex() argument
[all …]
H A Drsa_none.c21 const unsigned char *from, int flen) in RSA_padding_add_none() argument
23 if (flen > tlen) { in RSA_padding_add_none()
28 if (flen < tlen) { in RSA_padding_add_none()
33 memcpy(to, from, (unsigned int)flen); in RSA_padding_add_none()
38 const unsigned char *from, int flen, int num) in RSA_padding_check_none() argument
41 if (flen > tlen) { in RSA_padding_check_none()
46 memset(to, 0, tlen - flen); in RSA_padding_check_none()
47 memcpy(to + tlen - flen, from, flen); in RSA_padding_check_none()
H A Drsa_oaep.c40 const unsigned char *from, int flen, in RSA_padding_add_PKCS1_OAEP() argument
43 return ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex(NULL, to, tlen, from, flen, in RSA_padding_add_PKCS1_OAEP()
56 const unsigned char *from, int flen, in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex() argument
86 if (flen > emlen - 2 * mdlen - 1) { in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
105 memset(db + mdlen, 0, emlen - flen - 2 * mdlen - 1); in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
107 db[emlen - flen - mdlen - 1] = 0x01; in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
108 memcpy(db + emlen - flen - mdlen, from, (unsigned int)flen); in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
142 const unsigned char *from, int flen, in RSA_padding_add_PKCS1_OAEP_mgf1() argument
146 return ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex(NULL, to, tlen, from, flen, in RSA_padding_add_PKCS1_OAEP_mgf1()
151 const unsigned char *from, int flen, int num, in RSA_padding_check_PKCS1_OAEP() argument
[all …]
H A Drsa_x931.c23 const unsigned char *from, int flen) in RSA_padding_add_X931() argument
33 j = tlen - flen - 2; in RSA_padding_add_X931()
53 memcpy(p, from, (unsigned int)flen); in RSA_padding_add_X931()
54 p += flen; in RSA_padding_add_X931()
60 const unsigned char *from, int flen, int num) in RSA_padding_check_X931() argument
66 if ((num != flen) || ((*p != 0x6A) && (*p != 0x6B))) { in RSA_padding_check_X931()
72 j = flen - 3; in RSA_padding_check_X931()
91 j = flen - 2; in RSA_padding_check_X931()
H A Drsa_crpt.c33 int RSA_public_encrypt(int flen, const unsigned char *from, unsigned char *to, in RSA_public_encrypt() argument
36 return rsa->meth->rsa_pub_enc(flen, from, to, rsa, padding); in RSA_public_encrypt()
39 int RSA_private_encrypt(int flen, const unsigned char *from, in RSA_private_encrypt() argument
42 return rsa->meth->rsa_priv_enc(flen, from, to, rsa, padding); in RSA_private_encrypt()
45 int RSA_private_decrypt(int flen, const unsigned char *from, in RSA_private_decrypt() argument
48 return rsa->meth->rsa_priv_dec(flen, from, to, rsa, padding); in RSA_private_decrypt()
51 int RSA_public_decrypt(int flen, const unsigned char *from, unsigned char *to, in RSA_public_decrypt() argument
54 return rsa->meth->rsa_pub_dec(flen, from, to, rsa, padding); in RSA_public_decrypt()
H A Drsa_meth.c107 (int flen, const unsigned char *from, in RSA_meth_get_pub_enc()
114 int (*pub_enc) (int flen, const unsigned char *from, in RSA_meth_set_pub_enc()
123 (int flen, const unsigned char *from, in RSA_meth_get_pub_dec()
130 int (*pub_dec) (int flen, const unsigned char *from, in RSA_meth_set_pub_dec()
139 (int flen, const unsigned char *from, in RSA_meth_get_priv_enc()
146 int (*priv_enc) (int flen, const unsigned char *from, in RSA_meth_set_priv_enc()
155 (int flen, const unsigned char *from, in RSA_meth_get_priv_dec()
162 int (*priv_dec) (int flen, const unsigned char *from, in RSA_meth_set_priv_dec()
H A Drsa_ossl.c21 static int rsa_ossl_public_encrypt(int flen, const unsigned char *from,
23 static int rsa_ossl_private_encrypt(int flen, const unsigned char *from,
25 static int rsa_ossl_public_decrypt(int flen, const unsigned char *from,
27 static int rsa_ossl_private_decrypt(int flen, const unsigned char *from,
74 static int rsa_ossl_public_encrypt(int flen, const unsigned char *from, in rsa_ossl_public_encrypt() argument
115 from, flen); in rsa_ossl_public_encrypt()
119 from, flen, NULL, 0, in rsa_ossl_public_encrypt()
123 i = RSA_padding_add_none(buf, num, from, flen); in rsa_ossl_public_encrypt()
242 static int rsa_ossl_private_encrypt(int flen, const unsigned char *from, in rsa_ossl_private_encrypt() argument
272 i = RSA_padding_add_PKCS1_type_1(buf, num, from, flen); in rsa_ossl_private_encrypt()
[all …]
H A Drsa_local.h105 int (*rsa_pub_enc) (int flen, const unsigned char *from,
107 int (*rsa_pub_dec) (int flen, const unsigned char *from,
109 int (*rsa_priv_enc) (int flen, const unsigned char *from,
111 int (*rsa_priv_dec) (int flen, const unsigned char *from,
194 int flen);
/freebsd/lib/libfigpar/
H A Dstring_m.c46 size_t flen; in strcount() local
54 flen = strlen(find); in strcount()
55 if (strlen(source) == 0 || flen == 0) in strcount()
60 if (strncmp(p, find, flen) == 0) { /* found an instance */ in strcount()
61 p += flen; in strcount()
93 size_t flen; in replaceall() local
108 flen = strlen(find); in replaceall()
112 if (slen == 0 || flen == 0 || slen < flen) in replaceall()
116 if (rlen > flen) { in replaceall()
128 if (strncmp(t, find, flen) == 0) { in replaceall()
[all …]
/freebsd/contrib/ntp/libntp/lib/isc/unix/
H A Dtime.c384 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/contrib/elftoolchain/libpe/
H A Dlibpe_rich.c37 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/usr.bin/number/
H A Dnumber.c111 int flen, len, rval; in convert() local
114 flen = 0; in convert()
145 (fraction != NULL && ((flen = strlen(fraction)) > MAXNUM))) in convert()
155 if (fraction != NULL && flen != 0) in convert()
162 if (unit(flen, fraction)) { in convert()
165 pfract(flen); in convert()
/freebsd/crypto/openssl/include/openssl/
H A Drsa.h282 int RSA_public_encrypt(int flen, const unsigned char *from, unsigned char *to,
285 int RSA_private_encrypt(int flen, const unsigned char *from, unsigned char *to,
288 int RSA_public_decrypt(int flen, const unsigned char *from, unsigned char *to,
291 int RSA_private_decrypt(int flen, const unsigned char *from, unsigned char *to,
402 const unsigned char *from, int flen,
407 const unsigned char *from, int flen,
485 int (*RSA_meth_get_pub_enc(const RSA_METHOD *meth)) (int flen,
491 int (*pub_enc) (int flen, const unsigned char *from,
495 int (*RSA_meth_get_pub_dec(const RSA_METHOD *meth)) (int flen,
501 int (*pub_dec) (int flen, const unsigned char *from,
[all …]
/freebsd/contrib/ntp/sntp/libopts/
H A Dusage.c294 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/contrib/wpa/src/common/
H A Dwpa_helpers.c169 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/usr.sbin/ppp/
H A Dfsm.c470 int plen, flen; in FsmRecvConfigReq() local
476 flen = ntohs(lhp->length) - sizeof *lhp; in FsmRecvConfigReq()
477 if (plen < flen) { in FsmRecvConfigReq()
479 fp->link->name, plen, flen); in FsmRecvConfigReq()
494 (*fp->fn->DecodeConfig)(fp, cp, cp + flen, MODE_REQ, &dec); in FsmRecvConfigReq()
495 if (flen < (int)sizeof(struct fsm_opt_hdr)) in FsmRecvConfigReq()
613 int plen, flen; in FsmRecvConfigAck() local
617 flen = ntohs(lhp->length) - sizeof *lhp; in FsmRecvConfigAck()
618 if (plen < flen) { in FsmRecvConfigAck()
628 (*fp->fn->DecodeConfig)(fp, cp, cp + flen, MODE_ACK, &dec); in FsmRecvConfigAck()
[all …]
/freebsd/contrib/file/src/
H A Dascmagic.c83 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()
H A Dbuffer.c49 b->flen = len; in buffer_init()
74 b->elen = CAST(size_t, b->st.st_size) < b->flen ? in buffer_fill()
75 CAST(size_t, b->st.st_size) : b->flen; in buffer_fill()
/freebsd/contrib/nvi/common/
H A Dline.c258 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/contrib/libxo/libxo/
H A Dlibxo.c419 const char *fmt, ssize_t flen,
3311 const char *fmt, ssize_t flen, xo_xff_flags_t flags) in xo_do_format_field() argument
3331 for (cp = fmt, ep = fmt + flen; cp < ep; cp++) { in xo_do_format_field()
3811 const char *fmt, ssize_t flen, xo_xff_flags_t flags) in xo_simple_field() argument
3817 xo_do_format_field(xop, NULL, fmt, flen, flags); in xo_simple_field()
3830 const char *fmt, ssize_t flen, in xo_buf_append_div() argument
3842 char *enc = alloca(flen + 1); in xo_buf_append_div()
3843 memcpy(enc, fmt, flen); in xo_buf_append_div()
3844 enc[flen] = '\0'; in xo_buf_append_div()
4022 xo_simple_field(xop, FALSE, value, vlen, fmt, flen, flags); in xo_buf_append_div()
[all …]
/freebsd/sys/kern/
H A Dtty_inq.c164 size_t rlen, size_t flen) in ttyinq_read_uio() argument
168 MPASS(rlen - flen <= uio->uio_resid); in ttyinq_read_uio()
192 MPASS(clen >= flen); in ttyinq_read_uio()
200 if (flen > 0) in ttyinq_read_uio()
240 clen - flen, uio); in ttyinq_read_uio()
251 memcpy(ob, tib->tib_data + cbegin, clen - flen); in ttyinq_read_uio()
257 error = uiomove(ob, clen - flen, uio); in ttyinq_read_uio()
/freebsd/crypto/openssl/doc/man3/
H A DRSA_public_encrypt.pod15 int RSA_public_encrypt(int flen, const unsigned char *from,
18 int RSA_private_decrypt(int flen, const unsigned char *from,
28 RSA_public_encrypt() encrypts the B<flen> bytes at B<from> (usually a
55 B<flen> must not be more than RSA_size(B<rsa>) - 11 for the PKCS #1 v1.5
66 RSA_private_decrypt() decrypts the B<flen> bytes at B<from> using the
67 private key B<rsa> and stores the plaintext in B<to>. B<flen> should
/freebsd/contrib/wpa/src/rsn_supp/
H A Dwpa_ie.c370 size_t flen; in wpa_gen_rsnxe() local
394 flen = 0; in wpa_gen_rsnxe()
396 flen++; in wpa_gen_rsnxe()
399 if (rsnxe_len < 2 + flen) in wpa_gen_rsnxe()
401 capab |= flen - 1; /* bit 0-3 = Field length (n - 1) */ in wpa_gen_rsnxe()
404 *pos++ = flen; in wpa_gen_rsnxe()

1234