summaryrefslogtreecommitdiff
path: root/keccak.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-09-09 04:45:20 -0400
committerJeffrey Walton <noloader@gmail.com>2016-09-09 04:45:20 -0400
commitb7300a96ae9832a6f0369b4e7ec27221b950b849 (patch)
treeafaffe744ed76a2295b853f0314a6f9cfddb5fb2 /keccak.h
parent24cbd7c451633dc18415c0ab6b51089d161ac8d3 (diff)
downloadcryptopp-git-b7300a96ae9832a6f0369b4e7ec27221b950b849.tar.gz
Updated documentation
Diffstat (limited to 'keccak.h')
-rw-r--r--keccak.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/keccak.h b/keccak.h
index a5f4193a..4c8c3457 100644
--- a/keccak.h
+++ b/keccak.h
@@ -2,6 +2,13 @@
//! \file keccak.h
//! \brief Classes for Keccak message digests
+//! \details The Keccak classes use F1600 and XOF byte 0x80, which is effectively
+//! the behavior specified by NIST at round three of the selection process. If you
+//! desire FIPS 202 behavior, then use SHA3 classes.
+//! \details Keccak will likely change in the future to accomodate extensibility of the
+//! round function and the XOF functions.
+//! \details Perform the following to specify a different digest size. It will use F1600 and 0x80.
+//! <pre>Keccack_192 : public Keccack
//! \sa <a href="http://en.wikipedia.org/wiki/Keccak">Keccak</a>
#ifndef CRYPTOPP_KECCAK_H
@@ -14,6 +21,21 @@ NAMESPACE_BEGIN(CryptoPP)
//! \class Keccak
//! \brief Keccak message digest base class
+//! \details The Keccak classes use F1600 and XOF byte 0x80, which is effectively
+//! the behavior specified by NIST at round three of the selection process. If you
+//! desire FIPS 202 behavior, then use SHA3 classes.
+//! \details Keccak will likely change in the future to accomodate extensibility of the
+//! round function and the XOF functions.
+//! \details Perform the following to specify a different digest size. The class will use F1600, 0x80,
+//! and a new vaue for <tt>r()</tt> (which will be <tt>200-2*24 = 152</tt>).
+//! <pre>Keccack_192 : public Keccack
+//! {
+//! public:
+//! CRYPTOPP_CONSTANT(DIGESTSIZE = 24)
+//! Keccack_192() : Keccack(DIGESTSIZE) {}
+//! };
+//! </pre>
+//!
class Keccak : public HashTransformation
{
public: