Split tag handling out of cipher_finish()
diff --git a/programs/aes/crypt_and_hash.c b/programs/aes/crypt_and_hash.c
index c46713d..6caaad8 100644
--- a/programs/aes/crypt_and_hash.c
+++ b/programs/aes/crypt_and_hash.c
@@ -343,7 +343,7 @@
}
}
- if( cipher_finish( &cipher_ctx, output, &olen, NULL, 0 ) != 0 )
+ if( cipher_finish( &cipher_ctx, output, &olen ) != 0 )
{
fprintf( stderr, "cipher_finish() returned error\n" );
goto exit;
@@ -461,7 +461,7 @@
/*
* Write the final block of data
*/
- cipher_finish( &cipher_ctx, output, &olen, NULL, 0 );
+ cipher_finish( &cipher_ctx, output, &olen );
if( fwrite( output, 1, olen, fout ) != olen )
{