mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-24 00:06:32 +01:00
Make hmac_ctx optional
Note from future self: actually md_init_ctx will be re-introduced with the same signature later, and a new function with the additional argument will be added.
This commit is contained in:
parent
dfb3dc8b53
commit
4063ceb281
16 changed files with 37 additions and 31 deletions
|
|
@ -101,7 +101,7 @@ int main( int argc, char *argv[] )
|
|||
aes_init( &aes_ctx );
|
||||
md_init( &sha_ctx );
|
||||
|
||||
ret = md_init_ctx( &sha_ctx, md_info_from_type( POLARSSL_MD_SHA256 ) );
|
||||
ret = md_init_ctx( &sha_ctx, md_info_from_type( POLARSSL_MD_SHA256 ), 1 );
|
||||
if( ret != 0 )
|
||||
{
|
||||
polarssl_printf( " ! md_init_ctx() returned -0x%04x\n", -ret );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue