Commit 0f5adc6c authored by Niels Möller's avatar Niels Möller

Fix arm fat setup for nettle_sha1_compress.

parent 3e1bd91e
......@@ -33,5 +33,5 @@ ifelse(<
dnl PROLOGUE(nettle_sha1_compress) picked up by configure
define(<fat_transform>, <$1_armv6>)
define(<fat_transform>, <_$1_armv6>)
include_src(<arm/v6/sha1-compress.asm>)
......@@ -191,7 +191,7 @@ fat_init (void)
fprintf (stderr, "libnettle: enabling armv6 code.\n");
_nettle_aes_encrypt_vec = _nettle_aes_encrypt_armv6;
_nettle_aes_decrypt_vec = _nettle_aes_decrypt_armv6;
_nettle_sha1_compress_vec = _nettle_sha1_compress_armv6;
nettle_sha1_compress_vec = _nettle_sha1_compress_armv6;
_nettle_sha256_compress_vec = _nettle_sha256_compress_armv6;
}
else
......@@ -200,7 +200,7 @@ fat_init (void)
fprintf (stderr, "libnettle: not enabling armv6 code.\n");
_nettle_aes_encrypt_vec = _nettle_aes_encrypt_arm;
_nettle_aes_decrypt_vec = _nettle_aes_decrypt_arm;
_nettle_sha1_compress_vec = _nettle_sha1_compress_c;
nettle_sha1_compress_vec = _nettle_sha1_compress_c;
_nettle_sha256_compress_vec = _nettle_sha256_compress_c;
}
if (features.have_neon)
......
......@@ -133,7 +133,7 @@
#if HAVE_NATIVE_sha1_compress
void
_nettle_sha1_compress_c(uint32_t *state, const uint8_t *input);
#define _nettle_sha1_compress _nettle_sha1_compress_c
#define nettle_sha1_compress _nettle_sha1_compress_c
#endif
/* Perform the SHA transformation. Note that this code, like MD5, seems to
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment