summaryrefslogtreecommitdiff
path: root/libtomcrypt/src/hashes/helper/hash_filehandle.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2020-06-26 21:07:34 +0800
committerMatt Johnston <matt@ucc.asn.au>2020-06-26 21:07:34 +0800
commit71b4ec569cb33a5dcd4abf50650ccd78e6d3b2dd (patch)
tree497adde943fd41206f8d263131b255dda1833ca1 /libtomcrypt/src/hashes/helper/hash_filehandle.c
parent3187f27fcd533b8d16feebba9090007c82725eff (diff)
parenteaf9be05d7d9de22f2ff936882874331fc2d1a0e (diff)
downloaddropbear-71b4ec569cb33a5dcd4abf50650ccd78e6d3b2dd.tar.gz
merge coverity from maincoverity
Diffstat (limited to 'libtomcrypt/src/hashes/helper/hash_filehandle.c')
-rw-r--r--libtomcrypt/src/hashes/helper/hash_filehandle.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libtomcrypt/src/hashes/helper/hash_filehandle.c b/libtomcrypt/src/hashes/helper/hash_filehandle.c
index 1d72f25..0e4d7a6 100644
--- a/libtomcrypt/src/hashes/helper/hash_filehandle.c
+++ b/libtomcrypt/src/hashes/helper/hash_filehandle.c
@@ -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 @@ int hash_filehandle(int hash, FILE *in, unsigned char *out, unsigned long *outle
}
} 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);