Lines Matching refs:n
80 size_t i, n; in mbedtls_base64_encode() local
90 n = slen / 3 + ( slen % 3 != 0 ); in mbedtls_base64_encode()
92 if( n > ( BASE64_SIZE_T_MAX - 1 ) / 4 ) in mbedtls_base64_encode()
98 n *= 4; in mbedtls_base64_encode()
100 if( ( dlen < n + 1 ) || ( NULL == dst ) ) in mbedtls_base64_encode()
102 *olen = n + 1; in mbedtls_base64_encode()
106 n = ( slen / 3 ) * 3; in mbedtls_base64_encode()
108 for( i = 0, p = dst; i < n; i += 3 ) 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()
186 n++; in mbedtls_base64_decode()
189 if( n == 0 ) in mbedtls_base64_decode()
195 n = ( ( n * 6 ) + 7 ) >> 3; in mbedtls_base64_decode()
196 n -= j; in mbedtls_base64_decode()
198 if( dst == NULL || dlen < n ) in mbedtls_base64_decode()
200 *olen = n; in mbedtls_base64_decode()
204 for( j = 3, n = x = 0, p = dst; i > 0; i--, src++ ) in mbedtls_base64_decode()
212 if( ++n == 4 ) in mbedtls_base64_decode()
214 n = 0; in mbedtls_base64_decode()