@ -1,7 +1,7 @@
Index: chromium-12 3.0.6312.58 /third_party/boringssl/src/cmake/perlasm.cmake
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/cmake/perlasm.cmake
===================================================================
===================================================================
--- chromium-12 3.0.6312.58 .orig/third_party/boringssl/src/cmake/perlasm.cmake
--- chromium-12 4.0.6367.60 .orig/third_party/boringssl/src/cmake/perlasm.cmake
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/cmake/perlasm.cmake
+++ chromium-12 4.0.6367.60 /third_party/boringssl/src/cmake/perlasm.cmake
@@ -17,6 +17,7 @@ function(add_perlasm_target dest src)
@@ -17,6 +17,7 @@ function(add_perlasm_target dest src)
DEPENDS
DEPENDS
${src}
${src}
@ -18,12 +18,12 @@ Index: chromium-123.0.6312.58/third_party/boringssl/src/cmake/perlasm.cmake
+ add_perlasm_target("${dest}-linux.S" ${src} linux64le)
+ add_perlasm_target("${dest}-linux.S" ${src} linux64le)
+ append_to_parent_scope("${var}_ASM" "${dest}-linux.S")
+ append_to_parent_scope("${var}_ASM" "${dest}-linux.S")
elseif(arch STREQUAL "x86")
elseif(arch STREQUAL "x86")
add_perlasm_target("${dest}-apple.S" ${src} macosx -fPIC -DOPENSSL_IA32_SSE2 ${ARGN})
add_perlasm_target("${dest}-apple.S" ${src} macosx -fPIC ${ARGN})
add_perlasm_target("${dest}-linux.S" ${src} elf -fPIC -DOPENSSL_IA32_SSE2 ${ARGN})
add_perlasm_target("${dest}-linux.S" ${src} elf -fPIC ${ARGN})
Index: chromium-12 3.0.6312.58 /third_party/boringssl/src/crypto/CMakeLists.txt
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/CMakeLists.txt
===================================================================
===================================================================
--- chromium-12 3.0.6312.58 .orig/third_party/boringssl/src/crypto/CMakeLists.txt
--- chromium-12 4.0.6367.60 .orig/third_party/boringssl/src/crypto/CMakeLists.txt
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/crypto/CMakeLists.txt
+++ chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/CMakeLists.txt
@@ -26,6 +26,7 @@ perlasm(CRYPTO_SOURCES aarch64 cipher_ex
@@ -26,6 +26,7 @@ perlasm(CRYPTO_SOURCES aarch64 cipher_ex
perlasm(CRYPTO_SOURCES aarch64 test/trampoline-armv8 test/asm/trampoline-armv8.pl)
perlasm(CRYPTO_SOURCES aarch64 test/trampoline-armv8 test/asm/trampoline-armv8.pl)
perlasm(CRYPTO_SOURCES arm chacha/chacha-armv4 chacha/asm/chacha-armv4.pl)
perlasm(CRYPTO_SOURCES arm chacha/chacha-armv4 chacha/asm/chacha-armv4.pl)
@ -40,10 +40,10 @@ Index: chromium-123.0.6312.58/third_party/boringssl/src/crypto/CMakeLists.txt
crypto.c
crypto.c
curve25519/curve25519.c
curve25519/curve25519.c
curve25519/curve25519_64_adx.c
curve25519/curve25519_64_adx.c
Index: chromium-12 3.0.6312.58 /third_party/boringssl/src/crypto/abi_self_test.cc
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/abi_self_test.cc
===================================================================
===================================================================
--- chromium-12 3.0.6312.58 .orig/third_party/boringssl/src/crypto/abi_self_test.cc
--- chromium-12 4.0.6367.60 .orig/third_party/boringssl/src/crypto/abi_self_test.cc
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/crypto/abi_self_test.cc
+++ chromium-12 4.0.6367.60 /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);
}
}
@ -334,10 +334,10 @@ Index: chromium-123.0.6312.58/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-12 3.0.6312.58 /third_party/boringssl/src/crypto/cpu_ppc64le.c
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/cpu_ppc64le.c
===================================================================
===================================================================
--- /dev/null
--- /dev/null
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/crypto/cpu_ppc64le.c
+++ chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/cpu_ppc64le.c
@@ -0,0 +1,38 @@
@@ -0,0 +1,38 @@
+/* Copyright (c) 2016, Google Inc.
+/* Copyright (c) 2016, Google Inc.
+ *
+ *
@ -377,10 +377,10 @@ Index: chromium-123.0.6312.58/third_party/boringssl/src/crypto/cpu_ppc64le.c
+}
+}
+
+
+#endif // OPENSSL_PPC64LE
+#endif // OPENSSL_PPC64LE
Index: chromium-12 3.0.6312.58 /third_party/boringssl/src/crypto/crypto.c
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/crypto.c
===================================================================
===================================================================
--- chromium-12 3.0.6312.58 .orig/third_party/boringssl/src/crypto/crypto.c
--- chromium-12 4.0.6367.60 .orig/third_party/boringssl/src/crypto/crypto.c
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/crypto/crypto.c
+++ chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/crypto.c
@@ -25,10 +25,12 @@ static_assert(sizeof(ossl_ssize_t) == si
@@ -25,10 +25,12 @@ static_assert(sizeof(ossl_ssize_t) == si
"ossl_ssize_t should be the same size as size_t");
"ossl_ssize_t should be the same size as size_t");
@ -419,10 +419,10 @@ Index: chromium-123.0.6312.58/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-12 3.0.6312.58 /third_party/boringssl/src/crypto/fipsmodule/CMakeLists.txt
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/fipsmodule/CMakeLists.txt
===================================================================
===================================================================
--- chromium-12 3.0.6312.58 .orig/third_party/boringssl/src/crypto/fipsmodule/CMakeLists.txt
--- chromium-12 4.0.6367.60 .orig/third_party/boringssl/src/crypto/fipsmodule/CMakeLists.txt
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/crypto/fipsmodule/CMakeLists.txt
+++ chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/fipsmodule/CMakeLists.txt
@@ -19,6 +19,8 @@ perlasm(BCM_SOURCES arm sha1-armv4-large
@@ -19,6 +19,8 @@ perlasm(BCM_SOURCES arm sha1-armv4-large
perlasm(BCM_SOURCES arm sha256-armv4 sha/asm/sha256-armv4.pl)
perlasm(BCM_SOURCES arm sha256-armv4 sha/asm/sha256-armv4.pl)
perlasm(BCM_SOURCES arm sha512-armv4 sha/asm/sha512-armv4.pl)
perlasm(BCM_SOURCES arm sha512-armv4 sha/asm/sha512-armv4.pl)
@ -432,10 +432,10 @@ Index: chromium-123.0.6312.58/third_party/boringssl/src/crypto/fipsmodule/CMakeL
perlasm(BCM_SOURCES x86 aesni-x86 aes/asm/aesni-x86.pl)
perlasm(BCM_SOURCES x86 aesni-x86 aes/asm/aesni-x86.pl)
perlasm(BCM_SOURCES x86 bn-586 bn/asm/bn-586.pl)
perlasm(BCM_SOURCES x86 bn-586 bn/asm/bn-586.pl)
perlasm(BCM_SOURCES x86 co-586 bn/asm/co-586.pl)
perlasm(BCM_SOURCES x86 co-586 bn/asm/co-586.pl)
Index: chromium-12 3.0.6312.58 /third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl
===================================================================
===================================================================
--- /dev/null
--- /dev/null
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl
+++ chromium-12 4.0.6367.60 /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.
@ -4246,10 +4246,10 @@ Index: chromium-123.0.6312.58/third_party/boringssl/src/crypto/fipsmodule/aes/as
+}
+}
+
+
+close STDOUT or die "error closing STDOUT: $!";
+close STDOUT or die "error closing STDOUT: $!";
Index: chromium-12 3.0.6312.58 /third_party/boringssl/src/crypto/fipsmodule/aes/internal.h
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/fipsmodule/aes/internal.h
===================================================================
===================================================================
--- chromium-12 3.0.6312.58 .orig/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h
--- chromium-12 4.0.6367.60 .orig/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/crypto/fipsmodule/aes/internal.h
+++ chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/fipsmodule/aes/internal.h
@@ -59,6 +59,12 @@ OPENSSL_INLINE int vpaes_capable(void) {
@@ -59,6 +59,12 @@ OPENSSL_INLINE int vpaes_capable(void) {
OPENSSL_INLINE int vpaes_capable(void) { return CRYPTO_is_NEON_capable(); }
OPENSSL_INLINE int vpaes_capable(void) { return CRYPTO_is_NEON_capable(); }
#endif
#endif
@ -4263,10 +4263,10 @@ Index: chromium-123.0.6312.58/third_party/boringssl/src/crypto/fipsmodule/aes/in
#endif
#endif
#endif // !NO_ASM
#endif // !NO_ASM
Index: chromium-12 3.0.6312.58 /third_party/boringssl/src/crypto/fipsmodule/bcm.c
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/fipsmodule/bcm.c
===================================================================
===================================================================
--- chromium-12 3.0.6312.58 .orig/third_party/boringssl/src/crypto/fipsmodule/bcm.c
--- chromium-12 4.0.6367.60 .orig/third_party/boringssl/src/crypto/fipsmodule/bcm.c
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/crypto/fipsmodule/bcm.c
+++ chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/fipsmodule/bcm.c
@@ -102,6 +102,7 @@
@@ -102,6 +102,7 @@
#include "self_check/fips.c"
#include "self_check/fips.c"
#include "self_check/self_check.c"
#include "self_check/self_check.c"
@ -4275,10 +4275,10 @@ Index: chromium-123.0.6312.58/third_party/boringssl/src/crypto/fipsmodule/bcm.c
#include "sha/sha1.c"
#include "sha/sha1.c"
#include "sha/sha256.c"
#include "sha/sha256.c"
#include "sha/sha512.c"
#include "sha/sha512.c"
Index: chromium-12 3.0.6312.58 /third_party/boringssl/src/crypto/fipsmodule/bn/bn.c
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/fipsmodule/bn/bn.c
===================================================================
===================================================================
--- chromium-12 3.0.6312.58 .orig/third_party/boringssl/src/crypto/fipsmodule/bn/bn.c
--- chromium-12 4.0.6367.60 .orig/third_party/boringssl/src/crypto/fipsmodule/bn/bn.c
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/crypto/fipsmodule/bn/bn.c
+++ chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/fipsmodule/bn/bn.c
@@ -384,6 +384,23 @@ int bn_expand(BIGNUM *bn, size_t bits) {
@@ -384,6 +384,23 @@ int bn_expand(BIGNUM *bn, size_t bits) {
}
}
@ -4303,10 +4303,10 @@ Index: chromium-123.0.6312.58/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-12 3.0.6312.58 /third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.c
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.c
===================================================================
===================================================================
--- chromium-12 3.0.6312.58 .orig/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.c
--- chromium-12 4.0.6367.60 .orig/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.c
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.c
+++ chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.c
@@ -1455,6 +1455,8 @@ int EVP_has_aes_hardware(void) {
@@ -1455,6 +1455,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)
@ -4316,10 +4316,10 @@ Index: chromium-123.0.6312.58/third_party/boringssl/src/crypto/fipsmodule/cipher
#else
#else
return 0;
return 0;
#endif
#endif
Index: chromium-12 3.0.6312.58 /third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghashp8-ppc.pl
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghashp8-ppc.pl
===================================================================
===================================================================
--- /dev/null
--- /dev/null
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghashp8-ppc.pl
+++ chromium-12 4.0.6367.60 /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.
@ -4992,10 +4992,10 @@ Index: chromium-123.0.6312.58/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-12 3.0.6312.58 /third_party/boringssl/src/crypto/fipsmodule/modes/gcm.c
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/fipsmodule/modes/gcm.c
===================================================================
===================================================================
--- chromium-12 3.0.6312.58 .orig/third_party/boringssl/src/crypto/fipsmodule/modes/gcm.c
--- chromium-12 4.0.6367.60 .orig/third_party/boringssl/src/crypto/fipsmodule/modes/gcm.c
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/crypto/fipsmodule/modes/gcm.c
+++ chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/fipsmodule/modes/gcm.c
@@ -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;
@ -5010,10 +5010,10 @@ Index: chromium-123.0.6312.58/third_party/boringssl/src/crypto/fipsmodule/modes/
#endif
#endif
gcm_init_nohw(out_table, H);
gcm_init_nohw(out_table, H);
Index: chromium-12 3.0.6312.58 /third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc
===================================================================
===================================================================
--- chromium-12 3.0.6312.58 .orig/third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc
--- chromium-12 4.0.6367.60 .orig/third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc
+++ chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc
@@ -215,5 +215,15 @@ TEST(GCMTest, ABI) {
@@ -215,5 +215,15 @@ TEST(GCMTest, ABI) {
}
}
}
}
@ -5030,10 +5030,10 @@ Index: chromium-123.0.6312.58/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-12 3.0.6312.58 /third_party/boringssl/src/crypto/fipsmodule/modes/internal.h
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/fipsmodule/modes/internal.h
===================================================================
===================================================================
--- chromium-12 3.0.6312.58 .orig/third_party/boringssl/src/crypto/fipsmodule/modes/internal.h
--- chromium-12 4.0.6367.60 .orig/third_party/boringssl/src/crypto/fipsmodule/modes/internal.h
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/crypto/fipsmodule/modes/internal.h
+++ chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/fipsmodule/modes/internal.h
@@ -325,6 +325,13 @@ void aes_gcm_dec_kernel(const uint8_t *i
@@ -325,6 +325,13 @@ void aes_gcm_dec_kernel(const uint8_t *i
const u128 Htable[16]);
const u128 Htable[16]);
#endif
#endif
@ -5048,10 +5048,10 @@ Index: chromium-123.0.6312.58/third_party/boringssl/src/crypto/fipsmodule/modes/
#endif
#endif
#endif // OPENSSL_NO_ASM
#endif // OPENSSL_NO_ASM
Index: chromium-12 3.0.6312.58 /third_party/boringssl/src/crypto/fipsmodule/rand/getrandom_fillin.h
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/fipsmodule/rand/getrandom_fillin.h
===================================================================
===================================================================
--- chromium-12 3.0.6312.58 .orig/third_party/boringssl/src/crypto/fipsmodule/rand/getrandom_fillin.h
--- chromium-12 4.0.6367.60 .orig/third_party/boringssl/src/crypto/fipsmodule/rand/getrandom_fillin.h
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/crypto/fipsmodule/rand/getrandom_fillin.h
+++ chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/fipsmodule/rand/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)
@ -5061,10 +5061,10 @@ Index: chromium-123.0.6312.58/third_party/boringssl/src/crypto/fipsmodule/rand/g
#elif defined(OPENSSL_RISCV64)
#elif defined(OPENSSL_RISCV64)
#define EXPECTED_NR_getrandom 278
#define EXPECTED_NR_getrandom 278
#endif
#endif
Index: chromium-12 3.0.6312.58 /third_party/boringssl/src/crypto/fipsmodule/rand/rand.c
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/fipsmodule/rand/rand.c
===================================================================
===================================================================
--- chromium-12 3.0.6312.58 .orig/third_party/boringssl/src/crypto/fipsmodule/rand/rand.c
--- chromium-12 4.0.6367.60 .orig/third_party/boringssl/src/crypto/fipsmodule/rand/rand.c
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/crypto/fipsmodule/rand/rand.c
+++ chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/fipsmodule/rand/rand.c
@@ -431,6 +431,11 @@ void RAND_bytes_with_additional_data(uin
@@ -431,6 +431,11 @@ void RAND_bytes_with_additional_data(uin
// 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
@ -5077,11 +5077,11 @@ Index: chromium-123.0.6312.58/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-12 3.0.6312.58 /third_party/boringssl/src/crypto/fipsmodule/sha/internal.h
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/fipsmodule/sha/internal.h
===================================================================
===================================================================
--- chromium-12 3.0.6312.58 .orig/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h
--- chromium-12 4.0.6367.60 .orig/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/crypto/fipsmodule/sha/internal.h
+++ chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/fipsmodule/sha/internal.h
@@ -23, 17 +23,25 @@
@@ -23, 6 +23,17 @@
extern "C" {
extern "C" {
#endif
#endif
@ -5090,8 +5090,8 @@ Index: chromium-123.0.6312.58/third_party/boringssl/src/crypto/fipsmodule/sha/in
+// POWER has an intrinsics-based implementation of SHA-1 and thus the functions
+// POWER has an intrinsics-based implementation of SHA-1 and thus the functions
+// normally defined in assembly are available even with |OPENSSL_NO_ASM| in
+// normally defined in assembly are available even with |OPENSSL_NO_ASM| in
+// this case.
+// this case.
+#define SHA1_ASM
+#define SHA1_ASM _PPC64
+void sha1_block_data_order (uint32_t *state, const uint8_t *in,
+void sha1_block_data_order _ppc64 (uint32_t *state, const uint8_t *in,
+ size_t num_blocks);
+ size_t num_blocks);
+#endif
+#endif
+
+
@ -5099,21 +5099,10 @@ Index: chromium-123.0.6312.58/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.
#if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_X86)
Index: chromium-124.0.6367.60/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.c
-#define SHA1_ASM
#define SHA256_ASM
#define SHA512_ASM
-void sha1_block_data_order(uint32_t *state, const uint8_t *data,
- size_t num_blocks);
void sha256_block_data_order(uint32_t *state, const uint8_t *data,
size_t num_blocks);
void sha512_block_data_order(uint64_t *state, const uint8_t *data,
Index: chromium-123.0.6312.58/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.c
===================================================================
===================================================================
--- /dev/null
--- /dev/null
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.c
+++ chromium-124.0.6367.60/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.c
@@ -0,0 +1,361 @@
@@ -0,0 +1,361 @@
+/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
+/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
+ * All rights reserved.
+ * All rights reserved.
@ -5186,7 +5175,7 @@ Index: chromium-123.0.6312.58/third_party/boringssl/src/crypto/fipsmodule/sha/sh
+
+
+#include <altivec.h>
+#include <altivec.h>
+
+
+void sha1_block_data_order (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);
+
+
+static uint32_t rotate(uint32_t a, int n) { return (a << n) | (a >> (32 - n)); }
+static uint32_t rotate(uint32_t a, int n) { return (a << n) | (a >> (32 - n)); }
+
+
@ -5304,7 +5293,7 @@ Index: chromium-123.0.6312.58/third_party/boringssl/src/crypto/fipsmodule/sha/sh
+ (b) = rotate((b), 30); \
+ (b) = rotate((b), 30); \
+ } while (0)
+ } while (0)
+
+
+void sha1_block_data_order (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) {
+ uint32_t A, B, C, D, E, T;
+ uint32_t A, B, C, D, E, T;
+
+
+ A = state[0];
+ A = state[0];
@ -5476,10 +5465,10 @@ Index: chromium-123.0.6312.58/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-12 3.0.6312.58 /third_party/boringssl/src/crypto/internal.h
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/internal.h
===================================================================
===================================================================
--- chromium-12 3.0.6312.58 .orig/third_party/boringssl/src/crypto/internal.h
--- chromium-12 4.0.6367.60 .orig/third_party/boringssl/src/crypto/internal.h
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/crypto/internal.h
+++ chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/internal.h
@@ -181,7 +181,7 @@ extern "C" {
@@ -181,7 +181,7 @@ extern "C" {
@ -5489,7 +5478,7 @@ Index: chromium-123.0.6312.58/third_party/boringssl/src/crypto/internal.h
// OPENSSL_cpuid_setup initializes the platform-specific feature cache.
// OPENSSL_cpuid_setup initializes the platform-specific feature cache.
void OPENSSL_cpuid_setup(void);
void OPENSSL_cpuid_setup(void);
#endif
#endif
@@ -16 22,6 +162 2,16 @@ OPENSSL_INLINE int CRYPTO_is_ARMv8_SHA51
@@ -16 32,6 +163 2,16 @@ OPENSSL_INLINE int CRYPTO_is_ARMv8_SHA51
#endif // OPENSSL_ARM || OPENSSL_AARCH64
#endif // OPENSSL_ARM || OPENSSL_AARCH64
@ -5506,10 +5495,10 @@ Index: chromium-123.0.6312.58/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-12 3.0.6312.58 /third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl
===================================================================
===================================================================
--- /dev/null
--- /dev/null
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl
+++ chromium-12 4.0.6367.60 /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.
@ -5831,10 +5820,10 @@ Index: chromium-123.0.6312.58/third_party/boringssl/src/crypto/perlasm/ppc-xlate
+___
+___
+
+
+close STDOUT or die "error closing STDOUT: $!";
+close STDOUT or die "error closing STDOUT: $!";
Index: chromium-12 3.0.6312.58 /third_party/boringssl/src/crypto/test/abi_test.h
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/test/abi_test.h
===================================================================
===================================================================
--- chromium-12 3.0.6312.58 .orig/third_party/boringssl/src/crypto/test/abi_test.h
--- chromium-12 4.0.6367.60 .orig/third_party/boringssl/src/crypto/test/abi_test.h
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/crypto/test/abi_test.h
+++ chromium-12 4.0.6367.60 /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)
@ -5941,10 +5930,10 @@ Index: chromium-123.0.6312.58/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-12 3.0.6312.58 /third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl
===================================================================
===================================================================
--- /dev/null
--- /dev/null
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl
+++ chromium-12 4.0.6367.60 /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.
@ -6208,10 +6197,10 @@ Index: chromium-123.0.6312.58/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-12 3.0.6312.58 /third_party/boringssl/src/include/openssl/target.h
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/include/openssl/target.h
===================================================================
===================================================================
--- chromium-12 3.0.6312.58 .orig/third_party/boringssl/src/include/openssl/target.h
--- chromium-12 4.0.6367.60 .orig/third_party/boringssl/src/include/openssl/target.h
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/include/openssl/target.h
+++ chromium-12 4.0.6367.60 /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
@ -6222,10 +6211,10 @@ Index: chromium-123.0.6312.58/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-12 3.0.6312.58 /third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc
===================================================================
===================================================================
--- chromium-12 3.0.6312.58 .orig/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc
--- chromium-12 4.0.6367.60 .orig/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc
+++ chromium-12 4.0.6367.60 /third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc
@@ -37,6 +37,8 @@ int main(int argc, char **argv) {
@@ -37,6 +37,8 @@ int main(int argc, char **argv) {
puts("ARM (32-bit)");
puts("ARM (32-bit)");
#elif defined(OPENSSL_AARCH64)
#elif defined(OPENSSL_AARCH64)
@ -6235,10 +6224,10 @@ Index: chromium-123.0.6312.58/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-12 3.0.6312.58 /third_party/boringssl/src/util/fipstools/delocate/delocate.go
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/util/fipstools/delocate/delocate.go
===================================================================
===================================================================
--- chromium-12 3.0.6312.58 .orig/third_party/boringssl/src/util/fipstools/delocate/delocate.go
--- chromium-12 4.0.6367.60 .orig/third_party/boringssl/src/util/fipstools/delocate/delocate.go
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/util/fipstools/delocate/delocate.go
+++ chromium-12 4.0.6367.60 /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
@ -6838,10 +6827,10 @@ Index: chromium-123.0.6312.58/third_party/boringssl/src/util/fipstools/delocate/
case "str", "bl", "ldr", "st1":
case "str", "bl", "ldr", "st1":
return aarch64
return aarch64
}
}
Index: chromium-12 3.0.6312.58 /third_party/boringssl/src/util/fipstools/delocate/delocate.peg
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/util/fipstools/delocate/delocate.peg
===================================================================
===================================================================
--- chromium-12 3.0.6312.58 .orig/third_party/boringssl/src/util/fipstools/delocate/delocate.peg
--- chromium-12 4.0.6367.60 .orig/third_party/boringssl/src/util/fipstools/delocate/delocate.peg
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/util/fipstools/delocate/delocate.peg
+++ chromium-12 4.0.6367.60 /third_party/boringssl/src/util/fipstools/delocate/delocate.peg
@@ -12,7 +12,7 @@
@@ -12,7 +12,7 @@
# 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. */
@ -6851,10 +6840,10 @@ Index: chromium-123.0.6312.58/third_party/boringssl/src/util/fipstools/delocate/
# 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.
Index: chromium-12 3.0.6312.58 /third_party/boringssl/src/util/fipstools/delocate/delocate_test.go
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/util/fipstools/delocate/delocate_test.go
===================================================================
===================================================================
--- chromium-12 3.0.6312.58 .orig/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go
--- chromium-12 4.0.6367.60 .orig/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/util/fipstools/delocate/delocate_test.go
+++ chromium-12 4.0.6367.60 /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{
@ -6867,10 +6856,10 @@ Index: chromium-123.0.6312.58/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-12 3.0.6312.58 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s
===================================================================
===================================================================
--- /dev/null
--- /dev/null
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s
+++ chromium-12 4.0.6367.60 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s
@@ -0,0 +1,9 @@
@@ -0,0 +1,9 @@
+ .text
+ .text
+foo:
+foo:
@ -6881,10 +6870,10 @@ Index: chromium-123.0.6312.58/third_party/boringssl/src/util/fipstools/delocate/
+ .localentry foo,.-foo
+ .localentry foo,.-foo
+.LVL0:
+.LVL0:
+ bl
+ bl
Index: chromium-12 3.0.6312.58 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s
===================================================================
===================================================================
--- /dev/null
--- /dev/null
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s
+++ chromium-12 4.0.6367.60 /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"
@ -6948,19 +6937,19 @@ Index: chromium-123.0.6312.58/third_party/boringssl/src/util/fipstools/delocate/
+.byte 0xff
+.byte 0xff
+.byte 0x31
+.byte 0x31
+.byte 0x80
+.byte 0x80
Index: chromium-12 3.0.6312.58 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s
===================================================================
===================================================================
--- /dev/null
--- /dev/null
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s
+++ chromium-12 4.0.6367.60 /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-12 3.0.6312.58 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s
===================================================================
===================================================================
--- /dev/null
--- /dev/null
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s
+++ chromium-12 4.0.6367.60 /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"
@ -7034,10 +7023,10 @@ Index: chromium-123.0.6312.58/third_party/boringssl/src/util/fipstools/delocate/
+.byte 0xff
+.byte 0xff
+.byte 0x31
+.byte 0x31
+.byte 0x80
+.byte 0x80
Index: chromium-12 3.0.6312.58 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s
===================================================================
===================================================================
--- /dev/null
--- /dev/null
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s
+++ chromium-12 4.0.6367.60 /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"
+ .abiversion 2
+ .abiversion 2
@ -7200,10 +7189,10 @@ Index: chromium-123.0.6312.58/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-12 3.0.6312.58 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s
===================================================================
===================================================================
--- /dev/null
--- /dev/null
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s
+++ chromium-12 4.0.6367.60 /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"
@ -7757,10 +7746,10 @@ Index: chromium-123.0.6312.58/third_party/boringssl/src/util/fipstools/delocate/
+.byte 0xff
+.byte 0xff
+.byte 0x31
+.byte 0x31
+.byte 0x80
+.byte 0x80
Index: chromium-12 3.0.6312.58 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s
===================================================================
===================================================================
--- /dev/null
--- /dev/null
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s
+++ chromium-12 4.0.6367.60 /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"
+ .abiversion 2
+ .abiversion 2
@ -7988,10 +7977,10 @@ Index: chromium-123.0.6312.58/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-12 3.0.6312.58 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s
===================================================================
===================================================================
--- /dev/null
--- /dev/null
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s
+++ chromium-12 4.0.6367.60 /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"
@ -8670,10 +8659,10 @@ Index: chromium-123.0.6312.58/third_party/boringssl/src/util/fipstools/delocate/
+.byte 0xff
+.byte 0xff
+.byte 0x31
+.byte 0x31
+.byte 0x80
+.byte 0x80
Index: chromium-12 3.0.6312.58 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s
===================================================================
===================================================================
--- /dev/null
--- /dev/null
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s
+++ chromium-12 4.0.6367.60 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s
@@ -0,0 +1,23 @@
@@ -0,0 +1,23 @@
+ .text
+ .text
+foo:
+foo:
@ -8698,10 +8687,10 @@ Index: chromium-123.0.6312.58/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-12 3.0.6312.58 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s
===================================================================
===================================================================
--- /dev/null
--- /dev/null
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s
+++ chromium-12 4.0.6367.60 /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"
@ -8881,15 +8870,30 @@ Index: chromium-123.0.6312.58/third_party/boringssl/src/util/fipstools/delocate/
+.byte 0xff
+.byte 0xff
+.byte 0x31
+.byte 0x31
+.byte 0x80
+.byte 0x80
Index: chromium-12 3.0.6312.58 /third_party/boringssl/src/util/generate_build_files.py
Index: chromium-12 4.0.6367.60 /third_party/boringssl/src/util/generate_build_files.py
===================================================================
===================================================================
--- chromium-12 3.0.6312.58 .orig/third_party/boringssl/src/util/generate_build_files.py
--- chromium-12 4.0.6367.60 .orig/third_party/boringssl/src/util/generate_build_files.py
+++ chromium-12 3.0.6312.58 /third_party/boringssl/src/util/generate_build_files.py
+++ chromium-12 4.0.6367.60 /third_party/boringssl/src/util/generate_build_files.py
@@ -34,6 +34,7 @@ OS_ARCH_COMBOS = [
@@ -34,6 +34,7 @@ OS_ARCH_COMBOS = [
('apple', 'x86_64', 'macosx', [], 'S'),
('apple', 'x86_64', 'macosx', [], 'S'),
('linux', 'arm', 'linux32', [], 'S'),
('linux', 'arm', 'linux32', [], 'S'),
('linux', 'aarch64', 'linux64', [], 'S'),
('linux', 'aarch64', 'linux64', [], 'S'),
+ ('linux', 'ppc64le', 'linux64le', [], 'S'),
+ ('linux', 'ppc64le', 'linux64le', [], 'S'),
('linux', 'x86', 'elf', ['-fPIC', '-DOPENSSL_IA32_SSE2' ], 'S'),
('linux', 'x86', 'elf', ['-fPIC'], 'S'),
('linux', 'x86_64', 'elf', [], 'S'),
('linux', 'x86_64', 'elf', [], 'S'),
('win', 'x86', 'win32n', ['-DOPENSSL_IA32_SSE2'], 'asm'),
('win', 'x86', 'win32n', [], 'asm'),
Index: chromium-124.0.6367.60/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.c
===================================================================
--- chromium-124.0.6367.60.orig/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.c
+++ chromium-124.0.6367.60/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.c
@@ -416,6 +416,10 @@ static void sha1_block_data_order(uint32
return;
}
#endif
+#if defined(SHA1_ASM_PPC64)
+ sha1_block_data_order_ppc64(state, data, num);
+ return;
+#endif
sha1_block_data_order_nohw(state, data, num);
}