Lines Matching defs:in
32 mbase64_encode(string_t *dest, const unsigned char *in, size_t len)
36 str_append_c(dest, imap_b64enc[in[0] >> 2]);
37 str_append_c(dest, imap_b64enc[((in[0] & 3) << 4) |
38 (in[1] >> 4)]);
39 str_append_c(dest, imap_b64enc[((in[1] & 0x0f) << 2) |
40 ((in[2] & 0xc0) >> 6)]);
41 str_append_c(dest, imap_b64enc[in[2] & 0x3f]);
42 in += 3;
46 str_append_c(dest, imap_b64enc[in[0] >> 2]);
48 str_append_c(dest, imap_b64enc[(in[0] & 0x03) << 4]);
50 str_append_c(dest, imap_b64enc[((in[0] & 0x03) << 4) |
51 (in[1] >> 4)]);
52 str_append_c(dest, imap_b64enc[(in[1] & 0x0f) << 2]);
154 /* Encoded NUL isn't going to work in Dovecot code,
157 NUL in the string inconsistently. */