3434#include <tests/api/test_wolfmath.h>
3535
3636/*
37- * Testing get_digit_count
37+ * Testing mp_get_digit_count
3838 */
39- int test_get_digit_count (void )
39+ int test_mp_get_digit_count (void )
4040{
4141 EXPECT_DECLS ;
4242#if !defined(WOLFSSL_SP_MATH ) && defined(WOLFSSL_PUBLIC_MP )
@@ -46,18 +46,18 @@ int test_get_digit_count(void)
4646
4747 ExpectIntEQ (mp_init (& a ), 0 );
4848
49- ExpectIntEQ (get_digit_count (NULL ), 0 );
50- ExpectIntEQ (get_digit_count (& a ), 0 );
49+ ExpectIntEQ (mp_get_digit_count (NULL ), 0 );
50+ ExpectIntEQ (mp_get_digit_count (& a ), 0 );
5151
5252 mp_clear (& a );
5353#endif
5454 return EXPECT_RESULT ();
5555} /* End test_get_digit_count */
5656
5757/*
58- * Testing get_digit
58+ * Testing mp_get_digit
5959 */
60- int test_get_digit (void )
60+ int test_mp_get_digit (void )
6161{
6262 EXPECT_DECLS ;
6363#if defined(WOLFSSL_PUBLIC_MP )
@@ -67,18 +67,18 @@ int test_get_digit(void)
6767 XMEMSET (& a , 0 , sizeof (mp_int ));
6868
6969 ExpectIntEQ (mp_init (& a ), MP_OKAY );
70- ExpectIntEQ (get_digit (NULL , n ), 0 );
71- ExpectIntEQ (get_digit (& a , n ), 0 );
70+ ExpectIntEQ (mp_get_digit (NULL , n ), 0 );
71+ ExpectIntEQ (mp_get_digit (& a , n ), 0 );
7272
7373 mp_clear (& a );
7474#endif
7575 return EXPECT_RESULT ();
7676} /* End test_get_digit */
7777
7878/*
79- * Testing get_rand_digit
79+ * Testing mp_get_rand_digit
8080 */
81- int test_get_rand_digit (void )
81+ int test_mp_get_rand_digit (void )
8282{
8383 EXPECT_DECLS ;
8484#if !defined(WC_NO_RNG ) && defined(WOLFSSL_PUBLIC_MP )
@@ -89,10 +89,10 @@ int test_get_rand_digit(void)
8989
9090 ExpectIntEQ (wc_InitRng (& rng ), 0 );
9191
92- ExpectIntEQ (get_rand_digit (& rng , & d ), 0 );
93- ExpectIntEQ (get_rand_digit (NULL , NULL ), WC_NO_ERR_TRACE (BAD_FUNC_ARG ));
94- ExpectIntEQ (get_rand_digit (NULL , & d ), WC_NO_ERR_TRACE (BAD_FUNC_ARG ));
95- ExpectIntEQ (get_rand_digit (& rng , NULL ), WC_NO_ERR_TRACE (BAD_FUNC_ARG ));
92+ ExpectIntEQ (mp_get_rand_digit (& rng , & d ), 0 );
93+ ExpectIntEQ (mp_get_rand_digit (NULL , NULL ), WC_NO_ERR_TRACE (BAD_FUNC_ARG ));
94+ ExpectIntEQ (mp_get_rand_digit (NULL , & d ), WC_NO_ERR_TRACE (BAD_FUNC_ARG ));
95+ ExpectIntEQ (mp_get_rand_digit (& rng , NULL ), WC_NO_ERR_TRACE (BAD_FUNC_ARG ));
9696
9797 DoExpectIntEQ (wc_FreeRng (& rng ), 0 );
9898#endif
0 commit comments