diff options
Diffstat (limited to 'src/crypto')
-rw-r--r-- | src/crypto/groestl.c | 3 | ||||
-rw-r--r-- | src/crypto/slow-hash.c | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/crypto/groestl.c b/src/crypto/groestl.c index e1c89cc3b..84bfb2947 100644 --- a/src/crypto/groestl.c +++ b/src/crypto/groestl.c @@ -204,10 +204,9 @@ static void OutputTransformation(hashState *ctx) { /* initialise context */ static void Init(hashState* ctx) { - int i = 0; /* allocate memory for state and data buffer */ - for(;i<(SIZE512/sizeof(uint32_t));i++) + for(unsigned i = 0; i < (SIZE512/sizeof(uint32_t)); i++) { ctx->chaining[i] = 0; } diff --git a/src/crypto/slow-hash.c b/src/crypto/slow-hash.c index 60699d4e6..679edf7f9 100644 --- a/src/crypto/slow-hash.c +++ b/src/crypto/slow-hash.c @@ -413,7 +413,6 @@ BOOL SetLockPagesPrivilege(HANDLE hProcess, BOOL bEnable) void slow_hash_allocate_state(void) { - int state = 0; if(hp_state != NULL) return; |