Lines Matching refs:slen
78 const unsigned char *src, size_t slen ) in mbedtls_base64_encode() argument
84 if( slen == 0 ) in mbedtls_base64_encode()
90 n = slen / 3 + ( slen % 3 != 0 ); in mbedtls_base64_encode()
106 n = ( slen / 3 ) * 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()
145 const unsigned char *src, size_t slen ) in mbedtls_base64_decode() argument
152 for( i = n = j = 0; i < slen; i++ ) in mbedtls_base64_decode()
156 while( i < slen && src[i] == ' ' ) in mbedtls_base64_decode()
163 if( i == slen ) in mbedtls_base64_decode()
166 if( ( slen - i ) >= 2 && in mbedtls_base64_decode()