aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/sha1.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/sha1.h')
-rw-r--r--src/crypto/sha1.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/crypto/sha1.h b/src/crypto/sha1.h
index 6efde78a5b..b16f2c88ce 100644
--- a/src/crypto/sha1.h
+++ b/src/crypto/sha1.h
@@ -16,9 +16,11 @@ private:
size_t bytes;
public:
+ static const size_t OUTPUT_SIZE = 20;
+
CSHA1();
CSHA1& Write(const unsigned char *data, size_t len);
- void Finalize(unsigned char *hash);
+ void Finalize(unsigned char hash[OUTPUT_SIZE]);
CSHA1& Reset();
};