diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-12-01 10:39:43 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2019-12-01 10:39:43 -0500 |
commit | 90d957c09b6c19027ce96288c42e70fee32b3621 (patch) | |
tree | 6f42ab94268e88d7445fd7da61b29a9cea181f04 /tiger.h | |
parent | 49de1806787830f7518c6cad41a41178b6eda26a (diff) | |
download | cryptopp-git-90d957c09b6c19027ce96288c42e70fee32b3621.tar.gz |
Update documentation
Diffstat (limited to 'tiger.h')
-rw-r--r-- | tiger.h | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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];
|