Security Scol plugin
hight.h
Go to the documentation of this file.
1// hight.h - written and placed in the public domain by Kim Sung Hee and Jeffrey Walton
2// Based on "HIGHT: A New Block Cipher Suitable for Low-Resource Device"
3// by Deukjo Hong, Jaechul Sung, Seokhie Hong, Jongin Lim, Sangjin Lee,
4// Bon-Seok Koo, Changhoon Lee, Donghoon Chang, Jesang Lee, Kitae Jeong,
5// Hyun Kim, Jongsung Kim, and Seongtaek Chee
6
10
11#ifndef CRYPTOPP_HIGHT_H
12#define CRYPTOPP_HIGHT_H
13
14#include "config.h"
15#include "seckey.h"
16#include "secblock.h"
17#include "algparam.h"
18
19NAMESPACE_BEGIN(CryptoPP)
20
21
23struct HIGHT_Info : public FixedBlockSize<8>, public FixedKeyLength<16>
24{
25 static const std::string StaticAlgorithmName()
26 {
27 // Format is Cipher-Blocksize
28 return "HIGHT";
29 }
30};
31
39class CRYPTOPP_NO_VTABLE HIGHT : public HIGHT_Info, public BlockCipherDocumentation
40{
41public:
45 class CRYPTOPP_NO_VTABLE Base : public BlockCipherImpl<HIGHT_Info>
46 {
47 protected:
48 void UncheckedSetKey(const byte *userKey, unsigned int keyLength, const NameValuePairs &params);
49
52 };
53
57 class CRYPTOPP_NO_VTABLE Enc : public Base
58 {
59 public:
60 void ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const;
61 };
62
66 class CRYPTOPP_NO_VTABLE Dec : public Base
67 {
68 public:
69 void ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const;
70 };
71
74};
75
78
79NAMESPACE_END
80
81#endif // CRYPTOPP_HIGHT_H
Classes for working with NameValuePairs.
Provides class member functions to key a block cipher.
Definition seckey.h:318
Provides a base implementation of Algorithm and SimpleKeyingInterface for block ciphers.
Definition seckey.h:306
Inherited by algorithms with fixed block size.
Definition seckey.h:41
Inherited by keyed algorithms with fixed key length.
Definition seckey.h:125
Fixed size stack-based SecBlock.
Definition secblock.h:1246
HIGHT block cipher transformation functions.
Definition hight.h:46
Decryption transformation.
Definition hight.h:67
Encryption transformation.
Definition hight.h:58
HIGHT 64-bit block cipher.
Definition hight.h:40
Interface for retrieving values given their names.
Definition cryptlib.h:322
Library configuration file.
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.
Definition seckey.h:399
BlockCipher Decryption
implements the BlockCipher interface
Definition seckey.h:403
BlockCipher Encryption
implements the BlockCipher interface
Definition seckey.h:401
HIGHT block cipher information.
Definition hight.h:24