Lines Matching refs:n
64 size_t i, n; in mbedtls_base64_encode() local
73 n = slen / 3 + (slen % 3 != 0); in mbedtls_base64_encode()
75 if (n > (SIZE_MAX - 1) / 4) { in mbedtls_base64_encode()
80 n *= 4; in mbedtls_base64_encode()
82 if ((dlen < n + 1) || (NULL == dst)) { in mbedtls_base64_encode()
83 *olen = n + 1; in mbedtls_base64_encode()
87 n = (slen / 3) * 3; in mbedtls_base64_encode()
89 for (i = 0, p = dst; i < n; i += 3) { in mbedtls_base64_encode()
132 size_t n; /* number of digits or trailing = in source */ in mbedtls_base64_decode() local
140 for (i = n = 0; i < slen; i++) { in mbedtls_base64_decode()
183 n++; in mbedtls_base64_decode()
186 if (n == 0) { in mbedtls_base64_decode()
195 n = (6 * (n >> 3)) + ((6 * (n & 0x7) + 7) >> 3); in mbedtls_base64_decode()
196 n -= equals; in mbedtls_base64_decode()
198 if (dst == NULL || dlen < n) { in mbedtls_base64_decode()
199 *olen = n; in mbedtls_base64_decode()