From 26e4cf479adc7c76d6c22b44f70e56b4113bcc44 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 22 Mar 2016 19:55:07 +0100 Subject: [PATCH] Reduce symbols visibility in curve25519_sandy2x --- .../crypto_scalarmult/curve25519/sandy2x/fe51_mul.S | 10 ++++++++-- .../curve25519/sandy2x/fe51_nsquare.S | 2 ++ .../crypto_scalarmult/curve25519/sandy2x/fe51_pack.S | 2 ++ .../crypto_scalarmult/curve25519/sandy2x/ladder.S | 2 ++ .../crypto_scalarmult/curve25519/sandy2x/ladder_base.S | 2 ++ 5 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_mul.S b/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_mul.S index 3b763788..4249db51 100644 --- a/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_mul.S +++ b/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_mul.S @@ -7,10 +7,16 @@ #include "consts_namespace.h" .text .p2align 5 -.globl _fe51_mul +.private_extern fe51_mul +.private_extern _fe51_mul .globl fe51_mul -_fe51_mul: +.globl _fe51_mul +#ifdef __ELF__ +.type fe51_mul, @function +.type _fe51_mul, @function +#endif fe51_mul: +_fe51_mul: mov %rsp,%r11 and $31,%r11 add $96,%r11 diff --git a/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_nsquare.S b/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_nsquare.S index 9b74ee3e..64ab2b5a 100644 --- a/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_nsquare.S +++ b/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_nsquare.S @@ -8,6 +8,8 @@ #include "consts_namespace.h" .p2align 5 +.private_extern fe51_nsquare +.private_extern _fe51_nsquare .globl fe51_nsquare .globl _fe51_nsquare #ifdef __ELF__ diff --git a/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_pack.S b/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_pack.S index c8cf405b..b6128ee3 100644 --- a/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_pack.S +++ b/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_pack.S @@ -8,6 +8,8 @@ #include "consts_namespace.h" .p2align 5 +.private_extern fe51_pack +.private_extern _fe51_pack .globl fe51_pack .globl _fe51_pack #ifdef __ELF__ diff --git a/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder.S b/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder.S index 0adc44af..abb8fd68 100644 --- a/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder.S +++ b/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder.S @@ -4,6 +4,8 @@ #include "consts_namespace.h" .p2align 5 +.private_extern ladder +.private_extern _ladder .globl ladder .globl _ladder #ifdef __ELF__ diff --git a/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder_base.S b/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder_base.S index 536ac101..7d21687e 100644 --- a/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder_base.S +++ b/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder_base.S @@ -4,6 +4,8 @@ #include "consts_namespace.h" .p2align 5 +.private_extern ladder_base +.private_extern _ladder_base .globl ladder_base .globl _ladder_base #ifdef __ELF__