summaryrefslogtreecommitdiff
path: root/speck.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-10-14 08:21:56 -0400
committerJeffrey Walton <noloader@gmail.com>2018-10-14 08:21:56 -0400
commit23279dcd459c785ab3c413dd6ca5746c19e5bee1 (patch)
tree33d08fad865dd66a7b9a5a67450d4fcae6beb83f /speck.h
parent7bd9ffcaca0c7a82b7b80569063bcfa07b26a067 (diff)
downloadcryptopp-git-23279dcd459c785ab3c413dd6ca5746c19e5bee1.tar.gz
Update documentation
Diffstat (limited to 'speck.h')
-rw-r--r--speck.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/speck.h b/speck.h
index 9e0b26d1..37dbce5d 100644
--- a/speck.h
+++ b/speck.h
@@ -47,6 +47,10 @@ NAMESPACE_BEGIN(CryptoPP)
template <unsigned int L, unsigned int D, unsigned int N, unsigned int M>
struct SPECK_Info : public FixedBlockSize<L>, VariableKeyLength<D, N, M>
{
+ /// \brief The algorithm name
+ /// \returns the algorithm name
+ /// \details StaticAlgorithmName returns the algorithm's name as a static
+ /// member function.
static const std::string StaticAlgorithmName()
{
// Format is Cipher-Blocksize(Keylength)
@@ -90,6 +94,10 @@ public:
class CRYPTOPP_NO_VTABLE Base : protected SPECK_Base<word32>, public BlockCipherImpl<SPECK_Info<8, 12, 12, 16> >
{
public:
+ /// \brief The algorithm name
+ /// \returns the algorithm name
+ /// \details AlgorithmName returns the algorithm's name as a
+ /// member function.
std::string AlgorithmName() const {
return StaticAlgorithmName() + (m_kwords == 0 ? "" :
"(" + IntToString(m_kwords*sizeof(word32)*8) + ")");
@@ -149,6 +157,10 @@ public:
class CRYPTOPP_NO_VTABLE Base : protected SPECK_Base<word64>, public BlockCipherImpl<SPECK_Info<16, 16, 16, 32> >
{
public:
+ /// \brief The algorithm name
+ /// \returns the algorithm name
+ /// \details AlgorithmName returns the algorithm's name as a
+ /// member function.
std::string AlgorithmName() const {
return StaticAlgorithmName() + (m_kwords == 0 ? "" :
"(" + IntToString(m_kwords*sizeof(word64)*8) + ")");