Lines Matching +full:0 +full:x3f
22 #define BASE64_PAD BIT(0)
49 line_len = 0; in base64_gen_encode()
51 *pos++ = table[(in[0] >> 2) & 0x3f]; in base64_gen_encode()
52 *pos++ = table[(((in[0] & 0x03) << 4) | (in[1] >> 4)) & 0x3f]; in base64_gen_encode()
53 *pos++ = table[(((in[1] & 0x0f) << 2) | (in[2] >> 6)) & 0x3f]; in base64_gen_encode()
54 *pos++ = table[in[2] & 0x3f]; in base64_gen_encode()
59 line_len = 0; in base64_gen_encode()
64 *pos++ = table[(in[0] >> 2) & 0x3f]; in base64_gen_encode()
66 *pos++ = table[((in[0] & 0x03) << 4) & 0x3f]; in base64_gen_encode()
70 *pos++ = table[(((in[0] & 0x03) << 4) | in base64_gen_encode()
71 (in[1] >> 4)) & 0x3f]; in base64_gen_encode()
72 *pos++ = table[((in[1] & 0x0f) << 2) & 0x3f]; in base64_gen_encode()
82 *pos = '\0'; in base64_gen_encode()
94 int pad = 0; in base64_gen_decode()
97 os_memset(dtable, 0x80, 256); in base64_gen_decode()
98 for (i = 0; i < sizeof(base64_table) - 1; i++) in base64_gen_decode()
100 dtable['='] = 0; in base64_gen_decode()
102 count = 0; in base64_gen_decode()
103 for (i = 0; i < len; i++) { in base64_gen_decode()
104 if (dtable[(unsigned char) src[i]] != 0x80) in base64_gen_decode()
108 if (count == 0) in base64_gen_decode()
117 count = 0; in base64_gen_decode()
118 for (i = 0; i < len + extra_pad; i++) { in base64_gen_decode()
126 if (tmp == 0x80) in base64_gen_decode()
134 *pos++ = (block[0] << 2) | (block[1] >> 4); in base64_gen_decode()
137 count = 0; in base64_gen_decode()
185 return base64_gen_encode(src, len, out_len, base64_url_table, 0); in base64_url_encode()