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];
Interface for one direction (encryption or decryption) of a block cipher.
Provides a base implementation of Algorithm and SimpleKeyingInterface for block ciphers.
Inherited by algorithms with fixed block size.
Inherited by keyed algorithms with fixed key length.
Interface for retrieving values given their names.
SHARK block cipher SHARK-E
Inherited by algorithms with variable number of rounds.
Library configuration file.
unsigned long long word64
64-bit unsigned datatype
Crypto++ library namespace.
Classes and functions for secure memory allocations.
Classes and functions for implementing secret key algorithms.
Provides Encryption and Decryption typedefs used by derived classes to implement a block cipher.
SHARK block cipher information.