| /freebsd/contrib/libarchive/libarchive/test/ |
| H A D | test_ustar_filenames.c | 32 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 D | test_tar_filenames.c | 34 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 D | rsa_pk1.c | 32 const unsigned char *from, int flen) in RSA_padding_add_PKCS1_type_1() argument 37 if (flen > (tlen - RSA_PKCS1_PADDING_SIZE)) { in RSA_padding_add_PKCS1_type_1() 48 j = tlen - 3 - flen; in RSA_padding_add_PKCS1_type_1() 52 memcpy(p, from, (unsigned int)flen); in RSA_padding_add_PKCS1_type_1() 57 const unsigned char *from, int flen, in RSA_padding_check_PKCS1_type_1() argument 76 if (num == flen) { in RSA_padding_check_PKCS1_type_1() 81 flen--; in RSA_padding_check_PKCS1_type_1() 84 if ((num != (flen + 1)) || (*(p++) != 0x01)) { in RSA_padding_check_PKCS1_type_1() 90 j = flen - 1; /* one for type. */ in RSA_padding_check_PKCS1_type_1() 126 int flen) in ossl_rsa_padding_add_PKCS1_type_2_ex() argument [all …]
|
| H A D | rsa_none.c | 21 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 D | rsa_oaep.c | 40 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 98 if (flen > emlen - 2 * mdlen - 1) { in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex() 117 memset(db + mdlen, 0, emlen - flen - 2 * mdlen - 1); in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex() 119 db[emlen - flen - mdlen - 1] = 0x01; in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex() 120 memcpy(db + emlen - flen - mdlen, from, (unsigned int)flen); in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex() 152 const unsigned char *from, int flen, in RSA_padding_add_PKCS1_OAEP_mgf1() argument 156 return ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex(NULL, to, tlen, from, flen, in RSA_padding_add_PKCS1_OAEP_mgf1() 161 const unsigned char *from, int flen, int num, in RSA_padding_check_PKCS1_OAEP() argument [all …]
|
| H A D | rsa_x931.c | 41 * flen The size of the input hash + 1 (trailer byte) 44 const unsigned char *from, int flen) in RSA_padding_add_X931() argument 51 * And 2 trailer bytes (but we subtract 1 since flen includes 1 trailer byte) in RSA_padding_add_X931() 53 j = tlen - flen - 2; in RSA_padding_add_X931() 73 memcpy(p, from, (unsigned int)flen); in RSA_padding_add_X931() 74 p += flen; in RSA_padding_add_X931() 80 const unsigned char *from, int flen, int num) in RSA_padding_check_X931() argument 86 if ((num != flen) || ((*p != 0x6A) && (*p != 0x6B))) { in RSA_padding_check_X931() 92 j = flen - 3; in RSA_padding_check_X931() 111 j = flen - 2; in RSA_padding_check_X931()
|
| H A D | rsa_crpt.c | 33 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 D | rsa_meth.c | 102 int (*RSA_meth_get_pub_enc(const RSA_METHOD *meth))(int flen, const unsigned char *from, in RSA_meth_get_pub_enc() 109 int (*pub_enc)(int flen, const unsigned char *from, in RSA_meth_set_pub_enc() argument 117 int (*RSA_meth_get_pub_dec(const RSA_METHOD *meth))(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() argument 132 int (*RSA_meth_get_priv_enc(const RSA_METHOD *meth))(int flen, const unsigned char *from, in RSA_meth_get_priv_enc() 139 int (*priv_enc)(int flen, const unsigned char *from, in RSA_meth_set_priv_enc() argument 147 int (*RSA_meth_get_priv_dec(const RSA_METHOD *meth))(int flen, const unsigned char *from, in RSA_meth_get_priv_dec() 154 int (*priv_dec)(int flen, const unsigned char *from, in RSA_meth_set_priv_dec() argument
|
| H A D | rsa_ossl.c | 24 static int rsa_ossl_public_encrypt(int flen, const unsigned char *from, 26 static int rsa_ossl_private_encrypt(int flen, const unsigned char *from, 28 static int rsa_ossl_public_decrypt(int flen, const unsigned char *from, 30 static int rsa_ossl_private_decrypt(int flen, const unsigned char *from, 99 static int rsa_ossl_public_encrypt(int flen, const unsigned char *from, in rsa_ossl_public_encrypt() argument 138 from, flen); in rsa_ossl_public_encrypt() 142 from, flen, NULL, 0, in rsa_ossl_public_encrypt() 146 i = RSA_padding_add_none(buf, num, from, flen); in rsa_ossl_public_encrypt() 312 static int rsa_ossl_private_encrypt(int flen, const unsigned char *from, in rsa_ossl_private_encrypt() argument 340 i = RSA_padding_add_PKCS1_type_1(buf, num, from, flen); in rsa_ossl_private_encrypt() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/ |
| H A D | CSKY.cpp | 24 unsigned FLen; member in __anond0a0cca10111::CSKYABIInfo 27 CSKYABIInfo(CodeGen::CodeGenTypes &CGT, unsigned FLen) in CSKYABIInfo() argument 28 : DefaultABIInfo(CGT), FLen(FLen) {} in CSKYABIInfo() 53 int ArgFPRsLeft = FLen ? NumArgFPRs : 0; in computeInfo() 100 if (Ty->isFloatingType() && !Ty->isComplexType() && FLen >= Size && in classifyArgumentType() 108 if (Ty->isComplexType() && FLen && !isReturnType) { in classifyArgumentType() 110 if (getContext().getTypeSize(EltTy) <= FLen) { in classifyArgumentType() 157 int ArgFPRsLeft = FLen ? 1 : 0; in classifyReturnType() 167 CSKYTargetCodeGenInfo(CodeGen::CodeGenTypes &CGT, unsigned FLen) in CSKYTargetCodeGenInfo() argument 168 : TargetCodeGenInfo(std::make_unique<CSKYABIInfo>(CGT, FLen)) {} in CSKYTargetCodeGenInfo() [all …]
|
| H A D | RISCV.cpp | 26 // ISA might have a wider FLen than the selected ABI (e.g. an RV32IF target 27 // with soft float ABI has FLen==0). 28 unsigned FLen; member in __anonb4a9a46e0111::RISCVABIInfo 42 RISCVABIInfo(CodeGen::CodeGenTypes &CGT, unsigned XLen, unsigned FLen, in RISCVABIInfo() argument 44 : DefaultABIInfo(CGT), XLen(XLen), FLen(FLen), NumArgGPRs(EABI ? 6 : 8), in RISCVABIInfo() 45 NumArgFPRs(FLen != 0 ? 8 : 0), EABI(EABI) {} in RISCVABIInfo() 147 // and not a complex type with elements <= FLen. e.g. fp128 is passed direct in computeInfo() 153 if (RetTy->isComplexType() && FLen) { in computeInfo() 155 IsRetIndirect = getContext().getTypeSize(EltTy) > FLen; in computeInfo() 193 if (IsFloat && Size > FLen) in detectFPCCEligibleStructHelper() [all …]
|
| /freebsd/lib/libbsdconf/ |
| H A D | bsdconf_string.c | 26 size_t flen; in bsdconf_strcount() local 32 flen = strlen(find); in bsdconf_strcount() 33 for (p = source; (p = strstr(p, find)) != NULL; p += flen) in bsdconf_strcount() 65 size_t flen, need, rlen, slen; in bsdconf_replaceall() local 74 flen = strlen(find); in bsdconf_replaceall() 77 if (slen == 0 || flen == 0 || slen < flen) in bsdconf_replaceall() 84 if (rlen >= flen) in bsdconf_replaceall() 85 need = slen + (size_t)n * (rlen - flen) + 1; in bsdconf_replaceall() 87 need = slen - (size_t)n * (flen - rlen) + 1; in bsdconf_replaceall() 105 src = hit + flen; in bsdconf_replaceall()
|
| /freebsd/contrib/ntp/libntp/lib/isc/unix/ |
| H A 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/contrib/elftoolchain/libpe/ |
| H A 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/crypto/openssl/doc/man3/ |
| H A D | RSA_public_encrypt.pod | 15 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 When encrypting B<flen> must not be more than RSA_size(B<rsa>) - 11 for the 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
|
| H A D | RSA_meth_new.pod | 41 int (*RSA_meth_get_pub_enc(const RSA_METHOD *meth))(int flen, const unsigned char *from, 44 int (*pub_enc)(int flen, const unsigned char *from, 49 (int flen, const unsigned char *from, 52 int (*pub_dec)(int flen, const unsigned char *from, 56 int (*RSA_meth_get_priv_enc(const RSA_METHOD *meth))(int flen, const unsigned char *from, 60 int (*priv_enc)(int flen, const unsigned char *from, 63 int (*RSA_meth_get_priv_dec(const RSA_METHOD *meth))(int flen, const unsigned char *from, 67 int (*priv_dec)(int flen, const unsigned char *from,
|
| H A D | RSA_private_encrypt.pod | 15 int RSA_private_encrypt(int flen, unsigned char *from, 18 int RSA_public_decrypt(int flen, unsigned char *from, 30 RSA_private_encrypt() signs the B<flen> bytes at B<from> (usually a 54 RSA_public_decrypt() recovers the message digest from the B<flen>
|
| /freebsd/crypto/openssl/include/openssl/ |
| H A D | rsa.h | 292 int RSA_public_encrypt(int flen, const unsigned char *from, unsigned char *to, 295 int RSA_private_encrypt(int flen, const unsigned char *from, unsigned char *to, 298 int RSA_public_decrypt(int flen, const unsigned char *from, unsigned char *to, 301 int RSA_private_decrypt(int flen, const unsigned char *from, unsigned char *to, 412 const unsigned char *from, int flen, 417 const unsigned char *from, int flen, 495 int (*RSA_meth_get_pub_enc(const RSA_METHOD *meth))(int flen, 501 int (*pub_enc)(int flen, const unsigned char *from, 505 int (*RSA_meth_get_pub_dec(const RSA_METHOD *meth))(int flen, 511 int (*pub_dec)(int flen, const unsigned char *from, [all …]
|
| /freebsd/secure/lib/libcrypto/man/man3/ |
| H A D | RSA_public_encrypt.3 | 76 \& int RSA_public_encrypt(int flen, const unsigned char *from, 79 \& int RSA_private_decrypt(int flen, const unsigned char *from,
|
| H A D | RSA_meth_new.3 | 102 \& int (*RSA_meth_get_pub_enc(const RSA_METHOD *meth))(int flen, const unsigned char *from, 105 \& int (*pub_enc)(int flen, const unsigned char *from, 110 \& (int flen, const unsigned char *from, 113 \& int (*pub_dec)(int flen, const unsigned char *from, 117 \& int (*RSA_meth_get_priv_enc(const RSA_METHOD *meth))(int flen, const unsigned char *from, 121 \& int (*priv_enc)(int flen, const unsigned char *from, 124 \& int (*RSA_meth_get_priv_dec(const RSA_METHOD *meth))(int flen, const unsigned char *from, 128 \& int (*priv_dec)(int flen, const unsigned char *from,
|
| H A D | RSA_private_encrypt.3 | 76 \& int RSA_private_encrypt(int flen, unsigned char *from, 79 \& int RSA_public_decrypt(int flen, unsigned char *from,
|
| /freebsd/usr.sbin/ppp/ |
| H A D | fsm.c | 470 int plen, flen; in FsmRecvConfigReq() local 476 flen = ntohs(lhp->length) - sizeof *lhp; in FsmRecvConfigReq() 477 if (plen < flen) { in FsmRecvConfigReq() 478 log_Printf(LogWARN, "%s: FsmRecvConfigReq: plen (%d) < flen (%d)\n", 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() [all …]
|
| /freebsd/usr.bin/number/ |
| H A D | number.c | 111 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/contrib/wpa/src/common/ |
| H A 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/contrib/ntp/sntp/libopts/ |
| H A 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 …]
|