diff options
author | Jeffrey Walton <noloader@gmail.com> | 2017-11-26 23:51:05 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2017-11-26 23:51:05 -0500 |
commit | 7576cca8d20a8a7f1e461c1d3570a61887b4ef23 (patch) | |
tree | 5eada0bef63623696c0d8750ae609ff4c842b34b /speck.h | |
parent | 84fdcbf38442083d1332fc863eabc450bf13d6f6 (diff) | |
download | cryptopp-git-7576cca8d20a8a7f1e461c1d3570a61887b4ef23.tar.gz |
Switch to 'L' for blocksize in SPECK_Info
Diffstat (limited to 'speck.h')
-rw-r--r-- | speck.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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);
}
};
|