Lines Matching +full:render +full:- +full:max

16 	"0123456789"			/* 0 - 9 */
17 "abcdefghijklmnopqrstuvwxyz" /* 10 - 35 */
18 "ABCDEFGHIJKLMNOPQRSTUVWXYZ" /* 36 - 61 */
19 "_-" /* 62 - 63 */
24 [33 ... 46] = 1, /* '!' -> '.' */
26 [48 ... 127] = 1, /* '0' -> '~' */
31 * - the raw key should include the length in the two bytes at the front
32 * - the key may be up to 514 bytes in length (including the length word)
33 * - "base64" encode the strange keys, mapping 3 bytes of raw to four of
35 * - need to cut the cooked key into 252 char lengths (189 raw bytes)
42 int loop, len, max, seg, mark, print; in cachefiles_cook_key() local
57 /* if the path is usable ASCII, then we render it directly */ in cachefiles_cook_key()
58 max = keylen - 2; in cachefiles_cook_key()
59 max += 2; /* two base64'd length chars on the front */ in cachefiles_cook_key()
60 max += 5; /* @checksum/M */ in cachefiles_cook_key()
61 max += 3 * 2; /* maximum number of segment dividers (".../M") in cachefiles_cook_key()
64 max += 1; /* NUL on end */ in cachefiles_cook_key()
69 max = keylen * 4; in cachefiles_cook_key()
70 max += 5; /* @checksum/M */ in cachefiles_cook_key()
71 max += 3 * 2; /* maximum number of segment dividers (".../M") in cachefiles_cook_key()
74 max += 1; /* NUL on end */ in cachefiles_cook_key()
77 max += 1; /* 2nd NUL on end */ in cachefiles_cook_key()
79 _debug("max: %d", max); in cachefiles_cook_key()
81 key = kmalloc(max, GFP_KERNEL); in cachefiles_cook_key()
90 mark = len - 1; in cachefiles_cook_key()
102 for (loop = keylen; loop > 0; loop--) { in cachefiles_cook_key()
111 ASSERT(len < max); in cachefiles_cook_key()
121 for (loop = keylen; loop > 0; loop--) { in cachefiles_cook_key()
143 ASSERT(len < max); in cachefiles_cook_key()