From 899835fad40f50f4c29bf7042b415eb72ad0e7d7 Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Mon, 21 Jan 2019 09:04:11 -0800 Subject: [PATCH] Rename Fiat include files to end in .h Otherwise generate_build_files.py thinks that they're top-level source files. Fixes grpc/grpc#17780 Change-Id: I9f14a816a5045c1101841a2ef7ef9868abcd5d12 Reviewed-on: https://boringssl-review.googlesource.com/c/34364 Reviewed-by: Adam Langley --- third_party/fiat/curve25519.c | 12 ++++++------ .../fiat/{curve25519_32.c => curve25519_32.h} | 0 .../fiat/{curve25519_64.c => curve25519_64.h} | 0 third_party/fiat/p256.c | 4 ++-- third_party/fiat/{p256_32.c => p256_32.h} | 0 third_party/fiat/{p256_64.c => p256_64.h} | 0 6 files changed, 8 insertions(+), 8 deletions(-) rename third_party/fiat/{curve25519_32.c => curve25519_32.h} (100%) rename third_party/fiat/{curve25519_64.c => curve25519_64.h} (100%) rename third_party/fiat/{p256_32.c => p256_32.h} (100%) rename third_party/fiat/{p256_64.c => p256_64.h} (100%) diff --git a/third_party/fiat/curve25519.c b/third_party/fiat/curve25519.c index c5fa5da8..2e568c66 100644 --- a/third_party/fiat/curve25519.c +++ b/third_party/fiat/curve25519.c @@ -46,9 +46,9 @@ #include "./curve25519_tables.h" #if defined(BORINGSSL_CURVE25519_64BIT) -#include "./curve25519_64.c" +#include "./curve25519_64.h" #else -#include "./curve25519_32.c" +#include "./curve25519_32.h" #endif // BORINGSSL_CURVE25519_64BIT @@ -87,7 +87,7 @@ typedef uint64_t fe_limb_t; // [0x0 ~> 0x8cccccccccccc], // [0x0 ~> 0x8cccccccccccc]] // -// See comments in curve25519_64.c for which functions use these bounds for +// See comments in curve25519_64.h for which functions use these bounds for // inputs or outputs. #define assert_fe(f) \ do { \ @@ -104,7 +104,7 @@ typedef uint64_t fe_limb_t; // [0x0 ~> 0x1a666666666664], // [0x0 ~> 0x1a666666666664]] // -// See comments in curve25519_64.c for which functions use these bounds for +// See comments in curve25519_64.h for which functions use these bounds for // inputs or outputs. #define assert_fe_loose(f) \ do { \ @@ -126,7 +126,7 @@ typedef uint32_t fe_limb_t; // [0x0 ~> 0x4666666], [0x0 ~> 0x2333333], // [0x0 ~> 0x4666666], [0x0 ~> 0x2333333]] // -// See comments in curve25519_32.c for which functions use these bounds for +// See comments in curve25519_32.h for which functions use these bounds for // inputs or outputs. #define assert_fe(f) \ do { \ @@ -144,7 +144,7 @@ typedef uint32_t fe_limb_t; // [0x0 ~> 0xd333332], [0x0 ~> 0x6999999], // [0x0 ~> 0xd333332], [0x0 ~> 0x6999999]] // -// See comments in curve25519_32.c for which functions use these bounds for +// See comments in curve25519_32.h for which functions use these bounds for // inputs or outputs. #define assert_fe_loose(f) \ do { \ diff --git a/third_party/fiat/curve25519_32.c b/third_party/fiat/curve25519_32.h similarity index 100% rename from third_party/fiat/curve25519_32.c rename to third_party/fiat/curve25519_32.h diff --git a/third_party/fiat/curve25519_64.c b/third_party/fiat/curve25519_64.h similarity index 100% rename from third_party/fiat/curve25519_64.c rename to third_party/fiat/curve25519_64.h diff --git a/third_party/fiat/p256.c b/third_party/fiat/p256.c index 3c2ce1d0..05fe2b9d 100644 --- a/third_party/fiat/p256.c +++ b/third_party/fiat/p256.c @@ -46,9 +46,9 @@ // MSVC does not implement uint128_t, and crashes with intrinsics #if defined(BORINGSSL_HAS_UINT128) #define BORINGSSL_NISTP256_64BIT 1 -#include "p256_64.c" +#include "p256_64.h" #else -#include "p256_32.c" +#include "p256_32.h" #endif diff --git a/third_party/fiat/p256_32.c b/third_party/fiat/p256_32.h similarity index 100% rename from third_party/fiat/p256_32.c rename to third_party/fiat/p256_32.h diff --git a/third_party/fiat/p256_64.c b/third_party/fiat/p256_64.h similarity index 100% rename from third_party/fiat/p256_64.c rename to third_party/fiat/p256_64.h