diff --git a/third_party/boringssl/src/crypto/fipsmodule/md5/md5.c b/third_party/boringssl/src/crypto/fipsmodule/md5/md5.c index 5820cac0258..eba34bce83d 100644 --- a/third_party/boringssl/src/crypto/fipsmodule/md5/md5.c +++ b/third_party/boringssl/src/crypto/fipsmodule/md5/md5.c @@ -83,14 +83,13 @@ int MD5_Init(MD5_CTX *md5) { return 1; } -#if !defined(OPENSSL_NO_ASM) && \ - (defined(OPENSSL_X86_64) || defined(OPENSSL_X86)) -#define MD5_ASM +#if defined(MD5_ASM) #define md5_block_data_order md5_block_asm_data_order +#else +static void md5_block_data_order(uint32_t *state, const uint8_t *data, + size_t num); #endif -void md5_block_data_order(uint32_t *state, const uint8_t *data, size_t num); - void MD5_Transform(MD5_CTX *c, const uint8_t data[MD5_CBLOCK]) { md5_block_data_order(c->h, data, 1); } @@ -150,11 +149,12 @@ int MD5_Final(uint8_t out[MD5_DIGEST_LENGTH], MD5_CTX *c) { (a) += (b); \ } while (0) -#ifndef md5_block_data_order +#ifndef MD5_ASM #ifdef X #undef X #endif -void md5_block_data_order(uint32_t *state, const uint8_t *data, size_t num) { +static void md5_block_data_order(uint32_t *state, const uint8_t *data, + size_t num) { uint32_t A, B, C, D; uint32_t XX0, XX1, XX2, XX3, XX4, XX5, XX6, XX7, XX8, XX9, XX10, XX11, XX12, XX13, XX14, XX15;