summaryrefslogtreecommitdiff
path: root/speck.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-11-26 23:51:05 -0500
committerJeffrey Walton <noloader@gmail.com>2017-11-26 23:51:05 -0500
commit7576cca8d20a8a7f1e461c1d3570a61887b4ef23 (patch)
tree5eada0bef63623696c0d8750ae609ff4c842b34b /speck.h
parent84fdcbf38442083d1332fc863eabc450bf13d6f6 (diff)
downloadcryptopp-git-7576cca8d20a8a7f1e461c1d3570a61887b4ef23.tar.gz
Switch to 'L' for blocksize in SPECK_Info
Diffstat (limited to 'speck.h')
-rw-r--r--speck.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/speck.h b/speck.h
index 95784768..108c82ec 100644
--- a/speck.h
+++ b/speck.h
@@ -24,18 +24,18 @@ NAMESPACE_BEGIN(CryptoPP)
//! \class SPECK_Info
//! \brief SPECK block cipher information
-//! \tparam BS block size of the cipher, in bytes
+//! \tparam L block size of the cipher, in bytes
//! \tparam D default key length, in bytes
//! \tparam N minimum key length, in bytes
//! \tparam M maximum key length, in bytes
//! \since Crypto++ 6.0
-template <unsigned int BS, unsigned int D, unsigned int N, unsigned int M>
-struct SPECK_Info : public FixedBlockSize<BS>, VariableKeyLength<D, N, M>
+template <unsigned int L, unsigned int D, unsigned int N, unsigned int M>
+struct SPECK_Info : public FixedBlockSize<L>, VariableKeyLength<D, N, M>
{
static const std::string StaticAlgorithmName()
{
// Format is Cipher-Blocksize(Keylength)
- return "SPECK-" + IntToString(BS*8);
+ return "SPECK-" + IntToString(L*8);
}
};