Split cipher_update_ad() out or cipher_reset()
diff --git a/programs/aes/crypt_and_hash.c b/programs/aes/crypt_and_hash.c
index 8ffdb9f..c46713d 100644
--- a/programs/aes/crypt_and_hash.c
+++ b/programs/aes/crypt_and_hash.c
@@ -311,7 +311,7 @@
fprintf( stderr, "cipher_set_iv() returned error\n");
goto exit;
}
- if( cipher_reset( &cipher_ctx, NULL, 0 ) != 0 )
+ if( cipher_reset( &cipher_ctx ) != 0 )
{
fprintf( stderr, "cipher_reset() returned error\n");
goto exit;
@@ -430,7 +430,7 @@
cipher_setkey( &cipher_ctx, digest, cipher_info->key_length,
POLARSSL_DECRYPT );
cipher_set_iv( &cipher_ctx, IV, 16 );
- cipher_reset( &cipher_ctx, NULL, 0 );
+ cipher_reset( &cipher_ctx );
md_hmac_starts( &md_ctx, digest, 32 );