aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-05-21 22:12:51 +1200
committerDavid Phillips <david@sighup.nz>2017-05-21 22:12:51 +1200
commit7e7bfa1752eba09045ccca13607d737195299545 (patch)
tree77c714551af23fac0e4665323055af03964b7104
parent790d08ae73c7c72342265404dd897e3c618253d7 (diff)
downloadsand-leek-7e7bfa1752eba09045ccca13607d737195299545.tar.xz
More avx->ssse3
-rw-r--r--onion_base32.c2
-rw-r--r--onion_base32.h2
-rw-r--r--sand-leek.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/onion_base32.c b/onion_base32.c
index e8f8df7..eff5097 100644
--- a/onion_base32.c
+++ b/onion_base32.c
@@ -46,7 +46,7 @@ onion_base32(char output[16], unsigned char sum[20]) {
* Somewhat inspired by http://www.alfredklomp.com/programming/sse-base64/
*/
void
-onion_base32_avx(char output[16], unsigned char sum[20]) {
+onion_base32_ssse3(char output[16], unsigned char sum[20]) {
__m128i res;
__m128i ssum;
__m128i masklow5;
diff --git a/onion_base32.h b/onion_base32.h
index ae28943..9377915 100644
--- a/onion_base32.h
+++ b/onion_base32.h
@@ -2,5 +2,5 @@ int check_base32(char *);
void onion_base32(char [16], unsigned char (*));
#ifdef SSSE3_ONION_BASE32
-void onion_base32_avx(char [16], unsigned char (*));
+void onion_base32_ssse3(char [16], unsigned char (*));
#endif
diff --git a/sand-leek.c b/sand-leek.c
index f0152c8..c6d5226 100644
--- a/sand-leek.c
+++ b/sand-leek.c
@@ -155,7 +155,7 @@ work(void *arg) {
SHA1_Final((unsigned char*)&sha, &working_sha_c);
#ifdef SSSE3_ONION_BASE32
- onion_base32_avx(onion, sha);
+ onion_base32_ssse3(onion, sha);
#else
onion_base32(onion, sha);
#endif