Lines Matching refs:len
195 size_t len; in base32hexmem() local
201 len = 8 * (l + 4) / 5; in base32hexmem()
204 len = 8 * l / 5; in base32hexmem()
208 len += 7; in base32hexmem()
211 len += 5; in base32hexmem()
214 len += 4; in base32hexmem()
217 len += 2; in base32hexmem()
222 z = r = malloc(len + 1); in base32hexmem()
305 size_t len; in unbase32hexmem() local
329 len = (l / 8) * 5; in unbase32hexmem()
333 len += 4; in unbase32hexmem()
336 len += 3; in unbase32hexmem()
339 len += 2; in unbase32hexmem()
342 len += 1; in unbase32hexmem()
350 z = r = malloc(len + 1); in unbase32hexmem()
516 *_len = len; in unbase32hexmem()
660 ssize_t len, avail, line, lines; in base64_append_width() local
662 len = base64mem(p, l, &x); in base64_append_width()
663 if (len <= 0) in base64_append_width()
664 return len; in base64_append_width()
666 lines = DIV_ROUND_UP(len, width); in base64_append_width()
678 for (line = 0, s = t + plen + 1, avail = len; line < lines; line++) { in base64_append_width()
755 size_t len; in unbase64mem_full() local
765 len = (l / 4) * 3 + (l % 4 != 0 ? (l % 4) - 1 : 0); in unbase64mem_full()
767 buf = malloc(len + 1); in unbase64mem_full()
863 explicit_bzero_safe(buf, len); in unbase64mem_full()