1 #ifndef CRYPTOPP_SQUARE_H
2 #define CRYPTOPP_SQUARE_H
10 NAMESPACE_BEGIN(CryptoPP)
15 static const char *StaticAlgorithmName() {
return "Square";}
24 void UncheckedSetKey(
const byte *userKey,
unsigned int length,
const NameValuePairs ¶ms);
30 class CRYPTOPP_NO_VTABLE Enc :
public Base
33 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
35 static const byte Se[256];
36 static const word32 Te[4][256];
39 class CRYPTOPP_NO_VTABLE Dec :
public Base
42 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
44 static const byte Sd[256];
45 static const word32 Td[4][256];
to be inherited by keyed algorithms with fixed key length
These objects usually should not be used directly. See CipherModeDocumentation instead.
interface for one direction (encryption or decryption) of a block cipher
to be inherited by block ciphers with fixed block size
to be inherited by ciphers with fixed number of rounds
interface for retrieving values given their names