mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-24 00:06:32 +01:00
Fix endianness issue in test helper function
This commit is contained in:
parent
45a2c8d99a
commit
7446833626
3 changed files with 37 additions and 39 deletions
|
|
@ -1,5 +1,6 @@
|
|||
/* BEGIN_HEADER */
|
||||
#include <polarssl/ecdsa.h>
|
||||
#define WANT_NOT_RND_MPI
|
||||
/* END_HEADER */
|
||||
|
||||
/* BEGIN_DEPENDENCIES
|
||||
|
|
@ -63,7 +64,7 @@ void ecdsa_prim_test_vectors( int id, char *d_str, char *xQ_str, char *yQ_str,
|
|||
len = unhexify(buf, hash_str);
|
||||
|
||||
TEST_ASSERT( ecdsa_sign( &grp, &r, &s, &d, buf, len,
|
||||
¬_rnd, k_str ) == 0 );
|
||||
¬_rnd_mpi, k_str ) == 0 );
|
||||
|
||||
TEST_ASSERT( mpi_cmp_mpi( &r, &r_check ) == 0 );
|
||||
TEST_ASSERT( mpi_cmp_mpi( &s, &s_check ) == 0 );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue