OSDN Git Service
(root)
/
slunkcrypt
/
SlunkCrypt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
469981b
)
VS2010 compile fix.
author
LoRd_MuldeR
<mulder2@gmx.de>
Fri, 2 Apr 2021 18:04:30 +0000
(20:04 +0200)
committer
LoRd_MuldeR
<mulder2@gmx.de>
Fri, 2 Apr 2021 18:04:30 +0000
(20:04 +0200)
libslunkcrypt/src/slunkcrypt.c
patch
|
blob
|
history
diff --git
a/libslunkcrypt/src/slunkcrypt.c
b/libslunkcrypt/src/slunkcrypt.c
index
d51eb58
..
4cdc647
100644
(file)
--- a/
libslunkcrypt/src/slunkcrypt.c
+++ b/
libslunkcrypt/src/slunkcrypt.c
@@
-223,10
+223,11
@@
static int initialize_state(crypt_state_t *const state, const uint64_t nonce, co
{
uint8_t temp[256U][256U];
size_t r, i;
+ const int reverse = BOOLIFY(mode);
/* initialize state */
slunkcrypt_bzero(state, sizeof(crypt_state_t));
-
const int reverse = state->reverse_mode = BOOLIFY(mode)
;
+
state->reverse_mode = reverse
;
/* set up the wheel permutations */
for (r = 0U; r < 256U; ++r)