Fix warning with MD/SHA ALT implementation
backport of e217cee
see #239
diff --git a/library/sha2.c b/library/sha2.c
index b41bb23..7f9b220 100644
--- a/library/sha2.c
+++ b/library/sha2.c
@@ -35,13 +35,13 @@
#include <stdio.h>
#endif
+#if !defined(POLARSSL_SHA2_ALT)
+
/* Implementation that should never be optimized out by the compiler */
static void polarssl_zeroize( void *v, size_t n ) {
volatile unsigned char *p = v; while( n-- ) *p++ = 0;
}
-#if !defined(POLARSSL_SHA2_ALT)
-
/*
* 32-bit integer manipulation macros (big endian)
*/