6 #ifndef CRYPTOPP_ARC4_H 7 #define CRYPTOPP_ARC4_H 26 static const char *StaticAlgorithmName() {
return "ARC4";}
31 void ProcessData(byte *outString,
const byte *inString,
size_t length);
41 void UncheckedSetKey(
const byte *key,
unsigned int length,
const NameValuePairs ¶ms);
42 virtual unsigned int GetDefaultDiscardBytes()
const {
return 0;}
58 static const char *StaticAlgorithmName() {
return "MARC4";}
64 unsigned int GetDefaultDiscardBytes()
const {
return 256;}
70 #if CRYPTOPP_ENABLE_NAMESPACE_WEAK >= 1 71 namespace Weak {
using namespace Weak1;}
73 using namespace Weak1;
75 #warning "You may be using a weak algorithm that has been retained for backwards compatibility. Please '#define CRYPTOPP_ENABLE_NAMESPACE_WEAK 1' before including this .h file and prepend the class name with 'Weak::' to remove this warning." 77 #pragma message("You may be using a weak algorithm that has been retained for backwards compatibility. Please '#define CRYPTOPP_ENABLE_NAMESPACE_WEAK 1' before including this .h file and prepend the class name with 'Weak::' to remove this warning.") bool IsRandomAccess() const
Determines whether the cipher supports random access.
virtual void GenerateBlock(byte *output, size_t size)
Generate random array of bytes.
Class specific methods used to operate the cipher.
Abstract base classes that provide a uniform interface to this library.
virtual void DiscardBytes(size_t n)
Generate and discard n bytes.
Classes for automatic resource management.
Interface for random number generators.
Classes and functions for secure memory allocations.
Interface for one direction (encryption or decryption) of a stream cipher or cipher mode...
Class specific methods used to operate the cipher.
bool IsForwardTransformation() const
Determines if the cipher is being operated in its forward direction.
SymmetricCipher Decryption
implements the SymmetricCipher interface
Inherited by keyed algorithms with variable key length.
Provides Encryption and Decryption typedefs used by derived classes to implement a symmetric cipher...
bool IsSelfInverting() const
Determines whether the cipher is self-inverting.
Crypto++ library namespace.
SymmetricCipher Encryption
implements the SymmetricCipher interface
Namespace containing weak and wounded algorithms.
Interface for retrieving values given their names.