Home
last modified time | relevance | path

Searched refs:cb64 (Results 1 – 1 of 1) sorted by relevance

/external/qemu/proxy/
Dproxy_common.c465 static const char cb64[64]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; in proxy_base64_encode() local
471 dst[result+0] = cb64[ src[0] >> 2 ]; in proxy_base64_encode()
472 dst[result+1] = cb64[ ((src[0] & 3) << 4) | ((src[1] & 0xf0) >> 4) ]; in proxy_base64_encode()
473 dst[result+2] = cb64[ ((src[1] & 0xf) << 2) | ((src[2] & 0xc0) >> 6) ]; in proxy_base64_encode()
474 dst[result+3] = cb64[ src[2] & 0x3f ]; in proxy_base64_encode()
489 dst[result+0] = cb64[ in[0] >> 2 ]; in proxy_base64_encode()
490 dst[result+1] = cb64[ ((in[0] & 3) << 4) | ((in[1] & 0xf0) >> 4) ]; in proxy_base64_encode()
491 …dst[result+2] = (unsigned char) (src+1 < srcend ? cb64[ ((in[1] & 0xf) << 2) | ((in[2] & 0xc0) >> … in proxy_base64_encode()
492 dst[result+3] = (unsigned char) (src+2 < srcend ? cb64[ in[2] & 0x3f ] : '='); in proxy_base64_encode()