@ -1,7 +1,7 @@
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/abi_self_test.cc
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/abi_self_test.cc
===================================================================
===================================================================
--- chromium-13 0.0.6723.44 .orig/third_party/boringssl/src/crypto/abi_self_test.cc
--- chromium-13 3.0.6943.35 .orig/third_party/boringssl/src/crypto/abi_self_test.cc
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/abi_self_test.cc
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/abi_self_test.cc
@@ -521,3 +521,289 @@ TEST(ABITest, AArch64) {
@@ -521,3 +521,289 @@ TEST(ABITest, AArch64) {
CHECK_ABI_NO_UNWIND(abi_test_clobber_v15_upper);
CHECK_ABI_NO_UNWIND(abi_test_clobber_v15_upper);
}
}
@ -292,10 +292,10 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/abi_self_test.cc
+ CHECK_ABI_NO_UNWIND(abi_test_clobber_lr);
+ CHECK_ABI_NO_UNWIND(abi_test_clobber_lr);
+}
+}
+#endif // OPENSSL_PPC64LE && SUPPORTS_ABI_TEST
+#endif // OPENSSL_PPC64LE && SUPPORTS_ABI_TEST
Index: chromium-13 0.0.6723.44/third_party/boringssl/src/crypto/cpu_ppc64le. c
Index: chromium-13 3.0.6943.35/third_party/boringssl/src/crypto/cpu_ppc64le.c c
===================================================================
===================================================================
--- /dev/null
--- /dev/null
+++ chromium-13 0.0.6723.44/third_party/boringssl/src/crypto/cpu_ppc64le. c
+++ chromium-13 3.0.6943.35/third_party/boringssl/src/crypto/cpu_ppc64le.c c
@@ -0,0 +1,38 @@
@@ -0,0 +1,38 @@
+/* Copyright (c) 2016, Google Inc.
+/* Copyright (c) 2016, Google Inc.
+ *
+ *
@ -335,11 +335,11 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/cpu_ppc64le.c
+}
+}
+
+
+#endif // OPENSSL_PPC64LE
+#endif // OPENSSL_PPC64LE
Index: chromium-13 0.0.6723.44/third_party/boringssl/src/crypto/crypto. c
Index: chromium-13 3.0.6943.35/third_party/boringssl/src/crypto/crypto.c c
===================================================================
===================================================================
--- chromium-13 0.0.6723.44.orig/third_party/boringssl/src/crypto/crypto. c
--- chromium-13 3.0.6943.35.orig/third_party/boringssl/src/crypto/crypto.c c
+++ chromium-13 0.0.6723.44/third_party/boringssl/src/crypto/crypto. c
+++ chromium-13 3.0.6943.35/third_party/boringssl/src/crypto/crypto.c c
@@ -6 6,6 +66 ,10 @@ uint32_t OPENSSL_get_ia32cap(int idx) {
@@ -6 7,6 +67 ,10 @@ uint32_t OPENSSL_get_ia32cap(int idx) {
return OPENSSL_ia32cap_P[idx];
return OPENSSL_ia32cap_P[idx];
}
}
@ -350,10 +350,10 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/crypto.c
#elif defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64)
#elif defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64)
#include <openssl/arm_arch.h>
#include <openssl/arm_arch.h>
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl
===================================================================
===================================================================
--- /dev/null
--- /dev/null
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl
@@ -0,0 +1,3809 @@
@@ -0,0 +1,3809 @@
+#! /usr/bin/env perl
+#! /usr/bin/env perl
+# Copyright 2014-2018 The OpenSSL Project Authors. All Rights Reserved.
+# Copyright 2014-2018 The OpenSSL Project Authors. All Rights Reserved.
@ -4164,12 +4164,12 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/aes/as
+}
+}
+
+
+close STDOUT or die "error closing STDOUT: $!";
+close STDOUT or die "error closing STDOUT: $!";
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/fipsmodule/aes/internal.h
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/fipsmodule/aes/internal.h
===================================================================
===================================================================
--- chromium-13 0.0.6723.44 .orig/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h
--- chromium-13 3.0.6943.35 .orig/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/fipsmodule/aes/internal.h
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/fipsmodule/aes/internal.h
@@ - 61,6 +61,12 @@ OPENSSL_INLINE int vpaes_capable(void) {
@@ - 82,6 +82,12 @@ inline int vpaes_capable(void) { return
OPENSSL_INLINE int vpaes_capable(void) { return CRYPTO_is_NEON_capable(); }
inline int vpaes_capable(void) { return CRYPTO_is_NEON_capable(); }
#endif
#endif
+#elif defined(OPENSSL_PPC64LE)
+#elif defined(OPENSSL_PPC64LE)
@ -4181,23 +4181,23 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/aes/in
#endif
#endif
#endif // !NO_ASM
#endif // !NO_ASM
Index: chromium-13 0.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/bcm. c
Index: chromium-13 3.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/bcm.c c
===================================================================
===================================================================
--- chromium-13 0.0.6723.44 .orig/third_party/boringssl/src/crypto/fipsmodule/bcm.c
--- chromium-13 3.0.6943.35 .orig/third_party/boringssl/src/crypto/fipsmodule/bcm.c c
+++ chromium-13 0.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/bcm. c
+++ chromium-13 3.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/bcm.c c
@@ -10 1,6 +101 ,7 @@
@@ -10 5,6 +105 ,7 @@
#include "self_check/fips.c.inc"
#include "self_check/fips.cc .inc"
#include "self_check/self_check.c.inc"
#include "self_check/self_check.cc .inc"
#include "service_indicator/service_indicator.c.inc"
#include "service_indicator/service_indicator.cc .inc"
+#include "sha/sha1-altivec.c .inc"
+#include "sha/sha1-altivec.c c .inc"
#include "sha/sha1.c.inc"
#include "sha/sha1.cc .inc"
#include "sha/sha256.c.inc"
#include "sha/sha256.cc .inc"
#include "sha/sha512.c.inc"
#include "sha/sha512.cc .inc"
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/fipsmodule/bn/bn.c.inc
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/fipsmodule/bn/bn.c c.inc
===================================================================
===================================================================
--- chromium-13 0.0.6723.44 .orig/third_party/boringssl/src/crypto/fipsmodule/bn/bn.c.inc
--- chromium-13 3.0.6943.35 .orig/third_party/boringssl/src/crypto/fipsmodule/bn/bn.c c.inc
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/fipsmodule/bn/bn.c.inc
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/fipsmodule/bn/bn.c c.inc
@@ -3 84,6 +384 ,23 @@ int bn_expand(BIGNUM *bn, size_t bits) {
@@ -3 25,6 +325 ,23 @@ int bn_expand(BIGNUM *bn, size_t bits) {
}
}
int bn_resize_words(BIGNUM *bn, size_t words) {
int bn_resize_words(BIGNUM *bn, size_t words) {
@ -4221,11 +4221,11 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/bn/bn.
if ((size_t)bn->width <= words) {
if ((size_t)bn->width <= words) {
if (!bn_wexpand(bn, words)) {
if (!bn_wexpand(bn, words)) {
return 0;
return 0;
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.c.inc
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.c c.inc
===================================================================
===================================================================
--- chromium-13 0.0.6723.44 .orig/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.c.inc
--- chromium-13 3.0.6943.35 .orig/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.c c.inc
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.c.inc
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.c c.inc
@@ -1 456,6 +1456 ,8 @@ int EVP_has_aes_hardware(void) {
@@ -1 230,6 +1230 ,8 @@ int EVP_has_aes_hardware(void) {
return hwaes_capable() && crypto_gcm_clmul_enabled();
return hwaes_capable() && crypto_gcm_clmul_enabled();
#elif defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64)
#elif defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64)
return hwaes_capable() && CRYPTO_is_ARMv8_PMULL_capable();
return hwaes_capable() && CRYPTO_is_ARMv8_PMULL_capable();
@ -4234,10 +4234,10 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/cipher
#else
#else
return 0;
return 0;
#endif
#endif
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghashp8-ppc.pl
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghashp8-ppc.pl
===================================================================
===================================================================
--- /dev/null
--- /dev/null
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghashp8-ppc.pl
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghashp8-ppc.pl
@@ -0,0 +1,671 @@
@@ -0,0 +1,671 @@
+#! /usr/bin/env perl
+#! /usr/bin/env perl
+# Copyright 2014-2016 The OpenSSL Project Authors. All Rights Reserved.
+# Copyright 2014-2016 The OpenSSL Project Authors. All Rights Reserved.
@ -4910,10 +4910,10 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/modes/
+}
+}
+
+
+close STDOUT or die "error closing STDOUT: $!"; # enforce flush
+close STDOUT or die "error closing STDOUT: $!"; # enforce flush
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/fipsmodule/modes/gcm.c.inc
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/fipsmodule/modes/gcm.c c.inc
===================================================================
===================================================================
--- chromium-13 0.0.6723.44 .orig/third_party/boringssl/src/crypto/fipsmodule/modes/gcm.c.inc
--- chromium-13 3.0.6943.35 .orig/third_party/boringssl/src/crypto/fipsmodule/modes/gcm.c c.inc
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/fipsmodule/modes/gcm.c.inc
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/fipsmodule/modes/gcm.c c.inc
@@ -228,6 +228,13 @@ void CRYPTO_ghash_init(gmult_func *out_m
@@ -228,6 +228,13 @@ void CRYPTO_ghash_init(gmult_func *out_m
*out_hash = gcm_ghash_neon;
*out_hash = gcm_ghash_neon;
return;
return;
@ -4928,11 +4928,11 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/modes/
#endif
#endif
gcm_init_nohw(out_table, H);
gcm_init_nohw(out_table, H);
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc
===================================================================
===================================================================
--- chromium-13 0.0.6723.44 .orig/third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc
--- chromium-13 3.0.6943.35 .orig/third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc
@@ - 209,5 +209 ,15 @@ TEST(GCMTest, ABI) {
@@ - 170,5 +170 ,15 @@ TEST(GCMTest, ABI) {
}
}
}
}
#endif
#endif
@ -4948,11 +4948,11 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/modes/
+#endif // GHASH_ASM_PPC64LE
+#endif // GHASH_ASM_PPC64LE
}
}
#endif // SUPPORTS_ABI_TEST && !OPENSSL_NO_ASM
#endif // SUPPORTS_ABI_TEST && !OPENSSL_NO_ASM
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/fipsmodule/modes/internal.h
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/fipsmodule/modes/internal.h
===================================================================
===================================================================
--- chromium-13 0.0.6723.44 .orig/third_party/boringssl/src/crypto/fipsmodule/modes/internal.h
--- chromium-13 3.0.6943.35 .orig/third_party/boringssl/src/crypto/fipsmodule/modes/internal.h
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/fipsmodule/modes/internal.h
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/fipsmodule/modes/internal.h
@@ - 325,6 +325 ,13 @@ void aes_gcm_dec_kernel(const uint8_t *i
@@ - 260,6 +260 ,13 @@ void aes_gcm_dec_kernel(const uint8_t *i
const u128 Htable[16]);
const u128 Htable[16]);
#endif
#endif
@ -4966,10 +4966,10 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/modes/
#endif
#endif
#endif // OPENSSL_NO_ASM
#endif // OPENSSL_NO_ASM
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/rand_extra/getrandom_fillin.h
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/rand_extra/getrandom_fillin.h
===================================================================
===================================================================
--- chromium-13 0.0.6723.44 .orig/third_party/boringssl/src/crypto/rand_extra/getrandom_fillin.h
--- chromium-13 3.0.6943.35 .orig/third_party/boringssl/src/crypto/rand_extra/getrandom_fillin.h
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/rand_extra/getrandom_fillin.h
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/rand_extra/getrandom_fillin.h
@@ -30,6 +30,8 @@
@@ -30,6 +30,8 @@
#define EXPECTED_NR_getrandom 278
#define EXPECTED_NR_getrandom 278
#elif defined(OPENSSL_ARM)
#elif defined(OPENSSL_ARM)
@ -4979,11 +4979,11 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/rand_extra/getran
#elif defined(OPENSSL_RISCV64)
#elif defined(OPENSSL_RISCV64)
#define EXPECTED_NR_getrandom 278
#define EXPECTED_NR_getrandom 278
#endif
#endif
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/fipsmodule/rand/rand.c.inc
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/fipsmodule/rand/rand.c c.inc
===================================================================
===================================================================
--- chromium-13 0.0.6723.44 .orig/third_party/boringssl/src/crypto/fipsmodule/rand/rand.c.inc
--- chromium-13 3.0.6943.35 .orig/third_party/boringssl/src/crypto/fipsmodule/rand/rand.c c.inc
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/fipsmodule/rand/rand.c.inc
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/fipsmodule/rand/rand.c c.inc
@@ -4 27,6 +427 ,11 @@ bcm_infallible BCM_rand_bytes_with_addit
@@ -4 31,6 +431 ,11 @@ bcm_infallible BCM_rand_bytes_with_addit
// Take a read lock around accesses to |state->drbg|. This is needed to
// Take a read lock around accesses to |state->drbg|. This is needed to
// avoid returning bad entropy if we race with
// avoid returning bad entropy if we race with
// |rand_thread_state_clear_all|.
// |rand_thread_state_clear_all|.
@ -4995,10 +4995,10 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/rand/r
CRYPTO_MUTEX_lock_read(&state->clear_drbg_lock);
CRYPTO_MUTEX_lock_read(&state->clear_drbg_lock);
#endif
#endif
if (!CTR_DRBG_reseed(&state->drbg, seed, reseed_additional_data,
if (!CTR_DRBG_reseed(&state->drbg, seed, reseed_additional_data,
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/fipsmodule/sha/internal.h
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/fipsmodule/sha/internal.h
===================================================================
===================================================================
--- chromium-13 0.0.6723.44 .orig/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h
--- chromium-13 3.0.6943.35 .orig/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/fipsmodule/sha/internal.h
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/fipsmodule/sha/internal.h
@@ -23,6 +23,16 @@
@@ -23,6 +23,16 @@
extern "C" {
extern "C" {
#endif
#endif
@ -5016,16 +5016,16 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/sha/in
// Define SHA{n}[_{variant}]_ASM if sha{n}_block_data_order[_{variant}] is
// Define SHA{n}[_{variant}]_ASM if sha{n}_block_data_order[_{variant}] is
// defined in assembly.
// defined in assembly.
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.c.inc
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.c c.inc
===================================================================
===================================================================
--- /dev/null
--- /dev/null
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.c.inc
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.c c.inc
@@ -0,0 +1,36 1 @@
@@ -0,0 +1,36 9 @@
+/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.c om)
+/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.c c om)
+ * All rights reserved.
+ * All rights reserved.
+ *
+ *
+ * This package is an SSL implementation written
+ * This package is an SSL implementation written
+ * by Eric Young (eay@cryptsoft.c om).
+ * by Eric Young (eay@cryptsoft.c c om).
+ * The implementation was written so as to conform with Netscapes SSL.
+ * The implementation was written so as to conform with Netscapes SSL.
+ *
+ *
+ * This library is free for commercial and non-commercial use as long as
+ * This library is free for commercial and non-commercial use as long as
@ -5033,7 +5033,7 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/sha/sh
+ * apply to all code found in this distribution, be it the RC4, RSA,
+ * apply to all code found in this distribution, be it the RC4, RSA,
+ * lhash, DES, etc., code; not just the SSL code. The SSL documentation
+ * lhash, DES, etc., code; not just the SSL code. The SSL documentation
+ * included with this distribution is covered by the same copyright terms
+ * included with this distribution is covered by the same copyright terms
+ * except that the holder is Tim Hudson (tjh@cryptsoft.c om).
+ * except that the holder is Tim Hudson (tjh@cryptsoft.c c om).
+ *
+ *
+ * Copyright remains Eric Young's, and as such any Copyright notices in
+ * Copyright remains Eric Young's, and as such any Copyright notices in
+ * the code are not to be removed.
+ * the code are not to be removed.
@ -5053,12 +5053,12 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/sha/sh
+ * 3. All advertising materials mentioning features or use of this software
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * must display the following acknowledgement:
+ * "This product includes cryptographic software written by
+ * "This product includes cryptographic software written by
+ * Eric Young (eay@cryptsoft.c om)"
+ * Eric Young (eay@cryptsoft.c c om)"
+ * The word 'cryptographic' can be left out if the rouines from the library
+ * The word 'cryptographic' can be left out if the rouines from the library
+ * being used are not cryptographic related :-).
+ * being used are not cryptographic related :-).
+ * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
+ * the apps directory (application code) you must include an acknowledgement:
+ * the apps directory (application code) you must include an acknowledgement:
+ * "This product includes software written by Tim Hudson (tjh@cryptsoft.c om)"
+ * "This product includes software written by Tim Hudson (tjh@cryptsoft.c c om)"
+ *
+ *
+ * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
+ * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
@ -5080,7 +5080,7 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/sha/sh
+// Altivec-optimized SHA1 in C. This is tested on ppc64le only.
+// Altivec-optimized SHA1 in C. This is tested on ppc64le only.
+//
+//
+// References:
+// References:
+// https://software.intel.c om/en-us/articles/improving-the-performance-of-the-secure-hash-algorithm-1
+// https://software.intel.c c om/en-us/articles/improving-the-performance-of-the-secure-hash-algorithm-1
+// http://arctic.org/~dean/crypto/sha1.html
+// http://arctic.org/~dean/crypto/sha1.html
+//
+//
+// This code used the generic SHA-1 from OpenSSL as a basis and AltiVec
+// This code used the generic SHA-1 from OpenSSL as a basis and AltiVec
@ -5090,6 +5090,10 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/sha/sh
+
+
+#if defined(OPENSSL_PPC64LE)
+#if defined(OPENSSL_PPC64LE)
+
+
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
+#include <altivec.h>
+#include <altivec.h>
+
+
+void sha1_block_data_order_ppc64(uint32_t *state, const uint8_t *data, size_t num);
+void sha1_block_data_order_ppc64(uint32_t *state, const uint8_t *data, size_t num);
@ -5175,7 +5179,7 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/sha/sh
+ return w;
+ return w;
+}
+}
+
+
+// As pointed out by Wei Dai <weidai@eskimo.c om>, F() below can be simplified
+// As pointed out by Wei Dai <weidai@eskimo.c c om>, F() below can be simplified
+// to the code in F_00_19. Wei attributes these optimisations to Peter
+// to the code in F_00_19. Wei attributes these optimisations to Peter
+// Gutmann's SHS code, and he attributes it to Rich Schroeppel. #define
+// Gutmann's SHS code, and he attributes it to Rich Schroeppel. #define
+// F(x,y,z) (((x) & (y)) | ((~(x)) & (z))) I've just become aware of another
+// F(x,y,z) (((x) & (y)) | ((~(x)) & (z))) I've just become aware of another
@ -5368,6 +5372,10 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/sha/sh
+ }
+ }
+}
+}
+
+
+#if defined(__cplusplus)
+}
+#endif
+
+#endif // OPENSSL_PPC64LE
+#endif // OPENSSL_PPC64LE
+
+
+#undef K_00_19
+#undef K_00_19
@ -5382,11 +5390,11 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/sha/sh
+#undef BODY_20_39
+#undef BODY_20_39
+#undef BODY_40_59
+#undef BODY_40_59
+#undef BODY_60_79
+#undef BODY_60_79
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/internal.h
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/internal.h
===================================================================
===================================================================
--- chromium-13 0.0.6723.44 .orig/third_party/boringssl/src/crypto/internal.h
--- chromium-13 3.0.6943.35 .orig/third_party/boringssl/src/crypto/internal.h
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/internal.h
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/internal.h
@@ - 183,8 +183 ,9 @@ extern "C" {
@@ - 56,8 +56 ,9 @@ extern "C" {
#if !defined(OPENSSL_NO_ASM) && !defined(OPENSSL_STATIC_ARMCAP) && \
#if !defined(OPENSSL_NO_ASM) && !defined(OPENSSL_STATIC_ARMCAP) && \
(defined(OPENSSL_X86) || defined(OPENSSL_X86_64) || \
(defined(OPENSSL_X86) || defined(OPENSSL_X86_64) || \
defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64))
defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64))
@ -5398,7 +5406,7 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/internal.h
#define NEED_CPUID
#define NEED_CPUID
// OPENSSL_cpuid_setup initializes the platform-specific feature cache. This
// OPENSSL_cpuid_setup initializes the platform-specific feature cache. This
@@ -1 723,6 +1724,16 @@ OPENSSL_INLINE int CRYPTO_is_ARMv8_SHA51
@@ -1 397,6 +1398,16 @@ inline int CRYPTO_is_ARMv8_SHA512_capabl
#endif // OPENSSL_ARM || OPENSSL_AARCH64
#endif // OPENSSL_ARM || OPENSSL_AARCH64
@ -5415,10 +5423,10 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/internal.h
#if defined(BORINGSSL_DISPATCH_TEST)
#if defined(BORINGSSL_DISPATCH_TEST)
// Runtime CPU dispatch testing support
// Runtime CPU dispatch testing support
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl
===================================================================
===================================================================
--- /dev/null
--- /dev/null
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl
@@ -0,0 +1,320 @@
@@ -0,0 +1,320 @@
+#! /usr/bin/env perl
+#! /usr/bin/env perl
+# Copyright 2006-2016 The OpenSSL Project Authors. All Rights Reserved.
+# Copyright 2006-2016 The OpenSSL Project Authors. All Rights Reserved.
@ -5501,7 +5509,7 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/perlasm/ppc-xlate
+ $ret;
+ $ret;
+};
+};
+my $text = sub {
+my $text = sub {
+ my $ret = ($flavour =~ /aix/) ? ".c sect\t.text[PR],7" : ".text";
+ my $ret = ($flavour =~ /aix/) ? ".c c sect\t.text[PR],7" : ".text";
+ $ret = ".abiversion 2\n".$ret if ($flavour =~ /linux.*64le/);
+ $ret = ".abiversion 2\n".$ret if ($flavour =~ /linux.*64le/);
+ $ret;
+ $ret;
+};
+};
@ -5734,16 +5742,16 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/perlasm/ppc-xlate
+print <<___;
+print <<___;
+#endif // !OPENSSL_NO_ASM && __powerpc64__ && __ELF__
+#endif // !OPENSSL_NO_ASM && __powerpc64__ && __ELF__
+#if defined(__ELF__)
+#if defined(__ELF__)
+// See https://www.airs.c om/blog/archives/518.
+// See https://www.airs.c c om/blog/archives/518.
+.section .note.GNU-stack,"",\%progbits
+.section .note.GNU-stack,"",\%progbits
+#endif
+#endif
+___
+___
+
+
+close STDOUT or die "error closing STDOUT: $!";
+close STDOUT or die "error closing STDOUT: $!";
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/test/abi_test.h
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/test/abi_test.h
===================================================================
===================================================================
--- chromium-13 0.0.6723.44 .orig/third_party/boringssl/src/crypto/test/abi_test.h
--- chromium-13 3.0.6943.35 .orig/third_party/boringssl/src/crypto/test/abi_test.h
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/test/abi_test.h
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/test/abi_test.h
@@ -179,7 +179,78 @@ struct alignas(16) Reg128 {
@@ -179,7 +179,78 @@ struct alignas(16) Reg128 {
CALLER_STATE_REGISTER(uint64_t, x28) \
CALLER_STATE_REGISTER(uint64_t, x28) \
CALLER_STATE_REGISTER(uint64_t, x29)
CALLER_STATE_REGISTER(uint64_t, x29)
@ -5850,10 +5858,10 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/test/abi_test.h
static_assert(sizeof...(args) <= 8,
static_assert(sizeof...(args) <= 8,
"too many arguments for abi_test_trampoline");
"too many arguments for abi_test_trampoline");
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl
===================================================================
===================================================================
--- /dev/null
--- /dev/null
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl
@@ -0,0 +1,262 @@
@@ -0,0 +1,262 @@
+#!/usr/bin/env perl
+#!/usr/bin/env perl
+# Copyright (c) 2019, Google Inc.
+# Copyright (c) 2019, Google Inc.
@ -6117,10 +6125,10 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/test/asm/trampoli
+
+
+print $code;
+print $code;
+close STDOUT or die "error closing STDOUT: $!";
+close STDOUT or die "error closing STDOUT: $!";
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/include/openssl/target.h
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/include/openssl/target.h
===================================================================
===================================================================
--- chromium-13 0.0.6723.44 .orig/third_party/boringssl/src/include/openssl/target.h
--- chromium-13 3.0.6943.35 .orig/third_party/boringssl/src/include/openssl/target.h
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/include/openssl/target.h
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/include/openssl/target.h
@@ -34,6 +34,9 @@
@@ -34,6 +34,9 @@
#elif defined(__ARMEL__) || defined(_M_ARM)
#elif defined(__ARMEL__) || defined(_M_ARM)
#define OPENSSL_32_BIT
#define OPENSSL_32_BIT
@ -6131,11 +6139,11 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/include/openssl/target.h
#elif defined(__MIPSEL__) && !defined(__LP64__)
#elif defined(__MIPSEL__) && !defined(__LP64__)
#define OPENSSL_32_BIT
#define OPENSSL_32_BIT
#define OPENSSL_MIPS
#define OPENSSL_MIPS
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc
===================================================================
===================================================================
--- chromium-13 0.0.6723.44 .orig/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc
--- chromium-13 3.0.6943.35 .orig/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc
@@ -3 7,6 +37 ,8 @@ int main(int argc, char **argv) {
@@ -3 8,6 +38 ,8 @@ int main(int argc, char **argv) {
puts("ARM (32-bit)");
puts("ARM (32-bit)");
#elif defined(OPENSSL_AARCH64)
#elif defined(OPENSSL_AARCH64)
puts("aarch64 (64-bit)");
puts("aarch64 (64-bit)");
@ -6144,10 +6152,10 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/acvp/modu
#else
#else
#error "FIPS build not supported on this architecture"
#error "FIPS build not supported on this architecture"
#endif
#endif
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/util/fipstools/delocate/delocate.go
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/util/fipstools/delocate/delocate.go
===================================================================
===================================================================
--- chromium-13 0.0.6723.44 .orig/third_party/boringssl/src/util/fipstools/delocate/delocate.go
--- chromium-13 3.0.6943.35 .orig/third_party/boringssl/src/util/fipstools/delocate/delocate.go
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/util/fipstools/delocate/delocate.go
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/util/fipstools/delocate/delocate.go
@@ -54,7 +54,8 @@ type stringWriter interface {
@@ -54,7 +54,8 @@ type stringWriter interface {
type processorType int
type processorType int
@ -6306,13 +6314,13 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/
+func (d *delocation) isPPC64LEAPair(statement *node32) (target, source, relative string, ok bool) {
+func (d *delocation) isPPC64LEAPair(statement *node32) (target, source, relative string, ok bool) {
+ instruction := skipWS(statement.up).up
+ instruction := skipWS(statement.up).up
+ assertNodeType(instruction, ruleInstructionName)
+ assertNodeType(instruction, ruleInstructionName)
+ name1 := d.c ontents(instruction)
+ name1 := d.c c ontents(instruction)
+ args1 := instructionArgs(instruction.next)
+ args1 := instructionArgs(instruction.next)
+
+
+ statement = statement.next
+ statement = statement.next
+ instruction = skipWS(statement.up).up
+ instruction = skipWS(statement.up).up
+ assertNodeType(instruction, ruleInstructionName)
+ assertNodeType(instruction, ruleInstructionName)
+ name2 := d.c ontents(instruction)
+ name2 := d.c c ontents(instruction)
+ args2 := instructionArgs(instruction.next)
+ args2 := instructionArgs(instruction.next)
+
+
+ if name1 != "addis" ||
+ if name1 != "addis" ||
@ -6322,16 +6330,16 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/
+ return "", "", "", false
+ return "", "", "", false
+ }
+ }
+
+
+ target = d.c ontents(args1[0])
+ target = d.c c ontents(args1[0])
+ relative = d.c ontents(args1[1])
+ relative = d.c c ontents(args1[1])
+ source1 := d.c ontents(args1[2])
+ source1 := d.c c ontents(args1[2])
+ source2 := d.c ontents(args2[2])
+ source2 := d.c c ontents(args2[2])
+
+
+ if !strings.HasSuffix(source1, "@ha") ||
+ if !strings.HasSuffix(source1, "@ha") ||
+ !strings.HasSuffix(source2, "@l") ||
+ !strings.HasSuffix(source2, "@l") ||
+ source1[:len(source1)-3] != source2[:len(source2)-2] ||
+ source1[:len(source1)-3] != source2[:len(source2)-2] ||
+ d.c ontents(args2[0]) != target ||
+ d.c c ontents(args2[0]) != target ||
+ d.c ontents(args2[1]) != target {
+ d.c c ontents(args2[1]) != target {
+ return "", "", "", false
+ return "", "", "", false
+ }
+ }
+
+
@ -6404,7 +6412,7 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/
+func (d *delocation) processPPCInstruction(statement, instruction *node32) (*node32, error) {
+func (d *delocation) processPPCInstruction(statement, instruction *node32) (*node32, error) {
+ assertNodeType(instruction, ruleInstructionName)
+ assertNodeType(instruction, ruleInstructionName)
+ instructionName := d.c ontents(instruction)
+ instructionName := d.c c ontents(instruction)
+ isBranch := instructionName[0] == 'b'
+ isBranch := instructionName[0] == 'b'
+
+
+ argNodes := instructionArgs(instruction.next)
+ argNodes := instructionArgs(instruction.next)
@ -6425,7 +6433,7 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/
+
+
+ switch arg.pegRule {
+ switch arg.pegRule {
+ case ruleRegisterOrConstant, ruleLocalLabelRef:
+ case ruleRegisterOrConstant, ruleLocalLabelRef:
+ args = append(args, d.c ontents(fullArg))
+ args = append(args, d.c c ontents(fullArg))
+
+
+ case ruleTOCRefLow:
+ case ruleTOCRefLow:
+ return nil, errors.New("Found low TOC reference outside preamble pattern")
+ return nil, errors.New("Found low TOC reference outside preamble pattern")
@ -6583,7 +6591,7 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/
+ }
+ }
+
+
+ for ; memRef != nil; memRef = memRef.next {
+ for ; memRef != nil; memRef = memRef.next {
+ argStr += d.c ontents(memRef)
+ argStr += d.c c ontents(memRef)
+ }
+ }
+
+
+ args = append(args, argStr)
+ args = append(args, argStr)
@ -6629,7 +6637,7 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/
forEachPath(input.ast.up, func(node *node32) {
forEachPath(input.ast.up, func(node *node32) {
+ node = node.up
+ node = node.up
+ assertNodeType(node, ruleLabelContainingDirectiveName)
+ assertNodeType(node, ruleLabelContainingDirectiveName)
+ directive := input.c ontents[node.begin:node.end]
+ directive := input.c c ontents[node.begin:node.end]
+ if directive != ".localentry" {
+ if directive != ".localentry" {
+ return
+ return
+ }
+ }
@ -6638,7 +6646,7 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/
+ assertNodeType(node, ruleSymbolArgs)
+ assertNodeType(node, ruleSymbolArgs)
+ node = node.up
+ node = node.up
+ assertNodeType(node, ruleSymbolArg)
+ assertNodeType(node, ruleSymbolArg)
+ symbol := input.c ontents[node.begin:node.end]
+ symbol := input.c c ontents[node.begin:node.end]
+ if _, ok := localEntrySymbols[symbol]; ok {
+ if _, ok := localEntrySymbols[symbol]; ok {
+ panic(fmt.Sprintf("Duplicate .localentry directive found: %q in %q", symbol, input.path))
+ panic(fmt.Sprintf("Duplicate .localentry directive found: %q in %q", symbol, input.path))
+ }
+ }
@ -6738,7 +6746,7 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/
func isSynthesized(symbol string) bool {
func isSynthesized(symbol string) bool {
return strings.HasSuffix(symbol, "_bss_get") ||
return strings.HasSuffix(symbol, "_bss_get") ||
symbol == "OPENSSL_ia32cap_get" ||
symbol == "OPENSSL_ia32cap_get" ||
@@ -18 58,6 +2334 ,8 @@ func detectProcessor(input inputFile) pr
@@ -18 94,6 +2370 ,8 @@ func detectProcessor(input inputFile) pr
switch instructionName {
switch instructionName {
case "movq", "call", "leaq":
case "movq", "call", "leaq":
return x86_64
return x86_64
@ -6747,23 +6755,27 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/
case "str", "bl", "ldr", "st1":
case "str", "bl", "ldr", "st1":
return aarch64
return aarch64
}
}
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/util/fipstools/delocate/delocate.peg
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/util/fipstools/delocate/delocate.peg
===================================================================
===================================================================
--- chromium-13 0.0.6723.44 .orig/third_party/boringssl/src/util/fipstools/delocate/delocate.peg
--- chromium-13 3.0.6943.35 .orig/third_party/boringssl/src/util/fipstools/delocate/delocate.peg
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/util/fipstools/delocate/delocate.peg
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/util/fipstools/delocate/delocate.peg
@@ -12, 7 +12,7 @@
@@ -12, 9 +12,9 @@
# OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
# OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
-# This is a rough parser for x86-64 and aarch64 assembly designed to work with
-# This is a rough parser for x86-64 and aarch64 assembly designed to work with
+# This is a rough parser for x86-64 and ppc64le assembly designed to work with
-# https://github.com/pointlander/peg. delocate.go has a go:generate line for
# https://github.com/pointlander/peg. delocate.go has a go:generate line for
-# rebuilding delocate.peg.go from this file.
# rebuilding delocate.peg.go from this file.
+# This is a rough parser for x86-64, ppc64el, and aarch64 assembly designed
+# to work with https://github.com/pointlander/peg. delocate.go has a
+# go:generate line for rebuilding delocate.peg.go from this file.
Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go
# To regenerate delocate.peg.go:
#
Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go
===================================================================
===================================================================
--- chromium-130.0.6723.44.orig/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go
--- chromium-13 3.0.6943.35 .orig/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/util/fipstools/delocate/delocate_test.go
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/util/fipstools/delocate/delocate_test.go
@@ -39,6 +39,11 @@ func (test *delocateTest) Path(file stri
@@ -39,6 +39,11 @@ func (test *delocateTest) Path(file stri
var delocateTests = []delocateTest{
var delocateTests = []delocateTest{
@ -6776,10 +6788,10 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/
{"x86_64-Basic", []string{"in.s"}, "out.s"},
{"x86_64-Basic", []string{"in.s"}, "out.s"},
{"x86_64-BSS", []string{"in.s"}, "out.s"},
{"x86_64-BSS", []string{"in.s"}, "out.s"},
{"x86_64-GOTRewrite", []string{"in.s"}, "out.s"},
{"x86_64-GOTRewrite", []string{"in.s"}, "out.s"},
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s
===================================================================
===================================================================
--- /dev/null
--- /dev/null
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s
@@ -0,0 +1,9 @@
@@ -0,0 +1,9 @@
+ .text
+ .text
+foo:
+foo:
@ -6790,13 +6802,13 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/
+ .localentry foo,.-foo
+ .localentry foo,.-foo
+.LVL0:
+.LVL0:
+ bl
+ bl
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s
===================================================================
===================================================================
--- /dev/null
--- /dev/null
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s
@@ -0,0 +1,62 @@
@@ -0,0 +1,62 @@
+.text
+.text
+.file 1 "inserted_by_delocate.c "
+.file 1 "inserted_by_delocate.c c "
+.loc 1 1 0
+.loc 1 1 0
+BORINGSSL_bcm_text_start:
+BORINGSSL_bcm_text_start:
+ .text
+ .text
@ -6857,22 +6869,22 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/
+.byte 0xff
+.byte 0xff
+.byte 0x31
+.byte 0x31
+.byte 0x80
+.byte 0x80
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s
===================================================================
===================================================================
--- /dev/null
--- /dev/null
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s
@@ -0,0 +1,4 @@
@@ -0,0 +1,4 @@
+ .text
+ .text
+foo:
+foo:
+ addis 22,2,bar@toc@ha
+ addis 22,2,bar@toc@ha
+ ld 0,bar@toc@l(22)
+ ld 0,bar@toc@l(22)
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s
===================================================================
===================================================================
--- /dev/null
--- /dev/null
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s
@@ -0,0 +1,72 @@
@@ -0,0 +1,72 @@
+.text
+.text
+.file 1 "inserted_by_delocate.c "
+.file 1 "inserted_by_delocate.c c "
+.loc 1 1 0
+.loc 1 1 0
+BORINGSSL_bcm_text_start:
+BORINGSSL_bcm_text_start:
+ .text
+ .text
@ -6943,12 +6955,12 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/
+.byte 0xff
+.byte 0xff
+.byte 0x31
+.byte 0x31
+.byte 0x80
+.byte 0x80
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s
===================================================================
===================================================================
--- /dev/null
--- /dev/null
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s
@@ -0,0 +1,161 @@
@@ -0,0 +1,161 @@
+ .file "foo.c "
+ .file "foo.c c "
+ .abiversion 2
+ .abiversion 2
+ .section ".toc","aw"
+ .section ".toc","aw"
+ .section ".text"
+ .section ".text"
@ -7109,16 +7121,16 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/
+ .size exported_function,.-exported_function
+ .size exported_function,.-exported_function
+ .ident "GCC: (Ubuntu 4.9.2-10ubuntu13) 4.9.2"
+ .ident "GCC: (Ubuntu 4.9.2-10ubuntu13) 4.9.2"
+ .section .note.GNU-stack,"",@progbits
+ .section .note.GNU-stack,"",@progbits
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s
===================================================================
===================================================================
--- /dev/null
--- /dev/null
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s
@@ -0,0 +1,552 @@
@@ -0,0 +1,552 @@
+.text
+.text
+.file 1 "inserted_by_delocate.c "
+.file 1 "inserted_by_delocate.c c "
+.loc 1 1 0
+.loc 1 1 0
+BORINGSSL_bcm_text_start:
+BORINGSSL_bcm_text_start:
+ .file "foo.c "
+ .file "foo.c c "
+ .abiversion 2
+ .abiversion 2
+ .section ".toc","aw"
+ .section ".toc","aw"
+# WAS .section ".text"
+# WAS .section ".text"
@ -7666,12 +7678,12 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/
+.byte 0xff
+.byte 0xff
+.byte 0x31
+.byte 0x31
+.byte 0x80
+.byte 0x80
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s
===================================================================
===================================================================
--- /dev/null
--- /dev/null
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s
@@ -0,0 +1,226 @@
@@ -0,0 +1,226 @@
+ .file "foo.c "
+ .file "foo.c c "
+ .abiversion 2
+ .abiversion 2
+ .section ".toc","aw"
+ .section ".toc","aw"
+ .section ".text"
+ .section ".text"
@ -7897,16 +7909,16 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/
+ .zero 20
+ .zero 20
+ .ident "GCC: (Ubuntu 4.9.2-10ubuntu13) 4.9.2"
+ .ident "GCC: (Ubuntu 4.9.2-10ubuntu13) 4.9.2"
+ .section .note.GNU-stack,"",@progbits
+ .section .note.GNU-stack,"",@progbits
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s
===================================================================
===================================================================
--- /dev/null
--- /dev/null
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s
@@ -0,0 +1,677 @@
@@ -0,0 +1,677 @@
+.text
+.text
+.file 1 "inserted_by_delocate.c "
+.file 1 "inserted_by_delocate.c c "
+.loc 1 1 0
+.loc 1 1 0
+BORINGSSL_bcm_text_start:
+BORINGSSL_bcm_text_start:
+ .file "foo.c "
+ .file "foo.c c "
+ .abiversion 2
+ .abiversion 2
+ .section ".toc","aw"
+ .section ".toc","aw"
+# WAS .section ".text"
+# WAS .section ".text"
@ -8579,10 +8591,10 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/
+.byte 0xff
+.byte 0xff
+.byte 0x31
+.byte 0x31
+.byte 0x80
+.byte 0x80
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s
===================================================================
===================================================================
--- /dev/null
--- /dev/null
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s
@@ -0,0 +1,23 @@
@@ -0,0 +1,23 @@
+ .text
+ .text
+foo:
+foo:
@ -8607,13 +8619,13 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/
+
+
+ addis 4, 2, 1+foo-2@toc@ha+3
+ addis 4, 2, 1+foo-2@toc@ha+3
+ addi 4, 4, 1+foo-2@toc@l+3
+ addi 4, 4, 1+foo-2@toc@l+3
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s
===================================================================
===================================================================
--- /dev/null
--- /dev/null
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s
@@ -0,0 +1,178 @@
@@ -0,0 +1,178 @@
+.text
+.text
+.file 1 "inserted_by_delocate.c "
+.file 1 "inserted_by_delocate.c c "
+.loc 1 1 0
+.loc 1 1 0
+BORINGSSL_bcm_text_start:
+BORINGSSL_bcm_text_start:
+ .text
+ .text
@ -8790,11 +8802,11 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/
+.byte 0xff
+.byte 0xff
+.byte 0x31
+.byte 0x31
+.byte 0x80
+.byte 0x80
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/fipsmodule/sha/sha1.c.inc
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/fipsmodule/sha/sha1.c c.inc
===================================================================
===================================================================
--- chromium-13 0.0.6723.44 .orig/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.c.inc
--- chromium-13 3.0.6943.35 .orig/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.c c.inc
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/crypto/fipsmodule/sha/sha1.c.inc
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/crypto/fipsmodule/sha/sha1.c c.inc
@@ - 408,6 +408 ,10 @@ static void sha1_block_data_order(uint32
@@ - 362,6 +362 ,10 @@ static void sha1_block_data_order(uint32
return;
return;
}
}
#endif
#endif
@ -8805,11 +8817,11 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/sha/sh
sha1_block_data_order_nohw(state, data, num);
sha1_block_data_order_nohw(state, data, num);
}
}
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/build.json
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/build.json
===================================================================
===================================================================
--- chromium-13 0.0.6723.44 .orig/third_party/boringssl/src/build.json
--- chromium-13 3.0.6943.35 .orig/third_party/boringssl/src/build.json
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/build.json
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/build.json
@@ -1 18,6 +118 ,10 @@
@@ -1 26,6 +126 ,10 @@
{"src": "crypto/fipsmodule/sha/asm/sha512-armv4.pl"},
{"src": "crypto/fipsmodule/sha/asm/sha512-armv4.pl"},
{"src": "crypto/fipsmodule/aes/asm/vpaes-armv7.pl"}
{"src": "crypto/fipsmodule/aes/asm/vpaes-armv7.pl"}
],
],
@ -8820,15 +8832,15 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/build.json
"perlasm_x86": [
"perlasm_x86": [
{"src": "crypto/fipsmodule/aes/asm/aesni-x86.pl"},
{"src": "crypto/fipsmodule/aes/asm/aesni-x86.pl"},
{"src": "crypto/fipsmodule/bn/asm/bn-586.pl"},
{"src": "crypto/fipsmodule/bn/asm/bn-586.pl"},
@@ -2 19,6 +22 3,7 @@
@@ -2 29,6 +23 3,7 @@
"crypto/cpu_arm_freebsd.c",
"crypto/cpu_arm_freebsd.cc ",
"crypto/cpu_arm_linux.c",
"crypto/cpu_arm_linux.cc ",
"crypto/cpu_intel.c",
"crypto/cpu_intel.cc ",
+ "crypto/cpu_ppc64le.c ",
+ "crypto/cpu_ppc64le.c c ",
"crypto/crypto.c",
"crypto/crypto.cc ",
"crypto/curve25519/curve25519.c",
"crypto/curve25519/curve25519.cc ",
"crypto/curve25519/curve25519_64_adx.c",
"crypto/curve25519/curve25519_64_adx.cc ",
@@ -7 99,6 +804 ,9 @@
@@ -7 86,6 +791 ,9 @@
"perlasm_arm": [
"perlasm_arm": [
{"src": "crypto/test/asm/trampoline-armv4.pl"}
{"src": "crypto/test/asm/trampoline-armv4.pl"}
],
],
@ -8838,10 +8850,10 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/build.json
"perlasm_x86": [
"perlasm_x86": [
{"src": "crypto/test/asm/trampoline-x86.pl"}
{"src": "crypto/test/asm/trampoline-x86.pl"}
],
],
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/util/pregenerate/build.go
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/util/pregenerate/build.go
===================================================================
===================================================================
--- chromium-13 0.0.6723.44 .orig/third_party/boringssl/src/util/pregenerate/build.go
--- chromium-13 3.0.6943.35 .orig/third_party/boringssl/src/util/pregenerate/build.go
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/util/pregenerate/build.go
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/util/pregenerate/build.go
@@ -38,6 +38,7 @@ type InputTarget struct {
@@ -38,6 +38,7 @@ type InputTarget struct {
// architecture.
// architecture.
PerlasmAarch64 []PerlasmSource `json:"perlasm_aarch64,omitempty"`
PerlasmAarch64 []PerlasmSource `json:"perlasm_aarch64,omitempty"`
@ -8860,10 +8872,10 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/pregenerate/build.g
for _, p := range in.PerlasmX86 {
for _, p := range in.PerlasmX86 {
addPerlasmTask(&out.Asm, &p, "-apple.S", []string{"macosx", "-fPIC"})
addPerlasmTask(&out.Asm, &p, "-apple.S", []string{"macosx", "-fPIC"})
addPerlasmTask(&out.Asm, &p, "-linux.S", []string{"elf", "-fPIC"})
addPerlasmTask(&out.Asm, &p, "-linux.S", []string{"elf", "-fPIC"})
Index: chromium-13 0.0.6723.44 /third_party/boringssl/README.ppc64le
Index: chromium-13 3.0.6943.35 /third_party/boringssl/README.ppc64le
===================================================================
===================================================================
--- /dev/null
--- /dev/null
+++ chromium-13 0.0.6723.44 /third_party/boringssl/README.ppc64le
+++ chromium-13 3.0.6943.35 /third_party/boringssl/README.ppc64le
@@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
+==============================================================
+==============================================================
+To recreate boringssl pregenerated files patch for ppc64le:
+To recreate boringssl pregenerated files patch for ppc64le:
@ -8873,11 +8885,11 @@ Index: chromium-130.0.6723.44/third_party/boringssl/README.ppc64le
+go run ./util/pregenerate
+go run ./util/pregenerate
+cd ../../../../
+cd ../../../../
+diff -urN chromium-*/third_party/boringssl/src/gen.orig chromium-*/third_party/boringssl/src/gen
+diff -urN chromium-*/third_party/boringssl/src/gen.orig chromium-*/third_party/boringssl/src/gen
Index: chromium-13 0.0.6723.44 /third_party/boringssl/src/gen/sources.gni
Index: chromium-13 3.0.6943.35 /third_party/boringssl/src/gen/sources.gni
===================================================================
===================================================================
--- chromium-13 0.0.6723.44 .orig/third_party/boringssl/src/gen/sources.gni
--- chromium-13 3.0.6943.35 .orig/third_party/boringssl/src/gen/sources.gni
+++ chromium-13 0.0.6723.44 /third_party/boringssl/src/gen/sources.gni
+++ chromium-13 3.0.6943.35 /third_party/boringssl/src/gen/sources.gni
@@ -1 07,6 +107 ,7 @@ bcm_sources_asm = [
@@ -1 19,6 +119 ,7 @@ bcm_sources_asm = [
"gen/bcm/aesv8-gcm-armv8-apple.S",
"gen/bcm/aesv8-gcm-armv8-apple.S",
"gen/bcm/aesv8-gcm-armv8-linux.S",
"gen/bcm/aesv8-gcm-armv8-linux.S",
"gen/bcm/aesv8-gcm-armv8-win.S",
"gen/bcm/aesv8-gcm-armv8-win.S",
@ -8885,7 +8897,7 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/gen/sources.gni
"gen/bcm/armv4-mont-linux.S",
"gen/bcm/armv4-mont-linux.S",
"gen/bcm/armv8-mont-apple.S",
"gen/bcm/armv8-mont-apple.S",
"gen/bcm/armv8-mont-linux.S",
"gen/bcm/armv8-mont-linux.S",
@@ -1 23,6 +124 ,7 @@ bcm_sources_asm = [
@@ -1 35,6 +136 ,7 @@ bcm_sources_asm = [
"gen/bcm/ghash-neon-armv8-apple.S",
"gen/bcm/ghash-neon-armv8-apple.S",
"gen/bcm/ghash-neon-armv8-linux.S",
"gen/bcm/ghash-neon-armv8-linux.S",
"gen/bcm/ghash-neon-armv8-win.S",
"gen/bcm/ghash-neon-armv8-win.S",
@ -8893,11 +8905,11 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/gen/sources.gni
"gen/bcm/ghash-ssse3-x86-apple.S",
"gen/bcm/ghash-ssse3-x86-apple.S",
"gen/bcm/ghash-ssse3-x86-linux.S",
"gen/bcm/ghash-ssse3-x86-linux.S",
"gen/bcm/ghash-ssse3-x86_64-apple.S",
"gen/bcm/ghash-ssse3-x86_64-apple.S",
@@ -3 14,6 +316 ,7 @@ crypto_sources = [
@@ -3 28,6 +330 ,7 @@ crypto_sources = [
"crypto/cpu_arm_freebsd.c",
"crypto/cpu_arm_freebsd.cc ",
"crypto/cpu_arm_linux.c",
"crypto/cpu_arm_linux.cc ",
"crypto/cpu_intel.c",
"crypto/cpu_intel.cc ",
+ "crypto/cpu_ppc64le.c ",
+ "crypto/cpu_ppc64le.c c ",
"crypto/crypto.c",
"crypto/crypto.cc ",
"crypto/curve25519/curve25519.c",
"crypto/curve25519/curve25519.cc ",
"crypto/curve25519/curve25519_64_adx.c",
"crypto/curve25519/curve25519_64_adx.cc ",