Start working on mod_p224

(Prototype, works only on 32-bit and little-endian 64-bit.)
This commit is contained in:
Manuel Pégourié-Gonnard 2013-10-21 14:52:21 +02:00
parent cc67aee9c8
commit e783f06f73
3 changed files with 106 additions and 1 deletions

View file

@ -229,8 +229,9 @@ void ecp_fast_mod( int id, char *N_str )
mpi_init( &N ); mpi_init( &R );
ecp_group_init( &grp );
TEST_ASSERT( ecp_use_known_dp( &grp, id ) == 0 );
TEST_ASSERT( mpi_read_string( &N, 16, N_str ) == 0 );
TEST_ASSERT( ecp_use_known_dp( &grp, id ) == 0 );
TEST_ASSERT( grp.modp != NULL );
/*
* Store correct result before we touch N