Mercurial > dropbear
diff libtomcrypt/src/hashes/helper/hash_filehandle.c @ 1710:1ff2a1034c52
Fix whitespace changes vs upstream libtomcrypt
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 10 Jun 2020 23:01:33 +0800 |
parents | 6dba84798cd5 |
children |
line wrap: on
line diff
--- a/libtomcrypt/src/hashes/helper/hash_filehandle.c Sun May 31 21:10:43 2020 +0500 +++ b/libtomcrypt/src/hashes/helper/hash_filehandle.c Wed Jun 10 23:01:33 2020 +0800 @@ -14,13 +14,13 @@ Hash open files, Tom St Denis */ -/** - Hash data from an open file handle. +/** + Hash data from an open file handle. @param hash The index of the hash you want to use @param in The FILE* handle of the file you want to hash @param out [out] The destination of the digest @param outlen [in/out] The max size and resulting size of the digest - @result CRYPT_OK if successful + @result CRYPT_OK if successful */ int hash_filehandle(int hash, FILE *in, unsigned char *out, unsigned long *outlen) { @@ -57,8 +57,8 @@ } } while (x == LTC_FILE_READ_BUFSIZE); if ((err = hash_descriptor[hash].done(&md, out)) == CRYPT_OK) { - *outlen = hash_descriptor[hash].hashsize; - } + *outlen = hash_descriptor[hash].hashsize; + } LBL_CLEANBUF: zeromem(buf, LTC_FILE_READ_BUFSIZE);