Lines Matching refs:i
80 size_t i, n; in mbedtls_base64_encode() local
108 for( i = 0, p = dst; i < n; i += 3 ) in mbedtls_base64_encode()
120 if( i < slen ) in mbedtls_base64_encode()
123 C2 = ( ( i + 1 ) < slen ) ? *src++ : 0; in mbedtls_base64_encode()
128 if( ( i + 1 ) < slen ) in mbedtls_base64_encode()
147 size_t i, n; in mbedtls_base64_decode() local
152 for( i = n = j = 0; i < slen; i++ ) in mbedtls_base64_decode()
156 while( i < slen && src[i] == ' ' ) in mbedtls_base64_decode()
158 ++i; in mbedtls_base64_decode()
163 if( i == slen ) in mbedtls_base64_decode()
166 if( ( slen - i ) >= 2 && in mbedtls_base64_decode()
167 src[i] == '\r' && src[i + 1] == '\n' ) in mbedtls_base64_decode()
170 if( src[i] == '\n' ) in mbedtls_base64_decode()
177 if( src[i] == '=' && ++j > 2 ) in mbedtls_base64_decode()
180 if( src[i] > 127 || base64_dec_map[src[i]] == 127 ) in mbedtls_base64_decode()
183 if( base64_dec_map[src[i]] < 64 && j != 0 ) in mbedtls_base64_decode()
204 for( j = 3, n = x = 0, p = dst; i > 0; i--, src++ ) in mbedtls_base64_decode()