Lines Matching refs:base64
11 // ptrdiff_t Base64Unescape() - base64 decoder
12 // ptrdiff_t Base64Escape() - base64 encoder
13 // ptrdiff_t WebSafeBase64Unescape() - Google's variation of base64 decoder
14 // ptrdiff_t WebSafeBase64Escape() - Google's variation of base64 encoder
249 LOG(FATAL) << "This can't happen; base64 decoder state = " << state;
278 // static const char Base64[] =
285 // pos = strchr(Base64, j);
289 // idx = pos - Base64;
299 // where the value of "Base64[]" was replaced by one of the base-64 conversion
380 // Determine the size of the output string. Base64 encodes every 3 bytes into
382 // This is documented in the base64 RFC: http://tools.ietf.org/html/rfc3548
419 int szdest, const char* base64, bool do_padding) {
431 cur_dest[0] = base64[cur_src[0] >> 2];
432 cur_dest[1] = base64[((cur_src[0] & 0x03) << 4) + (cur_src[1] >> 4)];
433 cur_dest[2] = base64[((cur_src[1] & 0x0f) << 2) + (cur_src[2] >> 6)];
434 cur_dest[3] = base64[cur_src[2] & 0x3f];
450 cur_dest[0] = base64[cur_src[0] >> 2];
451 cur_dest[1] = base64[(cur_src[0] & 0x03) << 4];
464 cur_dest[0] = base64[cur_src[0] >> 2];
465 cur_dest[1] = base64[((cur_src[0] & 0x03) << 4) + (cur_src[1] >> 4)];
466 cur_dest[2] = base64[(cur_src[1] & 0x0f) << 2];
506 // Base64 encodes three bytes of input at a time. If the input is not
519 // Base64 encodes each three bytes of input into four bytes of output.