Update comments
parent
ccc1b71bc8
commit
069d85d3f8
15
hc128.cpp
15
hc128.cpp
|
|
@ -11,22 +11,19 @@
|
||||||
#include "secblock.h"
|
#include "secblock.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
|
|
||||||
#define u8 byte
|
|
||||||
#define u32 word32
|
|
||||||
|
|
||||||
/*h1 function*/
|
/*h1 function*/
|
||||||
#define h1(x, y) { \
|
#define h1(x, y) { \
|
||||||
u8 a,c; \
|
byte a,c; \
|
||||||
a = (u8) (x); \
|
a = (byte) (x); \
|
||||||
c = (u8) ((x) >> 16); \
|
c = (byte) ((x) >> 16); \
|
||||||
y = (m_T[512+a])+(m_T[512+256+c]); \
|
y = (m_T[512+a])+(m_T[512+256+c]); \
|
||||||
}
|
}
|
||||||
|
|
||||||
/*h2 function*/
|
/*h2 function*/
|
||||||
#define h2(x, y) { \
|
#define h2(x, y) { \
|
||||||
u8 a,c; \
|
byte a,c; \
|
||||||
a = (u8) (x); \
|
a = (byte) (x); \
|
||||||
c = (u8) ((x) >> 16); \
|
c = (byte) ((x) >> 16); \
|
||||||
y = (m_T[a])+(m_T[256+c]); \
|
y = (m_T[a])+(m_T[256+c]); \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
2
hc128.h
2
hc128.h
|
|
@ -51,7 +51,7 @@ private:
|
||||||
|
|
||||||
/// \brief HC-128 stream cipher
|
/// \brief HC-128 stream cipher
|
||||||
/// \details HC-128 is a stream cipher developed by Hongjun Wu. HC-128 is one of the
|
/// \details HC-128 is a stream cipher developed by Hongjun Wu. HC-128 is one of the
|
||||||
/// final four Profile 1 (software) ciphers selected for the eSTREAM Portfolio.
|
/// final four Profile 1 (software) ciphers selected for the eSTREAM portfolio.
|
||||||
/// \sa <A HREF="http://www.ecrypt.eu.org/stream/e2-hc128.html">The
|
/// \sa <A HREF="http://www.ecrypt.eu.org/stream/e2-hc128.html">The
|
||||||
/// eSTREAM Project | HC-128</A> and
|
/// eSTREAM Project | HC-128</A> and
|
||||||
/// <A HREF="https://www.cryptopp.com/wiki/HC-128">Crypto++ Wiki | HC-128</A>.
|
/// <A HREF="https://www.cryptopp.com/wiki/HC-128">Crypto++ Wiki | HC-128</A>.
|
||||||
|
|
|
||||||
4
rabbit.h
4
rabbit.h
|
|
@ -77,7 +77,7 @@ protected:
|
||||||
/// \brief Rabbit stream cipher
|
/// \brief Rabbit stream cipher
|
||||||
/// \details Rabbit is a stream cipher developed by Martin Boesgaard, Mette Vesterager,
|
/// \details Rabbit is a stream cipher developed by Martin Boesgaard, Mette Vesterager,
|
||||||
/// Thomas Pedersen, Jesper Christiansen and Ove Scavenius. Rabbit is one of the final four
|
/// Thomas Pedersen, Jesper Christiansen and Ove Scavenius. Rabbit is one of the final four
|
||||||
/// Profile 1 (software) ciphers selected for the eSTREAM Portfolio.
|
/// Profile 1 (software) ciphers selected for the eSTREAM portfolio.
|
||||||
/// \details Crypto++ provides Rabbit and RabbitWithIV classes. Two classes are necessary
|
/// \details Crypto++ provides Rabbit and RabbitWithIV classes. Two classes are necessary
|
||||||
/// because the library lacks the means to describe and manage optional IVs.
|
/// because the library lacks the means to describe and manage optional IVs.
|
||||||
/// \sa RabbitWithIV, <A HREF="http://www.ecrypt.eu.org/stream/e2-rabbit.html">The
|
/// \sa RabbitWithIV, <A HREF="http://www.ecrypt.eu.org/stream/e2-rabbit.html">The
|
||||||
|
|
@ -93,7 +93,7 @@ struct Rabbit : public RabbitInfo, public SymmetricCipherDocumentation
|
||||||
/// \brief Rabbit stream cipher
|
/// \brief Rabbit stream cipher
|
||||||
/// \details Rabbit is a stream cipher developed by Martin Boesgaard, Mette Vesterager,
|
/// \details Rabbit is a stream cipher developed by Martin Boesgaard, Mette Vesterager,
|
||||||
/// Thomas Pedersen, Jesper Christiansen and Ove Scavenius. Rabbit is one of the final four
|
/// Thomas Pedersen, Jesper Christiansen and Ove Scavenius. Rabbit is one of the final four
|
||||||
/// Profile 1 (software) ciphers selected for the eSTREAM Portfolio.
|
/// Profile 1 (software) ciphers selected for the eSTREAM portfolio.
|
||||||
/// \details Crypto++ provides Rabbit and RabbitWithIV classes. Two classes are necessary
|
/// \details Crypto++ provides Rabbit and RabbitWithIV classes. Two classes are necessary
|
||||||
/// because the library lacks the means to describe and manage optional IVs.
|
/// because the library lacks the means to describe and manage optional IVs.
|
||||||
/// \sa Rabbit, <A HREF="http://www.ecrypt.eu.org/stream/e2-rabbit.html">The
|
/// \sa Rabbit, <A HREF="http://www.ecrypt.eu.org/stream/e2-rabbit.html">The
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue