Lines Matching refs:n
42 size_t i, n; in mbedtls_base64_encode() local
51 n = slen / 3 + (slen % 3 != 0); in mbedtls_base64_encode()
53 if (n > (BASE64_SIZE_T_MAX - 1) / 4) { in mbedtls_base64_encode()
58 n *= 4; in mbedtls_base64_encode()
60 if ((dlen < n + 1) || (NULL == dst)) { in mbedtls_base64_encode()
61 *olen = n + 1; in mbedtls_base64_encode()
65 n = (slen / 3) * 3; in mbedtls_base64_encode()
67 for (i = 0, p = dst; i < n; i += 3) { in mbedtls_base64_encode()
110 size_t n; /* number of digits or trailing = in source */ in mbedtls_base64_decode() local
118 for (i = n = 0; i < slen; i++) { in mbedtls_base64_decode()
161 n++; in mbedtls_base64_decode()
164 if (n == 0) { in mbedtls_base64_decode()
173 n = (6 * (n >> 3)) + ((6 * (n & 0x7) + 7) >> 3); in mbedtls_base64_decode()
174 n -= equals; in mbedtls_base64_decode()
176 if (dst == NULL || dlen < n) { in mbedtls_base64_decode()
177 *olen = n; in mbedtls_base64_decode()