Browse Source

fix error when compiling w/ LTC_CLEAN_STACK but w/o LTC_FAST

Steffen Jaeckel 8 years ago
parent
commit
8c1d55f4c0
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/encauth/ccm/ccm_memory.c

+ 2 - 0
src/encauth/ccm/ccm_memory.c

@@ -378,7 +378,9 @@ int ccm_memory(int cipher,
    }
 
 #ifdef LTC_CLEAN_STACK
+#ifdef LTC_FAST
    fastMask = 0;
+#endif
    mask = 0;
    zeromem(skey,   sizeof(*skey));
    zeromem(PAD,    sizeof(PAD));