mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-01-01 20:25:28 +01:00
Adapted programs / test suites to _init() and _free()
This commit is contained in:
parent
5b4af39a36
commit
14e8be4d33
3 changed files with 29 additions and 1 deletions
|
|
@ -94,6 +94,7 @@ int main( int argc, char *argv[] )
|
|||
#endif
|
||||
|
||||
aes_init( &aes_ctx );
|
||||
sha256_init( &sha_ctx );
|
||||
|
||||
/*
|
||||
* Parse the command-line arguments.
|
||||
|
|
@ -429,7 +430,7 @@ exit:
|
|||
memset( digest, 0, sizeof( digest ) );
|
||||
|
||||
aes_free( &aes_ctx );
|
||||
memset( &sha_ctx, 0, sizeof( sha256_context ) );
|
||||
sha256_free( &sha_ctx );
|
||||
|
||||
return( ret );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue