Commit 4b23a813 authored by Derek Buitenhuis's avatar Derek Buitenhuis

Merge commit '52385410'

* commit '52385410':
  des-test: Move a variable declaration to avoid an ifdef
Merged-by: 's avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
parents 8f540b86 52385410
......@@ -389,9 +389,6 @@ static int run_test(int cbc, int decrypt) {
int main(void) {
AVDES d;
int i;
#ifdef GENTABLES
int j;
#endif
uint64_t key[3];
uint64_t data;
uint64_t ct;
......@@ -429,6 +426,7 @@ int main(void) {
#ifdef GENTABLES
printf("static const uint32_t S_boxes_P_shuffle[8][64] = {\n");
for (i = 0; i < 8; i++) {
int j;
printf(" {");
for (j = 0; j < 64; j++) {
uint32_t v = S_boxes[i][j >> 1];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment