/freebsd-10-stable/crypto/openssl/crypto/rsa/ |
H A D | rsa_none.c | 66 const unsigned char *from, int flen) 68 if (flen > tlen) { 73 if (flen < tlen) { 78 memcpy(to, from, (unsigned int)flen); 83 const unsigned char *from, int flen, int num) 86 if (flen > tlen) { 91 memset(to, 0, tlen - flen); 92 memcpy(to + tlen - flen, from, flen); 65 RSA_padding_add_none(unsigned char *to, int tlen, const unsigned char *from, int flen) argument 82 RSA_padding_check_none(unsigned char *to, int tlen, const unsigned char *from, int flen, int num) argument
|
H A D | rsa_pk1.c | 68 const unsigned char *from, int flen) 73 if (flen > (tlen - RSA_PKCS1_PADDING_SIZE)) { 85 j = tlen - 3 - flen; 89 memcpy(p, from, (unsigned int)flen); 94 const unsigned char *from, int flen, 101 if ((num != (flen + 1)) || (*(p++) != 01)) { 108 j = flen - 1; /* one for type. */ 146 const unsigned char *from, int flen) 151 if (flen > (tlen - 11)) { 163 j = tlen - 3 - flen; 67 RSA_padding_add_PKCS1_type_1(unsigned char *to, int tlen, const unsigned char *from, int flen) argument 93 RSA_padding_check_PKCS1_type_1(unsigned char *to, int tlen, const unsigned char *from, int flen, int num) argument 145 RSA_padding_add_PKCS1_type_2(unsigned char *to, int tlen, const unsigned char *from, int flen) argument 182 RSA_padding_check_PKCS1_type_2(unsigned char *to, int tlen, const unsigned char *from, int flen, int num) argument [all...] |
H A D | rsa_null.c | 74 static int RSA_null_public_encrypt(int flen, const unsigned char *from, 76 static int RSA_null_private_encrypt(int flen, const unsigned char *from, 78 static int RSA_null_public_decrypt(int flen, const unsigned char *from, 80 static int RSA_null_private_decrypt(int flen, const unsigned char *from, 109 static int RSA_null_public_encrypt(int flen, const unsigned char *from, argument 116 static int RSA_null_private_encrypt(int flen, const unsigned char *from, argument 124 static int RSA_null_private_decrypt(int flen, const unsigned char *from, argument 132 static int RSA_null_public_decrypt(int flen, const unsigned char *from, argument
|
H A D | rsa_ssl.c | 66 const unsigned char *from, int flen) 71 if (flen > (tlen - 11)) { 83 j = tlen - 3 - 8 - flen; 100 memcpy(p, from, (unsigned int)flen); 105 const unsigned char *from, int flen, int num) 111 if (flen < 10) { 115 if ((num != (flen + 1)) || (*(p++) != 02)) { 121 j = flen - 1; /* one for type */ 65 RSA_padding_add_SSLv23(unsigned char *to, int tlen, const unsigned char *from, int flen) argument 104 RSA_padding_check_SSLv23(unsigned char *to, int tlen, const unsigned char *from, int flen, int num) argument
|
H A D | rsa_x931.c | 68 const unsigned char *from, int flen) 78 j = tlen - flen - 2; 98 memcpy(p, from, (unsigned int)flen); 99 p += flen; 105 const unsigned char *from, int flen, int num) 111 if ((num != flen) || ((*p != 0x6A) && (*p != 0x6B))) { 117 j = flen - 3; 136 j = flen - 2; 67 RSA_padding_add_X931(unsigned char *to, int tlen, const unsigned char *from, int flen) argument 104 RSA_padding_check_X931(unsigned char *to, int tlen, const unsigned char *from, int flen, int num) argument
|
H A D | rsa_oaep.c | 35 const unsigned char *from, int flen, 42 if (flen > emlen - 2 * SHA_DIGEST_LENGTH - 1) { 60 emlen - flen - 2 * SHA_DIGEST_LENGTH - 1); 61 db[emlen - flen - SHA_DIGEST_LENGTH - 1] = 0x01; 62 memcpy(db + emlen - flen - SHA_DIGEST_LENGTH, from, (unsigned int)flen); 92 const unsigned char *from, int flen, int num, 105 if (tlen <= 0 || flen <= 0) 109 * |num| is the length of the modulus; |flen| is the length of the 111 * decrypting a ciphertext, we must have |flen| < 34 RSA_padding_add_PKCS1_OAEP(unsigned char *to, int tlen, const unsigned char *from, int flen, const unsigned char *param, int plen) argument 91 RSA_padding_check_PKCS1_OAEP(unsigned char *to, int tlen, const unsigned char *from, int flen, int num, const unsigned char *param, int plen) argument [all...] |
H A D | rsa_crpt.c | 75 int RSA_public_encrypt(int flen, const unsigned char *from, unsigned char *to, argument 85 return (rsa->meth->rsa_pub_enc(flen, from, to, rsa, padding)); 88 int RSA_private_encrypt(int flen, const unsigned char *from, argument 98 return (rsa->meth->rsa_priv_enc(flen, from, to, rsa, padding)); 101 int RSA_private_decrypt(int flen, const unsigned char *from, argument 111 return (rsa->meth->rsa_priv_dec(flen, from, to, rsa, padding)); 114 int RSA_public_decrypt(int flen, const unsigned char *from, unsigned char *to, argument 124 return (rsa->meth->rsa_pub_dec(flen, from, to, rsa, padding));
|
H A D | rsa_eay.c | 120 static int RSA_eay_public_encrypt(int flen, const unsigned char *from, 122 static int RSA_eay_private_encrypt(int flen, const unsigned char *from, 124 static int RSA_eay_public_decrypt(int flen, const unsigned char *from, 126 static int RSA_eay_private_decrypt(int flen, const unsigned char *from, 155 static int RSA_eay_public_encrypt(int flen, const unsigned char *from, argument 195 i = RSA_padding_add_PKCS1_type_2(buf, num, from, flen); 199 i = RSA_padding_add_PKCS1_OAEP(buf, num, from, flen, NULL, 0); 203 i = RSA_padding_add_SSLv23(buf, num, from, flen); 206 i = RSA_padding_add_none(buf, num, from, flen); 348 static int RSA_eay_private_encrypt(int flen, cons argument 483 RSA_eay_private_decrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument 617 RSA_eay_public_decrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument [all...] |
H A D | rsa.h | 87 int (*rsa_pub_enc) (int flen, const unsigned char *from, 89 int (*rsa_pub_dec) (int flen, const unsigned char *from, 91 int (*rsa_priv_enc) (int flen, const unsigned char *from, 93 int (*rsa_priv_dec) (int flen, const unsigned char *from, 311 int RSA_public_encrypt(int flen, const unsigned char *from, 313 int RSA_private_encrypt(int flen, const unsigned char *from, 315 int RSA_public_decrypt(int flen, const unsigned char *from, 317 int RSA_private_decrypt(int flen, const unsigned char *from,
|
/freebsd-10-stable/contrib/libarchive/libarchive/test/ |
H A D | test_ustar_filenames.c | 33 test_filename(const char *prefix, int dlen, int flen) argument 54 for (; i < dlen + flen + separator; i++) 73 failure("dlen=%d, flen=%d", dlen, flen); 74 if (flen > 100) { 87 failure("dlen=%d, flen=%d", dlen, flen); 88 if (flen >= 100) { 104 failure("dlen=%d, flen=%d", dlen, flen); 161 int dlen, flen; local [all...] |
H A D | test_tar_filenames.c | 35 test_filename(const char *prefix, int dlen, int flen) argument 56 for (i = 0; i < flen; i++) 75 failure("Pathname %d/%d", dlen, flen); 85 failure("Dirname %d/%d", dlen, flen); 98 failure("Dirname %d/%d", dlen, flen); 143 int dlen, flen; local 147 for (flen = 45; flen < 55; flen++) { 148 test_filename(NULL, dlen, flen); [all...] |
/freebsd-10-stable/lib/libfigpar/ |
H A D | string_m.c | 51 size_t flen; local 59 flen = strlen(find); 60 if (strlen(source) == 0 || flen == 0) 65 if (strncmp(p, find, flen) == 0) { /* found an instance */ 66 p += flen; 98 size_t flen; local 113 flen = strlen(find); 117 if (slen == 0 || flen == 0 || slen < flen) 121 if (rlen > flen) { [all...] |
/freebsd-10-stable/contrib/ngatm/sscop/ |
H A D | common.c | 123 u_int32_t flen; local 127 if ((size = read(sscop_fd, &flen, 4)) == -1) 135 if ((m = uni_msg_alloc(flen)) == NULL) 137 for (got = 0; got < flen; got += (size_t)size) { 138 size = read(sscop_fd, m->b_rptr + got, flen - got); 185 u_int32_t flen; local 189 if ((size = read(user_fd, &flen, 4)) == -1) 197 if ((m = uni_msg_alloc(flen)) == NULL) 199 for (got = 0; got < flen; got++) { 200 size = read(user_fd, m->b_rptr + got, flen 249 u_int32_t flen; local 295 u_int32_t flen; local [all...] |
/freebsd-10-stable/crypto/openssl/engines/vendor_defns/ |
H A D | sureware.h | 178 * in param flen : byte size of from and to 188 typedef int SureWareHook_Rsa_Priv_Dec_t(char *const msg, int flen, 200 * in param flen : byte size of from and to 210 typedef int SureWareHook_Rsa_Sign_t(char *const msg, int flen, 222 * in param flen : byte size of from and to 228 typedef int SureWareHook_Dsa_Sign_t(char *const msg, int flen,
|
/freebsd-10-stable/games/number/ |
H A D | number.c | 125 int flen, len, rval; local 128 flen = 0; 159 (fraction != NULL && ((flen = strlen(fraction)) > MAXNUM))) 169 if (fraction != NULL && flen != 0) 176 if (unit(flen, fraction)) { 179 pfract(flen);
|
/freebsd-10-stable/contrib/ntp/lib/isc/unix/ |
H A D | time.c | 384 unsigned int flen; local 389 flen = strftime(buf, len, "%d-%b-%Y %X", localtime(&now)); 390 INSIST(flen < len); 391 if (flen != 0) 392 snprintf(buf + flen, len - flen, 401 unsigned int flen; local 406 flen = strftime(buf, len, "%a, %d %b %Y %H:%M:%S GMT", gmtime(&now)); 407 INSIST(flen < len); 413 unsigned int flen; local [all...] |
/freebsd-10-stable/contrib/nvi/ex/ |
H A D | ex_mkexrc.c | 46 size_t flen; local 54 fname, flen);
|
H A D | ex_write.c | 297 size_t flen; local 351 INT2FILE(sp, p, len, f, flen); 352 if (fwrite(f, 1, flen, fp) != flen)
|
/freebsd-10-stable/usr.sbin/rip6query/ |
H A D | rip6query.c | 79 socklen_t flen; local 152 flen = sizeof(fsock); 154 (struct sockaddr *)&fsock, &flen)) < 0) {
|
/freebsd-10-stable/contrib/ntp/sntp/libopts/ |
H A D | usage.c | 345 int flen; local 351 flen = setGnuOptFmts(opts, &pOptTitle); 352 sprintf(line_fmt_buf, zFmtFmt, flen); 356 flen = setStdOptFmts(opts, &pOptTitle); 357 sprintf(line_fmt_buf, zFmtFmt, flen); 370 flen = 4 - ((flen + 15) / 8); 371 if (flen > 0) 372 tab_skip_ct = flen; 1244 int flen local 1284 int flen = 0; local [all...] |
/freebsd-10-stable/contrib/gcclibs/libcpp/ |
H A D | charset.c | 457 iconv_t cd, const uchar *from, size_t flen, struct _cpp_strbuf *to) 465 inbytesleft = flen; 498 bool (*)(iconv_t cd, const uchar *from, size_t flen, struct _cpp_strbuf *to); 506 convert_utf8_utf16 (iconv_t cd, const uchar *from, size_t flen, argument 509 return conversion_loop (one_utf8_to_utf16, cd, from, flen, to); 513 convert_utf8_utf32 (iconv_t cd, const uchar *from, size_t flen, argument 516 return conversion_loop (one_utf8_to_utf32, cd, from, flen, to); 520 convert_utf16_utf8 (iconv_t cd, const uchar *from, size_t flen, argument 523 return conversion_loop (one_utf16_to_utf8, cd, from, flen, to); 527 convert_utf32_utf8 (iconv_t cd, const uchar *from, size_t flen, argument 455 conversion_loop(int (*const one_conversion)(iconv_t, const uchar **, size_t *, uchar **, size_t *), iconv_t cd, const uchar *from, size_t flen, struct _cpp_strbuf *to) argument 535 convert_no_conversion(iconv_t cd ATTRIBUTE_UNUSED, const uchar *from, size_t flen, struct _cpp_strbuf *to) argument 552 convert_using_iconv(iconv_t cd, const uchar *from, size_t flen, struct _cpp_strbuf *to) argument [all...] |
/freebsd-10-stable/usr.sbin/ppp/ |
H A D | fsm.c | 470 int plen, flen; local 476 flen = ntohs(lhp->length) - sizeof *lhp; 477 if (plen < flen) { 478 log_Printf(LogWARN, "%s: FsmRecvConfigReq: plen (%d) < flen (%d)\n", 479 fp->link->name, plen, flen); 494 (*fp->fn->DecodeConfig)(fp, cp, cp + flen, MODE_REQ, &dec); 495 if (flen < (int)sizeof(struct fsm_opt_hdr)) 613 int plen, flen; local 617 flen = ntohs(lhp->length) - sizeof *lhp; 618 if (plen < flen) { 676 int plen, flen; local 807 int flen; local [all...] |
/freebsd-10-stable/contrib/nvi/common/ |
H A D | line.c | 281 size_t flen; local 293 INT2FILE(sp, p, len, fp, flen); 299 data.size = flen; 358 size_t flen; local 371 INT2FILE(sp, p, len, fp, flen); 377 data.size = flen; 427 size_t flen; local 442 INT2FILE(sp, p, len, fp, flen); 448 data.size = flen;
|
/freebsd-10-stable/crypto/heimdal/lib/hx509/ |
H A D | ks_keychain.c | 83 kc_rsa_public_encrypt(int flen, argument 93 kc_rsa_public_decrypt(int flen, argument 104 kc_rsa_private_encrypt(int flen, argument 140 in.Length = flen; 159 kc_rsa_private_decrypt(int flen, const unsigned char *from, unsigned char *to, argument 199 in.Length = flen;
|
/freebsd-10-stable/bin/ls/ |
H A D | ls.c | 583 size_t flen, ulen, glen; local 592 flen = 0; 744 flen = strlen(flags); 745 if (flen > (size_t)maxflags) 746 maxflags = flen; 748 flen = 0; 805 ulen + glen + flen + 4)) == NULL) 828 + (f_flags ? flen + 1 : 0)];
|