From d0e011bfc0931e368ad234089167f871f429a730 Mon Sep 17 00:00:00 2001 From: Pavel Shliak Date: Thu, 21 Nov 2024 02:10:48 +0400 Subject: [PATCH] LibCrypto: Clean up #include directives This change aims to improve the speed of incremental builds. --- Libraries/LibCrypto/ASN1/ASN1.h | 1 - Libraries/LibCrypto/ASN1/DER.h | 1 - Libraries/LibCrypto/ASN1/PEM.h | 3 +-- Libraries/LibCrypto/Authentication/GHash.h | 1 - Libraries/LibCrypto/BigInt/Algorithms/BitwiseOperations.cpp | 3 +-- Libraries/LibCrypto/BigInt/Algorithms/Division.cpp | 1 - Libraries/LibCrypto/BigInt/SignedBigInteger.h | 1 - Libraries/LibCrypto/BigInt/UnsignedBigInteger.h | 1 - Libraries/LibCrypto/Checksum/CRC32.cpp | 1 - Libraries/LibCrypto/Cipher/AES.h | 1 - Libraries/LibCrypto/Cipher/ChaCha20.h | 2 +- Libraries/LibCrypto/Cipher/Cipher.h | 1 - Libraries/LibCrypto/Curves/Curve25519.h | 2 -- Libraries/LibCrypto/Curves/Ed25519.h | 1 - Libraries/LibCrypto/Curves/X25519.cpp | 1 - Libraries/LibCrypto/NumberTheory/ModularFunctions.cpp | 1 + Libraries/LibCrypto/NumberTheory/ModularFunctions.h | 1 - Libraries/LibTLS/Record.cpp | 1 + Meta/Lagom/Fuzzers/FuzzPEM.cpp | 1 + 19 files changed, 6 insertions(+), 19 deletions(-) diff --git a/Libraries/LibCrypto/ASN1/ASN1.h b/Libraries/LibCrypto/ASN1/ASN1.h index dea932271a9..1acf82c5509 100644 --- a/Libraries/LibCrypto/ASN1/ASN1.h +++ b/Libraries/LibCrypto/ASN1/ASN1.h @@ -8,7 +8,6 @@ #include #include -#include namespace Crypto::ASN1 { diff --git a/Libraries/LibCrypto/ASN1/DER.h b/Libraries/LibCrypto/ASN1/DER.h index b9a09d7b0b3..6bcc4a132b8 100644 --- a/Libraries/LibCrypto/ASN1/DER.h +++ b/Libraries/LibCrypto/ASN1/DER.h @@ -7,7 +7,6 @@ #pragma once #include -#include #include #include #include diff --git a/Libraries/LibCrypto/ASN1/PEM.h b/Libraries/LibCrypto/ASN1/PEM.h index 15a1914852c..c34a081c402 100644 --- a/Libraries/LibCrypto/ASN1/PEM.h +++ b/Libraries/LibCrypto/ASN1/PEM.h @@ -6,9 +6,8 @@ #pragma once +#include #include -#include -#include namespace Crypto { diff --git a/Libraries/LibCrypto/Authentication/GHash.h b/Libraries/LibCrypto/Authentication/GHash.h index 2839d3300c5..c2c4d8795c1 100644 --- a/Libraries/LibCrypto/Authentication/GHash.h +++ b/Libraries/LibCrypto/Authentication/GHash.h @@ -10,7 +10,6 @@ #include #include #include -#include namespace Crypto::Authentication { diff --git a/Libraries/LibCrypto/BigInt/Algorithms/BitwiseOperations.cpp b/Libraries/LibCrypto/BigInt/Algorithms/BitwiseOperations.cpp index fd4376a8d32..980596181ca 100644 --- a/Libraries/LibCrypto/BigInt/Algorithms/BitwiseOperations.cpp +++ b/Libraries/LibCrypto/BigInt/Algorithms/BitwiseOperations.cpp @@ -6,9 +6,8 @@ */ #include "UnsignedBigIntegerAlgorithms.h" -#include -#include #include +#include namespace Crypto { diff --git a/Libraries/LibCrypto/BigInt/Algorithms/Division.cpp b/Libraries/LibCrypto/BigInt/Algorithms/Division.cpp index 5cc6149bb52..cbdb1c6f47a 100644 --- a/Libraries/LibCrypto/BigInt/Algorithms/Division.cpp +++ b/Libraries/LibCrypto/BigInt/Algorithms/Division.cpp @@ -7,7 +7,6 @@ #include "UnsignedBigIntegerAlgorithms.h" #include -#include namespace Crypto { diff --git a/Libraries/LibCrypto/BigInt/SignedBigInteger.h b/Libraries/LibCrypto/BigInt/SignedBigInteger.h index 725e4f8bdf2..1a61e310994 100644 --- a/Libraries/LibCrypto/BigInt/SignedBigInteger.h +++ b/Libraries/LibCrypto/BigInt/SignedBigInteger.h @@ -9,7 +9,6 @@ #include #include -#include #include namespace Crypto { diff --git a/Libraries/LibCrypto/BigInt/UnsignedBigInteger.h b/Libraries/LibCrypto/BigInt/UnsignedBigInteger.h index 49839fc09e0..a217b1d38ee 100644 --- a/Libraries/LibCrypto/BigInt/UnsignedBigInteger.h +++ b/Libraries/LibCrypto/BigInt/UnsignedBigInteger.h @@ -9,7 +9,6 @@ #pragma once #include -#include #include #include #include diff --git a/Libraries/LibCrypto/Checksum/CRC32.cpp b/Libraries/LibCrypto/Checksum/CRC32.cpp index 6427ae08e45..87699a3a81d 100644 --- a/Libraries/LibCrypto/Checksum/CRC32.cpp +++ b/Libraries/LibCrypto/Checksum/CRC32.cpp @@ -5,7 +5,6 @@ */ #include -#include #include #include #include diff --git a/Libraries/LibCrypto/Cipher/AES.h b/Libraries/LibCrypto/Cipher/AES.h index 2672579669a..eb0dcec2ae2 100644 --- a/Libraries/LibCrypto/Cipher/AES.h +++ b/Libraries/LibCrypto/Cipher/AES.h @@ -8,7 +8,6 @@ #pragma once #include -#include #include #include #include diff --git a/Libraries/LibCrypto/Cipher/ChaCha20.h b/Libraries/LibCrypto/Cipher/ChaCha20.h index 333bb6d6b2e..71ddb2c79f9 100644 --- a/Libraries/LibCrypto/Cipher/ChaCha20.h +++ b/Libraries/LibCrypto/Cipher/ChaCha20.h @@ -6,7 +6,7 @@ #pragma once -#include +#include namespace Crypto::Cipher { diff --git a/Libraries/LibCrypto/Cipher/Cipher.h b/Libraries/LibCrypto/Cipher/Cipher.h index 10f5b63876c..e83846ff426 100644 --- a/Libraries/LibCrypto/Cipher/Cipher.h +++ b/Libraries/LibCrypto/Cipher/Cipher.h @@ -7,7 +7,6 @@ #pragma once -#include #include #include diff --git a/Libraries/LibCrypto/Curves/Curve25519.h b/Libraries/LibCrypto/Curves/Curve25519.h index eb4d32e0de8..b0ab7a9e86e 100644 --- a/Libraries/LibCrypto/Curves/Curve25519.h +++ b/Libraries/LibCrypto/Curves/Curve25519.h @@ -6,8 +6,6 @@ #pragma once -#include - namespace Crypto::Curves { class Curve25519 { diff --git a/Libraries/LibCrypto/Curves/Ed25519.h b/Libraries/LibCrypto/Curves/Ed25519.h index 81b1a42b59c..e7f5b21a6cc 100644 --- a/Libraries/LibCrypto/Curves/Ed25519.h +++ b/Libraries/LibCrypto/Curves/Ed25519.h @@ -7,7 +7,6 @@ #pragma once #include -#include namespace Crypto::Curves { diff --git a/Libraries/LibCrypto/Curves/X25519.cpp b/Libraries/LibCrypto/Curves/X25519.cpp index 61b4533490e..bf028bf99f5 100644 --- a/Libraries/LibCrypto/Curves/X25519.cpp +++ b/Libraries/LibCrypto/Curves/X25519.cpp @@ -5,7 +5,6 @@ */ #include -#include #include #include #include diff --git a/Libraries/LibCrypto/NumberTheory/ModularFunctions.cpp b/Libraries/LibCrypto/NumberTheory/ModularFunctions.cpp index cd933bb57c8..6f466d396ad 100644 --- a/Libraries/LibCrypto/NumberTheory/ModularFunctions.cpp +++ b/Libraries/LibCrypto/NumberTheory/ModularFunctions.cpp @@ -5,6 +5,7 @@ */ #include +#include #include #include diff --git a/Libraries/LibCrypto/NumberTheory/ModularFunctions.h b/Libraries/LibCrypto/NumberTheory/ModularFunctions.h index 6a00e8a32d9..3204fe0fbf7 100644 --- a/Libraries/LibCrypto/NumberTheory/ModularFunctions.h +++ b/Libraries/LibCrypto/NumberTheory/ModularFunctions.h @@ -6,7 +6,6 @@ #pragma once -#include #include namespace Crypto::NumberTheory { diff --git a/Libraries/LibTLS/Record.cpp b/Libraries/LibTLS/Record.cpp index 8041f3df1f2..ad800b1d0bc 100644 --- a/Libraries/LibTLS/Record.cpp +++ b/Libraries/LibTLS/Record.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include diff --git a/Meta/Lagom/Fuzzers/FuzzPEM.cpp b/Meta/Lagom/Fuzzers/FuzzPEM.cpp index 0fb4dd3ed8e..14c6010ac40 100644 --- a/Meta/Lagom/Fuzzers/FuzzPEM.cpp +++ b/Meta/Lagom/Fuzzers/FuzzPEM.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include #include #include #include