summaryrefslogtreecommitdiff
path: root/sha3.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-02-12 23:52:19 -0500
committerJeffrey Walton <noloader@gmail.com>2019-02-12 23:52:19 -0500
commit8db6fe16b442178a867426e95b8e9fe17aac9d90 (patch)
tree22a77464f6f97c59a931d8592f1920c8ab5f0b69 /sha3.h
parent57465b5ae3065f2d42a8ac94776957acf1060b4c (diff)
downloadcryptopp-git-8db6fe16b442178a867426e95b8e9fe17aac9d90.tar.gz
Update documentation
Diffstat (limited to 'sha3.h')
-rw-r--r--sha3.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sha3.h b/sha3.h
index 46dd5b99..54ae5371 100644
--- a/sha3.h
+++ b/sha3.h
@@ -26,13 +26,15 @@ NAMESPACE_BEGIN(CryptoPP)
/// \since Crypto++ 5.6.2
class SHA3 : public HashTransformation
{
-public:
+protected:
/// \brief Construct a SHA3
/// \param digestSize the digest size, in bytes
/// \details SHA3 is the base class for SHA3_224, SHA3_256, SHA3_384 and SHA3_512.
/// Library users should instantiate a derived class, and only use SHA3
/// as a base class reference or pointer.
SHA3(unsigned int digestSize) : m_digestSize(digestSize) {Restart();}
+
+public:
unsigned int DigestSize() const {return m_digestSize;}
unsigned int OptimalDataAlignment() const {return GetAlignmentOf<word64>();}