- Addec crypt_and_hash example program of the generic hash and cipher layers

This commit is contained in:
Paul Bakker
2011-01-21 09:32:12 +00:00
parent 562535d11b
commit 20a7808d13
5 changed files with 476 additions and 3 deletions

View File

@@ -56,7 +56,7 @@ int main( int argc, char *argv[] )
{
int ret = 1, i, n;
int keylen, mode, lastn;
FILE *fkey, *fin, *fout;
FILE *fkey, *fin = NULL, *fout = NULL;
char *p;
unsigned char IV[16];
@@ -390,6 +390,8 @@ int main( int argc, char *argv[] )
ret = 0;
exit:
fclose( fin );
fclose( fout );
memset( buffer, 0, sizeof( buffer ) );
memset( digest, 0, sizeof( digest ) );