summaryrefslogtreecommitdiff
path: root/hc128.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-07-05 06:07:47 -0400
committerJeffrey Walton <noloader@gmail.com>2018-07-05 06:07:47 -0400
commit069d85d3f872974a7ed383ad4c8ddadb80f26fa9 (patch)
tree57001aef64b08a22ebe4bdaf0a5bd8af1438f135 /hc128.cpp
parentccc1b71bc88887b49cc7de4ec7fc660939e95750 (diff)
downloadcryptopp-git-069d85d3f872974a7ed383ad4c8ddadb80f26fa9.tar.gz
Update comments
Diffstat (limited to 'hc128.cpp')
-rw-r--r--hc128.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/hc128.cpp b/hc128.cpp
index 4d8759a6..0d0fb14c 100644
--- a/hc128.cpp
+++ b/hc128.cpp
@@ -11,22 +11,19 @@
#include "secblock.h"
#include "misc.h"
-#define u8 byte
-#define u32 word32
-
/*h1 function*/
#define h1(x, y) { \
- u8 a,c; \
- a = (u8) (x); \
- c = (u8) ((x) >> 16); \
+ byte a,c; \
+ a = (byte) (x); \
+ c = (byte) ((x) >> 16); \
y = (m_T[512+a])+(m_T[512+256+c]); \
}
/*h2 function*/
#define h2(x, y) { \
- u8 a,c; \
- a = (u8) (x); \
- c = (u8) ((x) >> 16); \
+ byte a,c; \
+ a = (byte) (x); \
+ c = (byte) ((x) >> 16); \
y = (m_T[a])+(m_T[256+c]); \
}