From 470a930d9734686d23d8e4cba31c7319d47b915b Mon Sep 17 00:00:00 2001 From: Pete Bentley Date: Wed, 2 Oct 2019 14:44:32 +0100 Subject: external/boringssl: Sync to 6e7255c17e1a7348a2377fbc804441dd284806e2. This includes the following changes: https://boringssl.googlesource.com/boringssl/+log/3a3552247ecb0bfb260a36d9da7a3bce7fdc3f8a..6e7255c17e1a7348a2377fbc804441dd284806e2 Key changes for Android are 1458b49 Switch to using SHA-256 for FIPS integrity check on Android. 9638f8f Use a smaller hex digest in FIPS flag files when SHA-256 used. 6e7255c Use a pointer to module_hash in boringssl_fips_self_test() args. Bug: 141710485 Test: atest CtsLibcoreTestCases CtsLibcoreOkHttpTestCases Change-Id: Ie3900ac71bf6c8ea3e413ee4c3438b4822560df4 --- mac-x86/crypto/fipsmodule/aesni-x86.S | 8 ++++---- mac-x86/crypto/fipsmodule/vpaes-x86.S | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'mac-x86') diff --git a/mac-x86/crypto/fipsmodule/aesni-x86.S b/mac-x86/crypto/fipsmodule/aesni-x86.S index 17eeaeac..db7efffd 100644 --- a/mac-x86/crypto/fipsmodule/aesni-x86.S +++ b/mac-x86/crypto/fipsmodule/aesni-x86.S @@ -6,14 +6,14 @@ #include #endif .text -#ifndef NDEBUG +#ifdef BORINGSSL_DISPATCH_TEST #endif .globl _aes_hw_encrypt .private_extern _aes_hw_encrypt .align 4 _aes_hw_encrypt: L_aes_hw_encrypt_begin: -#ifndef NDEBUG +#ifdef BORINGSSL_DISPATCH_TEST pushl %ebx pushl %edx call L000pic @@ -818,7 +818,7 @@ L_aes_hw_ctr32_encrypt_blocks_begin: pushl %ebx pushl %esi pushl %edi -#ifndef NDEBUG +#ifdef BORINGSSL_DISPATCH_TEST pushl %ebx pushl %edx call L038pic @@ -2403,7 +2403,7 @@ L097bad_keybits: .align 4 _aes_hw_set_encrypt_key: L_aes_hw_set_encrypt_key_begin: -#ifndef NDEBUG +#ifdef BORINGSSL_DISPATCH_TEST pushl %ebx pushl %edx call L116pic diff --git a/mac-x86/crypto/fipsmodule/vpaes-x86.S b/mac-x86/crypto/fipsmodule/vpaes-x86.S index 22043e2a..6b5a88b3 100644 --- a/mac-x86/crypto/fipsmodule/vpaes-x86.S +++ b/mac-x86/crypto/fipsmodule/vpaes-x86.S @@ -6,7 +6,7 @@ #include #endif .text -#ifndef NDEBUG +#ifdef BORINGSSL_DISPATCH_TEST #endif .align 6,0x90 L_vpaes_consts: @@ -468,7 +468,7 @@ L_vpaes_set_encrypt_key_begin: pushl %ebx pushl %esi pushl %edi -#ifndef NDEBUG +#ifdef BORINGSSL_DISPATCH_TEST pushl %ebx pushl %edx call L016pic @@ -549,7 +549,7 @@ L_vpaes_encrypt_begin: pushl %ebx pushl %esi pushl %edi -#ifndef NDEBUG +#ifdef BORINGSSL_DISPATCH_TEST pushl %ebx pushl %edx call L019pic -- cgit v1.2.3