Lines Matching defs:Base64
1 /* $OpenBSD: base64.c,v 1.8 2015/01/16 16:48:51 deraadt Exp $ */
58 static const char Base64[] =
75 of which is translated into a single digit in the base64 alphabet.
81 Table 1: The Base64 Alphabet
109 Since all base64 input is an integral number of octets, only the
150 target[datalength++] = Base64[output[0]];
151 target[datalength++] = Base64[output[1]];
152 target[datalength++] = Base64[output[2]];
153 target[datalength++] = Base64[output[3]];
169 target[datalength++] = Base64[output[0]];
170 target[datalength++] = Base64[output[1]];
174 target[datalength++] = Base64[output[2]];
209 pos = strchr(Base64, ch);
210 if (pos == 0) /* A non-base64 character. */
218 target[tarindex] = (pos - Base64) << 2;
226 target[tarindex] |= (pos - Base64) >> 4;
227 nextbyte = ((pos - Base64) & 0x0f) << 4;
240 target[tarindex] |= (pos - Base64) >> 2;
241 nextbyte = ((pos - Base64) & 0x03) << 6;
254 target[tarindex] |= (pos - Base64);