Crypto++
5.6.4
Free C++ class library of cryptographic schemes
|
Go to the documentation of this file.
6 #ifndef CRYPTOPP_CAST_H
7 #define CRYPTOPP_CAST_H
19 static const word32 S[8][256];
26 CRYPTOPP_CONSTEXPR
static const char *StaticAlgorithmName() {
return "CAST-128";}
39 void UncheckedSetKey(
const byte *userKey,
unsigned int length,
const NameValuePairs ¶ms);
48 class CRYPTOPP_NO_VTABLE Enc :
public Base
51 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock,
byte *outBlock)
const;
56 class CRYPTOPP_NO_VTABLE Dec :
public Base
59 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock,
byte *outBlock)
const;
71 CRYPTOPP_CONSTEXPR
static const char *StaticAlgorithmName() {
return "CAST-256";}
84 void UncheckedSetKey(
const byte *userKey,
unsigned int length,
const NameValuePairs ¶ms);
85 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock,
byte *outBlock)
const;
88 static const word32 t_m[8][24];
89 static const unsigned int t_r[8][24];
91 static void Omega(
int i, word32 kappa[8]);
CAST256 block cipher information.
CAST128 block cipher information.
Classes and functions for secure memory allocations.
Inherited by algorithms with fixed block size.
Provides a base implementation of Algorithm and SimpleKeyingInterface for block ciphers.
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.
Interface for retrieving values given their names.
Inherited by keyed algorithms with variable key length.