Lines Matching refs:ibuf
127 const char *ibuf, in mbedtls_test_unhexify() argument
132 *len = strlen( ibuf ); in mbedtls_test_unhexify()
142 while( *ibuf != 0 ) in mbedtls_test_unhexify()
144 if ( ascii2uc( *(ibuf++), &uc ) != 0 ) in mbedtls_test_unhexify()
147 if ( ascii2uc( *(ibuf++), &uc2 ) != 0 ) in mbedtls_test_unhexify()
157 const unsigned char *ibuf, in mbedtls_test_hexify() argument
164 h = *ibuf / 16; in mbedtls_test_hexify()
165 l = *ibuf % 16; in mbedtls_test_hexify()
177 ++ibuf; in mbedtls_test_hexify()
195 unsigned char *mbedtls_test_unhexify_alloc( const char *ibuf, size_t *olen ) in mbedtls_test_unhexify_alloc() argument
200 *olen = strlen( ibuf ) / 2; in mbedtls_test_unhexify_alloc()
207 TEST_HELPER_ASSERT( mbedtls_test_unhexify( obuf, *olen, ibuf, &len ) == 0 ); in mbedtls_test_unhexify_alloc()