Lines Matching refs:inlen
122 int sasl_encode64(const char *_in, unsigned inlen, in sasl_encode64() argument
135 if (((inlen >0) && (in == NULL)) || _out == NULL) return SASL_BADPARAM; in sasl_encode64()
137 if ((inlen >0) && (in == NULL)) return SASL_BADPARAM; in sasl_encode64()
141 olen = (inlen + 2) / 3 * 4; in sasl_encode64()
151 while (inlen >= 3) { in sasl_encode64()
158 inlen -= 3; in sasl_encode64()
160 if (inlen > 0) { in sasl_encode64()
164 if (inlen > 1) oval |= in[1] >> 4; in sasl_encode64()
166 *out++ = (inlen < 2) ? '=' : basis_64[(in[1] << 2) & 0x3c]; in sasl_encode64()
189 int sasl_decode64(const char *in, unsigned inlen, in sasl_decode64() argument
206 for (lup=0;lup<inlen/4;lup++) in sasl_decode64()