Lines Matching refs:c2
115 uint8_t c1, c2, c3, c4; in decode_base64() local
118 c2 = CHAR64(*(p + 1)); in decode_base64()
121 if (c1 == 255 || c2 == 255) in decode_base64()
124 *bp++ = (c1 << 2) | ((c2 & 0x30) >> 4); in decode_base64()
132 *bp++ = ((c2 & 0x0f) << 4) | ((c3 & 0x3c) >> 2); in decode_base64()
317 uint8_t c1, c2; in encode_base64() local
326 c2 = *p++; in encode_base64()
327 c1 |= (c2 >> 4) & 0x0f; in encode_base64()
329 c1 = (c2 & 0x0f) << 2; in encode_base64()
334 c2 = *p++; in encode_base64()
335 c1 |= (c2 >> 6) & 0x03; in encode_base64()
337 *bp++ = Base64Code[c2 & 0x3f]; in encode_base64()