summaryrefslogtreecommitdiff
path: root/arc4.h
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2003-07-04 00:17:37 +0000
committerweidai <weidai11@users.noreply.github.com>2003-07-04 00:17:37 +0000
commitf278895908e663a6a5a2c1f63e5523c5004f5d20 (patch)
tree0536d87e504a82920156c239bc5ae6aa43e70ebc /arc4.h
parente43f74604744291d3a99b8bfe81d94af4ba6abbd (diff)
downloadcryptopp-git-f278895908e663a6a5a2c1f63e5523c5004f5d20.tar.gz
create DLL version, fix GetNextIV() bug in CTR and OFB modes
Diffstat (limited to 'arc4.h')
-rw-r--r--arc4.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/arc4.h b/arc4.h
index 7d592bae..0072a78a 100644
--- a/arc4.h
+++ b/arc4.h
@@ -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 &params, 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