Lines Matching defs:base64
6469 /* Table includes the normal base64 chars plus the URL-safe variant. */
6535 jsondec_err(d, "Corrupt base64");
6543 * aliasing the input) and because base64 decoding shrinks 4 bytes into 3. */
7586 /* This is the regular base64, not the "web-safe" version. */
7587 static const char base64[] =
7596 buf[0] = base64[ptr[0] >> 2];
7597 buf[1] = base64[((ptr[0] & 0x3) << 4) | (ptr[1] >> 4)];
7598 buf[2] = base64[((ptr[1] & 0xf) << 2) | (ptr[2] >> 6)];
7599 buf[3] = base64[ptr[2] & 0x3f];
7606 buf[0] = base64[ptr[0] >> 2];
7607 buf[1] = base64[((ptr[0] & 0x3) << 4) | (ptr[1] >> 4)];
7608 buf[2] = base64[(ptr[1] & 0xf) << 2];
7613 buf[0] = base64[ptr[0] >> 2];
7614 buf[1] = base64[((ptr[0] & 0x3) << 4)];