Lines Matching refs:src

78                    const unsigned char *src, size_t slen )  in mbedtls_base64_encode()  argument
110 C1 = *src++; in mbedtls_base64_encode()
111 C2 = *src++; in mbedtls_base64_encode()
112 C3 = *src++; in mbedtls_base64_encode()
122 C1 = *src++; in mbedtls_base64_encode()
123 C2 = ( ( i + 1 ) < slen ) ? *src++ : 0; in mbedtls_base64_encode()
145 const unsigned char *src, size_t slen ) in mbedtls_base64_decode() argument
156 while( i < slen && src[i] == ' ' ) 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()
206 if( *src == '\r' || *src == '\n' || *src == ' ' ) in mbedtls_base64_decode()
209 j -= ( base64_dec_map[*src] == 64 ); in mbedtls_base64_decode()
210 x = ( x << 6 ) | ( base64_dec_map[*src] & 0x3F ); in mbedtls_base64_decode()
250 const unsigned char *src; in mbedtls_base64_self_test() local
256 src = base64_test_dec; in mbedtls_base64_self_test()
258 if( mbedtls_base64_encode( buffer, sizeof( buffer ), &len, src, 64 ) != 0 || in mbedtls_base64_self_test()
270 src = base64_test_enc; in mbedtls_base64_self_test()
272 if( mbedtls_base64_decode( buffer, sizeof( buffer ), &len, src, 88 ) != 0 || in mbedtls_base64_self_test()