summaryrefslogtreecommitdiff
path: root/security/nss/lib/freebl/freebl_base.gypi
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-12-23 19:02:52 +0000
committerMoonchild <moonchild@palemoon.org>2020-12-23 19:02:52 +0000
commit029bcfe189eae5eebbaf58ccff4e1200dd78b228 (patch)
tree1c226a334ea1a88e2d1c6f949c9320eb0c3bff59 /security/nss/lib/freebl/freebl_base.gypi
parent149d2ffa779826cb48a381099858e76e4624d471 (diff)
downloaduxp-029bcfe189eae5eebbaf58ccff4e1200dd78b228.tar.gz
Issue #1693 - Update NSS to 3.59.1.1
This updates to MoonchildProductions/NSS@bd49b2b88 in the repo created for our consumption of the library.
Diffstat (limited to 'security/nss/lib/freebl/freebl_base.gypi')
-rw-r--r--security/nss/lib/freebl/freebl_base.gypi78
1 files changed, 38 insertions, 40 deletions
diff --git a/security/nss/lib/freebl/freebl_base.gypi b/security/nss/lib/freebl/freebl_base.gypi
index f2d1304fd4..7661bf2401 100644
--- a/security/nss/lib/freebl/freebl_base.gypi
+++ b/security/nss/lib/freebl/freebl_base.gypi
@@ -4,7 +4,6 @@
{
'sources': [
'aeskeywrap.c',
- 'alg2268.c',
'cmac.c',
'alghmac.c',
'arcfive.c',
@@ -35,6 +34,8 @@
'ecl/ecp_jac.c',
'ecl/ecp_jm.c',
'ecl/ecp_mont.c',
+ 'ecl/ecp_secp384r1.c',
+ 'ecl/ecp_secp521r1.c',
'fipsfreebl.c',
'blinit.c',
'freeblver.c',
@@ -55,7 +56,6 @@
'rijndael.c',
'rsa.c',
'rsapkcs.c',
- 'seed.c',
'sha512.c',
'sha_fast.c',
'shvfy.c',
@@ -69,11 +69,11 @@
'sources': [
'arcfour-amd64-gas.s',
'mpi/mpi_amd64.c',
- 'mpi/mpi_amd64_gas.s',
+ 'mpi/mpi_amd64_common.S',
'mpi/mp_comba.c',
],
'conditions': [
- [ 'cc_is_clang==1 and fuzz!=1', {
+ [ 'cc_is_clang==1 and fuzz!=1 and coverage!=1', {
'cflags': [
'-no-integrated-as',
],
@@ -133,54 +133,43 @@
}],
],
}],
- ['target_arch=="ia32" or target_arch=="x64" or target_arch=="arm64" or target_arch=="aarch64"', {
+ ['have_int128_support==1', {
'sources': [
- # All intel and 64-bit ARM architectures get the 64 bit version.
+ # All intel x64 and 64-bit ARM architectures get the 64 bit version.
'ecl/curve25519_64.c',
- 'verified/Hacl_Curve25519.c',
+ 'verified/Hacl_Curve25519_51.c',
],
}, {
'sources': [
- # All other architectures get the generic 32 bit implementation (slow!)
+ # All other architectures get the generic 32 bit implementation.
'ecl/curve25519_32.c',
],
}],
+ ['(target_arch!="ppc64" and target_arch!="ppc64le") or disable_altivec==1', {
+ 'sources': [
+ # Gyp does not support per-file cflags, so working around like this.
+ # ppc performance greatly benefits from specific flags.
+ 'sha512.c',
+ ],
+ }],
[ 'disable_chachapoly==0', {
# The ChaCha20 code is linked in through the static ssse3-crypto lib on
# all platforms that support SSSE3. There are runtime checks in place to
# choose the correct ChaCha implementation at runtime.
'sources': [
'verified/Hacl_Chacha20.c',
+ 'verified/Hacl_Chacha20Poly1305_32.c',
+ 'verified/Hacl_Poly1305_32.c',
],
- 'conditions': [
- [ 'OS!="win"', {
- 'conditions': [
- [ 'target_arch=="x64"', {
- 'sources': [
- 'verified/Hacl_Poly1305_64.c',
- ],
- }, {
- # !Windows & !x64
- 'conditions': [
- [ 'target_arch=="arm64" or target_arch=="aarch64"', {
- 'sources': [
- 'verified/Hacl_Poly1305_64.c',
- ],
- }, {
- # !Windows & !x64 & !arm64 & !aarch64
- 'sources': [
- 'verified/Hacl_Poly1305_32.c',
- ],
- }],
- ],
- }],
- ],
- }, {
- # Windows
- 'sources': [
- 'verified/Hacl_Poly1305_32.c',
- ],
- }],
+ }],
+ [ 'disable_deprecated_seed==0', {
+ 'sources': [
+ 'deprecated/seed.c',
+ ],
+ }],
+ [ 'disable_deprecated_rc2==0', {
+ 'sources': [
+ 'deprecated/alg2268.c',
],
}],
[ 'fuzz==1', {
@@ -214,12 +203,21 @@
'MP_ASSEMBLY_SQUARE',
'MP_ASSEMBLY_DIV_2DX1D',
],
+ }, 'target_arch=="x64"', {
+ 'sources': [
+ 'mpi/mpi_amd64.c',
+ 'mpi/mpi_amd64_common.S',
+ 'mpi/mp_comba.c',
+ ],
+ 'defines': [
+ 'MP_IS_LITTLE_ENDIAN',
+ 'MPI_AMD64',
+ 'MP_ASSEMBLY_MULTIPLY',
+ 'NSS_USE_COMBA',
+ ],
}],
],
}],
- [ 'have_int128_support==0', {
- 'sources': [ 'verified/FStar.c' ],
- }],
],
'ldflags': [
'-Wl,-Bsymbolic'