diff options
author | weidai <weidai11@users.noreply.github.com> | 2009-03-03 03:28:39 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2009-03-03 03:28:39 +0000 |
commit | 8565900724e0cf4cf60ceeea62d97ff66763d477 (patch) | |
tree | bbbd178df43bdc71503320cd87f5ec0c84c9d494 /ccm.h | |
parent | 7d88bbd9edd5a084b34be61a933789412821db0d (diff) | |
download | cryptopp-git-8565900724e0cf4cf60ceeea62d97ff66763d477.tar.gz |
tweaks/fixes for 5.6
Diffstat (limited to 'ccm.h')
-rw-r--r-- | ccm.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -73,7 +73,7 @@ protected: };
//! .
-template <class T_BlockCipher, int T_DefaultDigestBitSize, bool T_IsEncryption>
+template <class T_BlockCipher, int T_DefaultDigestSize, bool T_IsEncryption>
class CCM_Final : public CCM_Base
{
public:
@@ -84,16 +84,16 @@ public: private:
BlockCipher & AccessBlockCipher() {return m_cipher;}
- int DefaultDigestSize() const {return T_DefaultDigestBitSize/8;}
+ int DefaultDigestSize() const {return T_DefaultDigestSize;}
typename T_BlockCipher::Encryption m_cipher;
};
/// <a href="http://www.cryptolounge.org/wiki/CCM">CCM</a>
-template <class T_BlockCipher, int T_DefaultDigestBitSize = 128>
+template <class T_BlockCipher, int T_DefaultDigestSize = 16>
struct CCM : public AuthenticatedSymmetricCipherDocumentation
{
- typedef CCM_Final<T_BlockCipher, T_DefaultDigestBitSize, true> Encryption;
- typedef CCM_Final<T_BlockCipher, T_DefaultDigestBitSize, false> Decryption;
+ typedef CCM_Final<T_BlockCipher, T_DefaultDigestSize, true> Encryption;
+ typedef CCM_Final<T_BlockCipher, T_DefaultDigestSize, false> Decryption;
};
NAMESPACE_END
|