Fix warning with MD/SHA ALT implementation
backport of e217cee
see #239
diff --git a/library/md2.c b/library/md2.c
index 09487e9..548d89e 100644
--- a/library/md2.c
+++ b/library/md2.c
@@ -36,13 +36,13 @@
#include <stdio.h>
#endif
+#if !defined(POLARSSL_MD2_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_MD2_ALT)
-
static const unsigned char PI_SUBST[256] =
{
0x29, 0x2E, 0x43, 0xC9, 0xA2, 0xD8, 0x7C, 0x01, 0x3D, 0x36,