diff options
author | weidai <weidai11@users.noreply.github.com> | 2003-07-04 00:17:37 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2003-07-04 00:17:37 +0000 |
commit | f278895908e663a6a5a2c1f63e5523c5004f5d20 (patch) | |
tree | 0536d87e504a82920156c239bc5ae6aa43e70ebc /arc4.h | |
parent | e43f74604744291d3a99b8bfe81d94af4ba6abbd (diff) | |
download | cryptopp-git-f278895908e663a6a5a2c1f63e5523c5004f5d20.tar.gz |
create DLL version, fix GetNextIV() bug in CTR and OFB modes
Diffstat (limited to 'arc4.h')
-rw-r--r-- | arc4.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -23,8 +23,8 @@ public: bool IsSelfInverting() const {return true;} bool IsForwardTransformation() const {return true;} - typedef SymmetricCipherFinalTemplate<ARC4_Base> Encryption; - typedef SymmetricCipherFinalTemplate<ARC4_Base> Decryption; + typedef SymmetricCipherFinal<ARC4_Base> Encryption; + typedef SymmetricCipherFinal<ARC4_Base> Decryption; protected: void UncheckedSetKey(const NameValuePairs ¶ms, const byte *key, unsigned int length, const byte *iv); @@ -35,7 +35,7 @@ protected: }; //! . -typedef SymmetricCipherFinalTemplate<ARC4_Base> ARC4; +typedef SymmetricCipherFinal<ARC4_Base> ARC4; //! Modified ARC4: it discards the first 256 bytes of keystream which may be weaker than the rest /*! Use #MARC4 typedef rather than this class directly. */ @@ -44,15 +44,15 @@ class CRYPTOPP_NO_VTABLE MARC4_Base : public ARC4_Base public: static const char *StaticAlgorithmName() {return "MARC4";} - typedef SymmetricCipherFinalTemplate<MARC4_Base> Encryption; - typedef SymmetricCipherFinalTemplate<MARC4_Base> Decryption; + typedef SymmetricCipherFinal<MARC4_Base> Encryption; + typedef SymmetricCipherFinal<MARC4_Base> Decryption; protected: unsigned int GetDefaultDiscardBytes() const {return 256;} }; //! . -typedef SymmetricCipherFinalTemplate<MARC4_Base> MARC4; +typedef SymmetricCipherFinal<MARC4_Base> MARC4; NAMESPACE_END |