6 #ifndef CRYPTOPP_SKIPJACK_H
7 #define CRYPTOPP_SKIPJACK_H
12 NAMESPACE_BEGIN(CryptoPP)
18 CRYPTOPP_DLL
static const char * CRYPTOPP_API StaticAlgorithmName() {
return "SKIPJACK";}
28 class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE Base :
public BlockCipherImpl<SKIPJACK_Info>
31 void UncheckedSetKey(
const byte *userKey,
unsigned int length,
const NameValuePairs ¶ms);
32 unsigned int OptimalDataAlignment()
const {
return GetAlignmentOf<word16>();}
35 static const byte fTable[256];
42 class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE Enc :
public Base
45 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
47 static const byte Se[256];
48 static const word32 Te[4][256];
53 class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE Dec :
public Base
56 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
58 static const byte Sd[256];
59 static const word32 Td[4][256];
Inherited by keyed algorithms with fixed key length.
Provides Encryption and Decryption typedefs used by derived classes to implement a block cipher...
SKIPJACK block cipher information.
Interface for one direction (encryption or decryption) of a block cipher.
Classes and functions for secure memory allocations.
Inherited by algorithms with fixed block size.
Classes and functions for implementing secret key algorithms.
Provides a base implementation of Algorithm and SimpleKeyingInterface for block ciphers.
Interface for retrieving values given their names.