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.c73 if (flen > 100) { in test_filename()
87 if (flen >= 100) { in test_filename()
104 if (flen >= 100) { in test_filename()
123 if (flen <= 100) { in test_filename()
138 if (flen <= 99) { in test_filename()
145 if (flen <= 99) { in test_filename()
160 int dlen, flen; in DEFINE_TEST() local
168 for (flen = 100 - dlen - 5; flen < 100 - dlen + 5; flen++) { in DEFINE_TEST()
175 for (flen = 90; flen < 110; flen++) { in DEFINE_TEST()
176 test_filename(NULL, 0, flen); in DEFINE_TEST()
[all …]
H A Dtest_tar_filenames.c55 for (i = 0; i < flen; i++) in test_filename()
142 int dlen, flen; in DEFINE_TEST() local
146 for (flen = 45; flen < 55; flen++) { in DEFINE_TEST()
147 test_filename(NULL, dlen, flen); in DEFINE_TEST()
148 test_filename("/", dlen, flen); in DEFINE_TEST()
153 for (flen = 98; flen < 102; flen++) { in DEFINE_TEST()
154 test_filename(NULL, dlen, flen); in DEFINE_TEST()
155 test_filename("/", dlen, flen); in DEFINE_TEST()
160 for (flen = 95; flen < 105; flen++) { in DEFINE_TEST()
161 test_filename(NULL, dlen, flen); in DEFINE_TEST()
[all …]
/freebsd/crypto/openssl/crypto/rsa/
H A Drsa_pk1.c34 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()
73 if (num == flen) { in RSA_padding_check_PKCS1_type_1()
78 flen--; in RSA_padding_check_PKCS1_type_1()
131 } else if (flen < 0) { in ossl_rsa_padding_add_PKCS1_type_2_ex()
142 j = tlen - 3 - flen; in ossl_rsa_padding_add_PKCS1_type_2_ex()
157 memcpy(p, from, (unsigned int)flen); in ossl_rsa_padding_add_PKCS1_type_2_ex()
177 if (tlen <= 0 || flen <= 0) in RSA_padding_check_PKCS1_type_2()
202 mask = ~constant_time_is_zero(flen); in RSA_padding_check_PKCS1_type_2()
[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_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_oaep.c40 const unsigned char *from, int flen, in RSA_padding_add_PKCS1_OAEP() 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()
154 return RSA_padding_check_PKCS1_OAEP_mgf1(to, tlen, from, flen, num, in RSA_padding_check_PKCS1_OAEP()
189 if (tlen <= 0 || flen <= 0) in RSA_padding_check_PKCS1_OAEP_mgf1()
199 if (num < flen || num < 2 * mdlen + 2) { in RSA_padding_check_PKCS1_OAEP_mgf1()
223 for (from += flen, em += num, i = 0; i < num; i++) { in RSA_padding_check_PKCS1_OAEP_mgf1()
224 mask = ~constant_time_is_zero(flen); in RSA_padding_check_PKCS1_OAEP_mgf1()
[all …]
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,
25 static int rsa_ossl_public_decrypt(int flen, const unsigned char *from,
115 from, flen); in rsa_ossl_public_encrypt()
123 i = RSA_padding_add_none(buf, num, from, flen); in rsa_ossl_public_encrypt()
272 i = RSA_padding_add_PKCS1_type_1(buf, num, from, flen); in rsa_ossl_private_encrypt()
275 i = RSA_padding_add_X931(buf, num, from, flen); in rsa_ossl_private_encrypt()
278 i = RSA_padding_add_none(buf, num, from, flen); in rsa_ossl_private_encrypt()
406 if (flen > num) { in rsa_ossl_private_decrypt()
412 if (BN_bin2bn(from, (int)flen, f) == NULL) in rsa_ossl_private_decrypt()
553 if (flen > num) { in rsa_ossl_public_decrypt()
[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.c48 size_t flen; in strcount() local
56 flen = strlen(find); in strcount()
57 if (strlen(source) == 0 || flen == 0) in strcount()
62 if (strncmp(p, find, flen) == 0) { /* found an instance */ in strcount()
63 p += flen; in strcount()
95 size_t flen; in replaceall() local
110 flen = strlen(find); in replaceall()
114 if (slen == 0 || flen == 0 || slen < flen) in replaceall()
118 if (rlen > flen) { in replaceall()
130 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,
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,
505 int (*RSA_meth_get_priv_enc(const RSA_METHOD *meth)) (int flen,
[all …]
/freebsd/contrib/ntp/sntp/libopts/
H A Dusage.c294 int flen; in print_usage_details() local
319 flen = 4 - ((flen + 15) / 8); in print_usage_details()
1193 int flen = 22; in setGnuOptFmts() local
1219 flen = 8; in setGnuOptFmts()
1223 return flen; in setGnuOptFmts()
1233 int flen = 0; in setStdOptFmts() local
1254 flen = 19; in setStdOptFmts()
1260 flen = 19; in setStdOptFmts()
1266 flen = 24; in setStdOptFmts()
1272 flen = 24; in setStdOptFmts()
[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()
613 int plen, flen; in FsmRecvConfigAck() local
617 flen = ntohs(lhp->length) - sizeof *lhp; in FsmRecvConfigAck()
618 if (plen < flen) { in FsmRecvConfigAck()
676 int plen, flen; in FsmRecvConfigNak() local
680 flen = ntohs(lhp->length) - sizeof *lhp; in FsmRecvConfigNak()
681 if (plen < flen) { in FsmRecvConfigNak()
807 int flen; in FsmRecvConfigRej() local
[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.c3844 enc[flen] = '\0'; in xo_buf_append_div()
4092 flen = 2; in xo_format_title()
4219 flen -= 1; in xo_format_is_numeric()
4227 flen -= spn; in xo_format_is_numeric()
4235 flen -= spn; in xo_format_is_numeric()
4399 flen = elen; in xo_format_value()
4468 flen = elen; in xo_format_value()
4493 flen = 4; in xo_format_value()
4549 flen = elen; in xo_format_value()
4586 flen = 4; in xo_format_value()
[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/processor-trace/libipt/src/
H A Dpt_section.c45 size_t flen; in pt_mk_section() local
53 flen = strnlen(filename, FILENAME_MAX); in pt_mk_section()
54 if (FILENAME_MAX <= flen) in pt_mk_section()
57 flen += 1; in pt_mk_section()
59 fname = malloc(flen); in pt_mk_section()
63 memcpy(fname, filename, flen); in pt_mk_section()

1234