From 2ec3b4dfc24e8ce4ba28b133b86afc532a7566d7 Mon Sep 17 00:00:00 2001 From: orignal Date: Mon, 8 May 2017 11:56:45 -0400 Subject: [PATCH] non const K --- gost/cuda_gosthash.cu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gost/cuda_gosthash.cu b/gost/cuda_gosthash.cu index e3e761c..e4807bd 100644 --- a/gost/cuda_gosthash.cu +++ b/gost/cuda_gosthash.cu @@ -684,7 +684,7 @@ static void GOST_F(uint64_t* state) __device__ -static void GOST_E12(uint64_t* const K, uint64_t *state) +static void GOST_E12(uint64_t* K, uint64_t *state) { uint64_t state1[8], K1[8]; GOST_Copy512(K1, K); @@ -699,7 +699,7 @@ static void GOST_E12(uint64_t* const K, uint64_t *state) } __device__ -void GOST_E(uint64_t* const K, uint64_t* const m, uint64_t *state /* out only */) +void GOST_E(uint64_t* K, uint64_t* const m, uint64_t *state /* out only */) { GOST_Xor512(state, m, K); // state = m ^ K GOST_E12(K, state);