mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-24 00:06:32 +01:00
- Updated to new rsa_init, rsa_gen_key prototypes
This commit is contained in:
parent
ebcef6d4e8
commit
a802e1ac10
7 changed files with 13 additions and 13 deletions
|
|
@ -264,8 +264,8 @@ int main( void )
|
|||
#endif
|
||||
|
||||
#if defined(POLARSSL_RSA_C)
|
||||
rsa_init( &rsa, RSA_PKCS_V15, 0, myrand, NULL );
|
||||
rsa_gen_key( &rsa, 1024, 65537 );
|
||||
rsa_init( &rsa, RSA_PKCS_V15, 0 );
|
||||
rsa_gen_key( &rsa, myrand, NULL, 1024, 65537 );
|
||||
|
||||
printf( " RSA-1024 : " );
|
||||
fflush( stdout );
|
||||
|
|
@ -293,8 +293,8 @@ int main( void )
|
|||
|
||||
rsa_free( &rsa );
|
||||
|
||||
rsa_init( &rsa, RSA_PKCS_V15, 0, myrand, NULL );
|
||||
rsa_gen_key( &rsa, 2048, 65537 );
|
||||
rsa_init( &rsa, RSA_PKCS_V15, 0 );
|
||||
rsa_gen_key( &rsa, myrand, NULL, 2048, 65537 );
|
||||
|
||||
printf( " RSA-2048 : " );
|
||||
fflush( stdout );
|
||||
|
|
@ -322,8 +322,8 @@ int main( void )
|
|||
|
||||
rsa_free( &rsa );
|
||||
|
||||
rsa_init( &rsa, RSA_PKCS_V15, 0, myrand, NULL );
|
||||
rsa_gen_key( &rsa, 4096, 65537 );
|
||||
rsa_init( &rsa, RSA_PKCS_V15, 0 );
|
||||
rsa_gen_key( &rsa, myrand, NULL, 4096, 65537 );
|
||||
|
||||
printf( " RSA-4096 : " );
|
||||
fflush( stdout );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue