summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-05-29 17:04:48 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-05-29 23:08:53 +0200
commit520af047f5b84c92202e3f42f49281f37034d1c0 (patch)
tree51a095c4803b932a48d878d9c17df0f7f8b9f788 /src
parent340499ced801532f7e1153414a94c8cb1efb161f (diff)
curve25519: x86_64: make symbol static
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src')
-rw-r--r--src/crypto/curve25519-x86_64.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crypto/curve25519-x86_64.h b/src/crypto/curve25519-x86_64.h
index 4e3f9f8..a4c958a 100644
--- a/src/crypto/curve25519-x86_64.h
+++ b/src/crypto/curve25519-x86_64.h
@@ -890,7 +890,7 @@ static void sqr2_256x256_integer_bmi2(u64 *const c, const u64 *const a)
: "memory", "cc", "%rax", "%rcx", "%rdx", "%r8", "%r9", "%r10", "%r11", "%r12", "%r13", "%r14");
}
-void red_eltfp25519_2w_adx(u64 *const c, const u64 *const a)
+static void red_eltfp25519_2w_adx(u64 *const c, const u64 *const a)
{
asm volatile(
"movl $38, %%edx; " /* 2*c = 38 = 2^256 */
@@ -956,7 +956,7 @@ void red_eltfp25519_2w_adx(u64 *const c, const u64 *const a)
: "memory", "cc", "%rax", "%rbx", "%rcx", "%rdx", "%r8", "%r9", "%r10", "%r11");
}
-void red_eltfp25519_2w_bmi2(u64 *const c, const u64 *const a)
+static void red_eltfp25519_2w_bmi2(u64 *const c, const u64 *const a)
{
asm volatile(
"movl $38, %%edx ; " /* 2*c = 38 = 2^256 */