sha512: fix building on ARM
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Wed, 2 Oct 2013 12:59:59 +0000 (15:59 +0300)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Wed, 2 Oct 2013 12:59:59 +0000 (15:59 +0300)
* cipher/sha512.c (transform) [USE_ARM_NEON_ASM]: Fix 'hd' to 'ctx'.
--
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
cipher/sha512.c

index af30775..97fb203 100644 (file)
@@ -488,7 +488,7 @@ transform (void *context, const unsigned char *data)
   SHA512_CONTEXT *ctx = context;
 
 #ifdef USE_ARM_NEON_ASM
-  if (hd->use_neon)
+  if (ctx->use_neon)
     {
       _gcry_sha512_transform_armv7_neon(&ctx->state, data, k);