From 1627871d18dc2e0a7ff38959dd3af7dc98ae1cf6 Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Mon, 4 Jun 2018 10:16:16 -0700 Subject: [PATCH] Include bn/internal.h for RSAZ code. When building files separately, omitting this causes some #defines to be missing. Change-Id: I235231467d3f51ee0a53325698356aefa72c6a67 Reviewed-on: https://boringssl-review.googlesource.com/28944 Commit-Queue: Adam Langley Commit-Queue: David Benjamin Reviewed-by: David Benjamin CQ-Verified: CQ bot account: commit-bot@chromium.org --- crypto/fipsmodule/bn/rsaz_exp.c | 1 + crypto/fipsmodule/bn/rsaz_exp.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/crypto/fipsmodule/bn/rsaz_exp.c b/crypto/fipsmodule/bn/rsaz_exp.c index 79a04e2e..3f355b64 100644 --- a/crypto/fipsmodule/bn/rsaz_exp.c +++ b/crypto/fipsmodule/bn/rsaz_exp.c @@ -20,6 +20,7 @@ #include +#include "internal.h" #include "../../internal.h" diff --git a/crypto/fipsmodule/bn/rsaz_exp.h b/crypto/fipsmodule/bn/rsaz_exp.h index 4819fdcd..b6aea144 100644 --- a/crypto/fipsmodule/bn/rsaz_exp.h +++ b/crypto/fipsmodule/bn/rsaz_exp.h @@ -17,6 +17,8 @@ #include +#include "internal.h" + // RSAZ_1024_mod_exp_avx2 sets |result| to |base_norm| raised to |exponent| // modulo |m_norm|. |base_norm| must be fully-reduced and |exponent| must have // the high bit set (it is 1024 bits wide). |RR| and |k0| must be |RR| and |n0|,