Crypto++  5.6.3
Free C++ class library of cryptographic schemes
seed.h
Go to the documentation of this file.
1 // seed.h - written and placed in the public domain by Wei Dai
2 
3 //! \file seed.h
4 //! \brief Classes for the SEED block cipher
5 
6 #ifndef CRYPTOPP_SEED_H
7 #define CRYPTOPP_SEED_H
8 
9 #include "seckey.h"
10 #include "secblock.h"
11 
12 NAMESPACE_BEGIN(CryptoPP)
13 
14 //! \class SEED_Info
15 //! \brief SEED block cipher information
16 struct SEED_Info : public FixedBlockSize<16>, public FixedKeyLength<16>, public FixedRounds<16>
17 {
18  static const char *StaticAlgorithmName() {return "SEED";}
19 };
20 
21 //! \class SEED
22 //! \brief SEED block cipher
23 //! \sa <a href="http://www.cryptolounge.org/wiki/SEED">SEED</a>
24 class SEED : public SEED_Info, public BlockCipherDocumentation
25 {
26  class CRYPTOPP_NO_VTABLE Base : public BlockCipherImpl<SEED_Info>
27  {
28  public:
29  void UncheckedSetKey(const byte *key, unsigned int length, const NameValuePairs &params);
30  void ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const;
31 
32  protected:
34  };
35 
36 public:
39 };
40 
41 NAMESPACE_END
42 
43 #endif
Inherited by keyed algorithms with fixed key length.
Definition: seckey.h:117
Provides Encryption and Decryption typedefs used by derived classes to implement a block cipher...
Definition: seckey.h:396
Interface for one direction (encryption or decryption) of a block cipher.
Definition: cryptlib.h:1091
Classes and functions for secure memory allocations.
Inherited by algorithms with fixed block size.
Definition: seckey.h:34
Classes and functions for implementing secret key algorithms.
Provides class member functions to key a block cipher.
Definition: seckey.h:316
SEED block cipher.
Definition: seed.h:24
Inherited by algorithms with fixed number of rounds.
Definition: seckey.h:47
SEED block cipher information.
Definition: seed.h:16
Provides a base implementation of Algorithm and SimpleKeyingInterface for block ciphers.
Definition: seckey.h:303
Crypto++ library namespace.
Interface for retrieving values given their names.
Definition: cryptlib.h:277