| /netbsd/src/crypto/external/bsd/openssl/dist/crypto/rsa/ |
| D | rsa_pk1.c | 29 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 …]
|
| 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()
|
| 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 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 …]
|
| D | rsa_x931.c | 23 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()
|
| 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()
|
| D | rsa_meth.c | 107 (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()
|
| D | rsa_ossl.c | 21 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 …]
|
| D | rsa_local.h | 105 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);
|
| /netbsd/src/external/bsd/libarchive/dist/libarchive/test/ |
| D | test_ustar_filenames.c | 32 test_filename(const char *prefix, int dlen, int flen) in test_filename() argument 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() 104 if (flen >= 100) { in test_filename() 123 if (flen <= 100) { in test_filename() 126 failure("dlen=%d, flen=%d", dlen, flen); in test_filename() [all …]
|
| D | test_tar_filenames.c | 34 test_filename(const char *prefix, int dlen, int flen) in test_filename() argument 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() 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() [all …]
|
| /netbsd/src/usr.bin/rump_allserver/ |
| D | rump_allserver.c | 122 off_t flen; member 164 long long flen, foffset; in main() local 168 flen = foffset = 0; in main() 195 if (flen != 0) { in main() 208 flen = DSIZE_E; in main() 212 flen = strsuftoll("-d size", in main() 215 flen = strtoull(value, in main() 226 if (flen == DSIZE_E) { in main() 242 if (foffset != 0 || flen != 0) { in main() 287 (flen == 0 in main() [all …]
|
| /netbsd/src/crypto/external/bsd/heimdal/dist/lib/hcrypto/ |
| D | rsa-gmp.c | 121 gmp_rsa_public_encrypt(int flen, const unsigned char* from, in gmp_rsa_public_encrypt() argument 133 if (size < RSA_PKCS1_PADDING_SIZE || size - RSA_PKCS1_PADDING_SIZE < flen) in gmp_rsa_public_encrypt() 146 padlen = size - flen - 3; in gmp_rsa_public_encrypt() 163 memcpy(p, from, flen); in gmp_rsa_public_encrypt() 164 p += flen; in gmp_rsa_public_encrypt() 189 gmp_rsa_public_decrypt(int flen, const unsigned char* from, in gmp_rsa_public_decrypt() argument 199 if (flen > RSA_size(rsa)) in gmp_rsa_public_decrypt() 216 mpz_import(s, flen, 1, 1, 1, 0, rk_UNCONST(from)); in gmp_rsa_public_decrypt() 256 gmp_rsa_private_encrypt(int flen, const unsigned char* from, in gmp_rsa_private_encrypt() argument 268 if (size < RSA_PKCS1_PADDING_SIZE || size - RSA_PKCS1_PADDING_SIZE < flen) in gmp_rsa_private_encrypt() [all …]
|
| D | rsa-tfm.c | 100 tfm_rsa_public_encrypt(int flen, const unsigned char* from, in tfm_rsa_public_encrypt() argument 113 if (size < RSA_PKCS1_PADDING_SIZE || size - RSA_PKCS1_PADDING_SIZE < flen) in tfm_rsa_public_encrypt() 125 padlen = size - flen - 3; in tfm_rsa_public_encrypt() 140 memcpy(p, from, flen); in tfm_rsa_public_encrypt() 141 p += flen; in tfm_rsa_public_encrypt() 168 tfm_rsa_public_decrypt(int flen, const unsigned char* from, in tfm_rsa_public_decrypt() argument 179 if (flen > RSA_size(rsa)) in tfm_rsa_public_decrypt() 194 fp_read_unsigned_bin(&s, rk_UNCONST(from), flen); in tfm_rsa_public_decrypt() 235 tfm_rsa_private_encrypt(int flen, const unsigned char* from, in tfm_rsa_private_encrypt() argument 248 if (size < RSA_PKCS1_PADDING_SIZE || size - RSA_PKCS1_PADDING_SIZE < flen) in tfm_rsa_private_encrypt() [all …]
|
| D | rsa-ltm.c | 142 ltm_rsa_public_encrypt(int flen, const unsigned char* from, in ltm_rsa_public_encrypt() argument 157 if (size < RSA_PKCS1_PADDING_SIZE || size - RSA_PKCS1_PADDING_SIZE < flen) { in ltm_rsa_public_encrypt() 176 padlen = size - flen - 3; in ltm_rsa_public_encrypt() 191 memcpy(p, from, flen); in ltm_rsa_public_encrypt() 192 p += flen; in ltm_rsa_public_encrypt() 220 ltm_rsa_public_decrypt(int flen, const unsigned char* from, in ltm_rsa_public_decrypt() argument 231 if (flen > RSA_size(rsa)) in ltm_rsa_public_decrypt() 244 mp_read_unsigned_bin(&s, rk_UNCONST(from), flen); in ltm_rsa_public_decrypt() 287 ltm_rsa_private_encrypt(int flen, const unsigned char* from, in ltm_rsa_private_encrypt() argument 305 if (size < RSA_PKCS1_PADDING_SIZE || size - RSA_PKCS1_PADDING_SIZE < flen) in ltm_rsa_private_encrypt() [all …]
|
| D | rsa.c | 315 name(int flen,const unsigned char* f, unsigned char* t, RSA* r, int p){\ 319 RSAFUNC(RSA_public_encrypt, (r)->meth->rsa_pub_enc(flen, f, t, r, p)) 320 RSAFUNC(RSA_public_decrypt, (r)->meth->rsa_pub_dec(flen, f, t, r, p)) 321 RSAFUNC(RSA_private_encrypt, (r)->meth->rsa_priv_enc(flen, f, t, r, p)) 322 RSAFUNC(RSA_private_decrypt, (r)->meth->rsa_priv_dec(flen, f, t, r, p)) 341 RSA_sign(int type, const unsigned char *from, unsigned int flen, in RSA_sign() argument 345 return rsa->meth->rsa_sign(type, from, flen, to, tlen, rsa); in RSA_sign() 365 di.digest.length = flen; in RSA_sign() 394 RSA_verify(int type, const unsigned char *from, unsigned int flen, in RSA_verify() argument 398 return rsa->meth->rsa_verify(type, from, flen, sigbuf, siglen, rsa); in RSA_verify() [all …]
|
| /netbsd/src/games/number/ |
| D | number.c | 128 size_t flen, len; in convert() local 132 flen = 0; in convert() 163 (fraction != NULL && (flen = strlen(fraction)) > MAXNUM)) in convert() 173 if (fraction != NULL && flen != 0) in convert() 180 if (unit(flen, fraction)) { in convert() 183 pfract(flen); in convert()
|
| /netbsd/src/external/gpl3/gdb/dist/gdb/ |
| D | riscv-linux-nat.c | 96 int flen = register_size (regcache->arch (), RISCV_FIRST_FP_REGNUM); in supply_fpregset_regnum() local 110 i++, fpbuf.buf += flen) in supply_fpregset_regnum() 117 fpbuf.buf += flen * (regnum - RISCV_FIRST_FP_REGNUM); in supply_fpregset_regnum() 122 fpbuf.buf += flen * (RISCV_LAST_FP_REGNUM - RISCV_FIRST_FP_REGNUM + 1); in supply_fpregset_regnum() 167 int flen = register_size (regcache->arch (), RISCV_FIRST_FP_REGNUM); in fill_fpregset() local 181 i++, fpbuf.buf += flen) in fill_fpregset() 188 fpbuf.buf += flen * (regnum - RISCV_FIRST_FP_REGNUM); in fill_fpregset() 193 fpbuf.buf += flen * (RISCV_LAST_FP_REGNUM - RISCV_FIRST_FP_REGNUM + 1); in fill_fpregset()
|
| /netbsd/src/external/bsd/ntp/dist/sntp/libopts/ |
| D | usage.c | 296 int flen; in print_usage_details() local 302 flen = setGnuOptFmts(opts, &pOptTitle); in print_usage_details() 303 sprintf(line_fmt_buf, zFmtFmt, flen); in print_usage_details() 307 flen = setStdOptFmts(opts, &pOptTitle); in print_usage_details() 308 sprintf(line_fmt_buf, zFmtFmt, flen); in print_usage_details() 321 flen = 4 - ((flen + 15) / 8); in print_usage_details() 322 if (flen > 0) in print_usage_details() 323 tab_skip_ct = flen; in print_usage_details() 1195 int flen = 22; in setGnuOptFmts() local 1221 flen = 8; in setGnuOptFmts() [all …]
|
| /netbsd/src/external/gpl3/gdb/dist/gdb/testsuite/gdb.arch/ |
| D | riscv-tdesc-regs.exp | 36 set flen [get_valueof "/d" "sizeof (\$fa0)" 0] 38 gdb_assert { $xlen != 0 && $flen != 0 } "read xlen and flen" 50 if { $flen != 1 && $flen != $xlen } {
|
| /netbsd/src/external/bsd/wpa/dist/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()
|
| /netbsd/src/usr.bin/stat/ |
| D | stat.c | 590 size_t flen = 0; in fmttime() local 606 flen = strlen(fmt) + 1024; in fmttime() 608 if ((fmt2 = calloc(flen, 1)) == NULL) { in fmttime() 619 if (flen > o) in fmttime() 622 if (flen < o + 10) { /* 9 digits + \0 == 10 */ in fmttime() 627 flen -= o; in fmttime() 628 sl = snprintf(f2p, flen, "%.9ld", nsecs); in fmttime() 633 flen -= sl; in fmttime() 639 if (flen > o) { in fmttime() 656 const char *fmt, int flen, in format1() argument [all …]
|
| /netbsd/src/crypto/external/bsd/netpgp/dist/src/librsa/ |
| D | rsa.h | 140 int RSA_public_encrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int paddin… 141 int RSA_private_decrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int paddi… 142 int RSA_private_encrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int paddi… 143 int RSA_public_decrypt(int flen, const uint8_t *from, uint8_t *to, RSA *rsa, int padding);
|
| /netbsd/src/external/bsd/file/dist/src/ |
| D | ascmagic.c | 89 bb.flen = trim_nuls(CAST(const unsigned char *, b->fbuf), b->flen); in file_ascmagic() 94 if ((bb.flen & 1) && !(b->flen & 1)) in file_ascmagic() 95 bb.flen++; in file_ascmagic() 117 size_t nbytes = b->flen; in file_ascmagic_with_encoding()
|
| /netbsd/src/lib/libpuffs/ |
| D | requests.c | 122 uint64_t flen; in puffs__fsframe_write() local 140 preq->preq_pth.pth_framelen = flen = preq->preq_buflen; in puffs__fsframe_write() 145 flen = phdr.pth_framelen; in puffs__fsframe_write() 154 howmuch = flen - puffs_framebuf_telloff(pb); in puffs__fsframe_write()
|
| /netbsd/src/usr.sbin/puffs/mount_9p/ |
| D | nineproto.c | 126 uint64_t flen; in proto_getstat() local 146 GETFIELD(p9pbuf_get_8, &flen, 8); in proto_getstat() 158 vap->va_size = vap->va_bytes = flen; in proto_getstat() 328 uint64_t flen; in proto_make_stat() local 353 flen = vap->va_size; in proto_make_stat() 355 flen = P9PROTO_STAT_NOVAL8; in proto_make_stat() 373 p9pbuf_put_8(pb, flen); in proto_make_stat()
|