Crypto++  5.6.5
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 //! \since Crypto++ 5.6.0
6 
7 #ifndef CRYPTOPP_SEED_H
8 #define CRYPTOPP_SEED_H
9 
10 #include "seckey.h"
11 #include "secblock.h"
12 
13 NAMESPACE_BEGIN(CryptoPP)
14 
15 //! \class SEED_Info
16 //! \brief SEED block cipher information
17 //! \since Crypto++ 5.6.0
18 struct SEED_Info : public FixedBlockSize<16>, public FixedKeyLength<16>, public FixedRounds<16>
19 {
20  CRYPTOPP_STATIC_CONSTEXPR const char* StaticAlgorithmName() {return "SEED";}
21 };
22 
23 //! \class SEED
24 //! \brief SEED block cipher
25 //! \sa <a href="http://www.cryptolounge.org/wiki/SEED">SEED</a>
26 //! \since Crypto++ 5.6.0
27 class SEED : public SEED_Info, public BlockCipherDocumentation
28 {
29  class CRYPTOPP_NO_VTABLE Base : public BlockCipherImpl<SEED_Info>
30  {
31  public:
32  void UncheckedSetKey(const byte *key, unsigned int length, const NameValuePairs &params);
33  void ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const;
34 
35  protected:
37  };
38 
39 public:
42 };
43 
44 NAMESPACE_END
45 
46 #endif
Inherited by keyed algorithms with fixed key length.
Definition: seckey.h:127
Provides Encryption and Decryption typedefs used by derived classes to implement a block cipher...
Definition: seckey.h:408
Interface for one direction (encryption or decryption) of a block cipher.
Definition: cryptlib.h:1095
Classes and functions for secure memory allocations.
Inherited by algorithms with fixed block size.
Definition: seckey.h:40
Classes and functions for implementing secret key algorithms.
Provides class member functions to key a block cipher.
Definition: seckey.h:324
SEED block cipher.
Definition: seed.h:27
Inherited by algorithms with fixed number of rounds.
Definition: seckey.h:53
SEED block cipher information.
Definition: seed.h:18
Provides a base implementation of Algorithm and SimpleKeyingInterface for block ciphers.
Definition: seckey.h:311
Crypto++ library namespace.
Interface for retrieving values given their names.
Definition: cryptlib.h:279