Lines Matching refs:wscnt
79 static int memoutws(BIO *mem, char c, unsigned wscnt, unsigned llen, int *pos) in memoutws() argument
81 if (wscnt > 0 in memoutws()
82 && (test_random() % llen) < wscnt in memoutws()
94 int trunc, unsigned llen, unsigned wscnt, BIO *mem) in encode() argument
112 if (memoutws(mem, b64[v >> 18], wscnt, llen, &pos) == 0 in encode()
113 || memoutws(mem, b64[(v >> 12) & 0x3f], wscnt, llen, &pos) == 0 in encode()
114 || memoutws(mem, b64[(v >> 6) & 0x3f], wscnt, llen, &pos) == 0 in encode()
115 || memoutws(mem, b64[v & 0x3f], wscnt, llen, &pos) == 0) in encode()
125 if (memoutws(mem, b64[(v >> 10) & 0x3f], wscnt, llen, &pos) == 0 in encode()
126 || memoutws(mem, b64[(v >> 4) & 0x3f], wscnt, llen, &pos) == 0 in encode()
127 || memoutws(mem, b64[(v & 0xf) << 2], wscnt, llen, &pos) == 0 in encode()
128 || memoutws(mem, '=', wscnt, llen, &pos) == 0) in encode()
133 if (memoutws(mem, b64[v >> 2], wscnt, llen, &pos) == 0 in encode()
134 || memoutws(mem, b64[(v & 0x3) << 4], wscnt, llen, &pos) == 0 in encode()
135 || memoutws(mem, '=', wscnt, llen, &pos) == 0 in encode()
136 || memoutws(mem, '=', wscnt, llen, &pos) == 0) in encode()
141 if (memoutws(mem, 'A', wscnt, llen, &pos) == 0) in encode()
153 unsigned wscnt, char **out) in genb64() argument
167 || encode(buf, buflen, encoded, trunc, llen, wscnt, mem) <= 0 in genb64()
186 static int test_bio_base64_run(test_case *t, int llen, int wscnt) in test_bio_base64_run() argument
220 llen, wscnt, &encoded); in test_bio_base64_run()
313 unsigned *wscnt; in generic_case() local
317 for (wscnt = wscnts; *wscnt * 2 < *llen; ++wscnt) { in generic_case()
324 if (test_bio_base64_run(t, *llen + extra, *wscnt) != 0) in generic_case()
340 fprintf(stderr, ", wscount=%u", *wscnt); in generic_case()