Crypto++
8.4
Free C++ class library of cryptographic schemes
|
Go to the documentation of this file.
7 #ifndef CRYPTOPP_SHARK_H
8 #define CRYPTOPP_SHARK_H
20 CRYPTOPP_STATIC_CONSTEXPR
const char* StaticAlgorithmName() {
return "SHARK-E";}
33 void UncheckedSetKey(
const byte *key,
unsigned int length,
const NameValuePairs ¶m);
36 unsigned int m_rounds;
42 class CRYPTOPP_NO_VTABLE Enc :
public Base
45 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock,
byte *outBlock)
const;
48 void InitForKeySetup();
51 static const byte sbox[256];
52 static const word64 cbox[8][256];
57 class CRYPTOPP_NO_VTABLE Dec :
public Base
60 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock,
byte *outBlock)
const;
63 static const byte sbox[256];
64 static const word64 cbox[8][256];
SHARK block cipher SHARK-E
Classes and functions for secure memory allocations.
unsigned long long word64
64-bit unsigned datatype
Inherited by algorithms with fixed block size.
SHARK block cipher information.
Provides a base implementation of Algorithm and SimpleKeyingInterface for block ciphers.
Inherited by keyed algorithms with fixed key length.
Provides Encryption and Decryption typedefs used by derived classes to implement a block cipher.
Classes and functions for implementing secret key algorithms.
Crypto++ library namespace.
Library configuration file.
Interface for one direction (encryption or decryption) of a block cipher.
Inherited by algorithms with variable number of rounds.
Interface for retrieving values given their names.