Browse Source

fix burn blake2b stack size.

Kelvin Sherlock 8 years ago
parent
commit
0f97bb7415
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/hashes/blake2b.c

+ 1 - 1
src/hashes/blake2b.c

@@ -302,7 +302,7 @@ static int blake2b_compress(hash_state *md, const unsigned char *buf)
 {
    int err;
    err = _blake2b_compress(md, buf);
-   burn_stack(sizeof(ulong32) * (32 + 2));
+   burn_stack(sizeof(ulong64) * (32 + 1));
    return err;
 }
 #endif