Lines Matching defs:key
26 * turn the raw key into something cooked
27 * - the raw key should include the length in the two bytes at the front
28 * - the key may be up to 514 bytes in length (including the length word)
31 * - need to cut the cooked key into 252 char lengths (189 raw bytes)
37 char *key;
62 /* calculate the maximum length of the cooked key */
77 key = kmalloc(max, cachefiles_gfp);
78 if (!key)
83 /* build the cooked key */
84 sprintf(key, "@%02x%c+", (unsigned) csum, 0);
92 key[len + 1] = cachefiles_charmap[acc & 63];
94 key[len] = cachefiles_charmap[acc & 63];
100 key[len++] = '\0';
102 key[len++] = '+';
106 key[len++] = *raw++;
119 key[len++] = '\0';
121 key[len++] = '+';
131 key[len++] = cachefiles_charmap[acc & 63];
133 key[len++] = cachefiles_charmap[acc & 63];
135 key[len++] = cachefiles_charmap[acc & 63];
137 key[len++] = cachefiles_charmap[acc & 63];
149 key[mark] = type;
150 key[len++] = 0;
151 key[len] = 0;
153 _leave(" = %p %d", key, len);
154 return key;