Lines Matching defs:Base64
1 /* $NetBSD: base64.c,v 1.1.1.2 2012/09/09 16:08:02 christos Exp $ */
46 static const char rcsid[] = "Id: base64.c,v 1.4 2005/04/27 04:56:34 sra Exp ";
69 static const char Base64[] =
86 of which is translated into a single digit in the base64 alphabet.
92 Table 1: The Base64 Alphabet
120 Since all base64 input is an integral number of octets, only the
160 target[datalength++] = Base64[output[0]];
161 target[datalength++] = Base64[output[1]];
162 target[datalength++] = Base64[output[2]];
163 target[datalength++] = Base64[output[3]];
182 target[datalength++] = Base64[output[0]];
183 target[datalength++] = Base64[output[1]];
187 target[datalength++] = Base64[output[2]];
221 pos = strchr(Base64, ch);
222 if (pos == 0) /*%< A non-base64 character. */
230 target[tarindex] = (pos - Base64) << 2;
238 target[tarindex] |= (pos - Base64) >> 4;
239 target[tarindex+1] = ((pos - Base64) & 0x0f)
249 target[tarindex] |= (pos - Base64) >> 2;
250 target[tarindex+1] = ((pos - Base64) & 0x03)
260 target[tarindex] |= (pos - Base64);