summaryrefslogtreecommitdiff
path: root/tiger.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-12-01 10:39:43 -0500
committerJeffrey Walton <noloader@gmail.com>2019-12-01 10:39:43 -0500
commit90d957c09b6c19027ce96288c42e70fee32b3621 (patch)
tree6f42ab94268e88d7445fd7da61b29a9cea181f04 /tiger.h
parent49de1806787830f7518c6cad41a41178b6eda26a (diff)
downloadcryptopp-git-90d957c09b6c19027ce96288c42e70fee32b3621.tar.gz
Update documentation
Diffstat (limited to 'tiger.h')
-rw-r--r--tiger.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/tiger.h b/tiger.h
index a9f92e18..580d6ed6 100644
--- a/tiger.h
+++ b/tiger.h
@@ -38,9 +38,19 @@ public:
CRYPTOPP_STATIC_CONSTEXPR const char* StaticAlgorithmName() {return "Tiger";}
std::string AlgorithmProvider() const;
+ /// \brief Initialize state array
+ /// \param state the state of the hash
static void InitState(HashWordType *state);
+ /// \brief Operate the hash
+ /// \param digest the state of the hash
+ /// \param data the data to be digested
static void Transform(word64 *digest, const word64 *data);
- void TruncatedFinal(byte *hash, size_t size);
+ /// \brief Computes the hash of the current message
+ /// \param digest a pointer to the buffer to receive the hash
+ /// \param digestSize the size of the truncated digest, in bytes
+ /// \details TruncatedFinal() call Final() and then copies digestSize bytes to digest.
+ /// The hash is restarted the hash for the next message.
+ void TruncatedFinal(byte *digest, size_t digestSize);
protected:
static const word64 table[4*256+3];