summaryrefslogtreecommitdiff
path: root/ccm.h
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2009-03-03 03:28:39 +0000
committerweidai <weidai11@users.noreply.github.com>2009-03-03 03:28:39 +0000
commit8565900724e0cf4cf60ceeea62d97ff66763d477 (patch)
treebbbd178df43bdc71503320cd87f5ec0c84c9d494 /ccm.h
parent7d88bbd9edd5a084b34be61a933789412821db0d (diff)
downloadcryptopp-git-8565900724e0cf4cf60ceeea62d97ff66763d477.tar.gz
tweaks/fixes for 5.6
Diffstat (limited to 'ccm.h')
-rw-r--r--ccm.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/ccm.h b/ccm.h
index aa39dc00..e84b45cd 100644
--- a/ccm.h
+++ b/ccm.h
@@ -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