diff options
author | Jack Lloyd <[email protected]> | 2020-11-05 03:47:06 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2020-11-06 11:31:22 -0500 |
commit | a55e4b22b6cbeeb30ca787d4ea4e3933ccccbdf1 (patch) | |
tree | 3d066440f30d30a46179caded3f1273d06a4dd95 /src/lib/block/serpent | |
parent | 7c27982e27b953682554de3c4b22843e0e7461e7 (diff) |
Remove deprecated headers, make more headers internal
Now modules default to internal headers instead of defaulting to public; making
a new public API should be a visible and intentional choice.
Brings the public header count from over 300 to around 150.
Also removes the deprecated tls_blocking interface
Diffstat (limited to 'src/lib/block/serpent')
-rw-r--r-- | src/lib/block/serpent/info.txt | 8 | ||||
-rw-r--r-- | src/lib/block/serpent/serpent.cpp | 6 | ||||
-rw-r--r-- | src/lib/block/serpent/serpent.h | 4 | ||||
-rw-r--r-- | src/lib/block/serpent/serpent_avx2/serpent_avx2.cpp | 2 | ||||
-rw-r--r-- | src/lib/block/serpent/serpent_simd/serpent_simd.cpp | 2 |
5 files changed, 6 insertions, 16 deletions
diff --git a/src/lib/block/serpent/info.txt b/src/lib/block/serpent/info.txt index 89b860ce4..1316ef0e2 100644 --- a/src/lib/block/serpent/info.txt +++ b/src/lib/block/serpent/info.txt @@ -1,11 +1,3 @@ <defines> SERPENT -> 20131128 </defines> - -<header:public> -serpent.h -</header:public> - -<header:internal> -serpent_sbox.h -</header:internal> diff --git a/src/lib/block/serpent/serpent.cpp b/src/lib/block/serpent/serpent.cpp index ff37a177c..412b173a5 100644 --- a/src/lib/block/serpent/serpent.cpp +++ b/src/lib/block/serpent/serpent.cpp @@ -5,9 +5,9 @@ * Botan is released under the Simplified BSD License (see license.txt) */ -#include <botan/serpent.h> -#include <botan/loadstor.h> -#include <botan/rotate.h> +#include <botan/internal/serpent.h> +#include <botan/internal/loadstor.h> +#include <botan/internal/rotate.h> #include <botan/internal/serpent_sbox.h> #if defined(BOTAN_HAS_SERPENT_SIMD) || defined(BOTAN_HAS_SERPENT_AVX2) diff --git a/src/lib/block/serpent/serpent.h b/src/lib/block/serpent/serpent.h index 64eb8a8b0..81c841190 100644 --- a/src/lib/block/serpent/serpent.h +++ b/src/lib/block/serpent/serpent.h @@ -10,15 +10,13 @@ #include <botan/block_cipher.h> -BOTAN_FUTURE_INTERNAL_HEADER(serpent.h) - namespace Botan { /** * Serpent is the most conservative of the AES finalists * https://www.cl.cam.ac.uk/~rja14/serpent.html */ -class BOTAN_PUBLIC_API(2,0) Serpent final : public Block_Cipher_Fixed_Params<16, 16, 32, 8> +class Serpent final : public Block_Cipher_Fixed_Params<16, 16, 32, 8> { public: void encrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const override; diff --git a/src/lib/block/serpent/serpent_avx2/serpent_avx2.cpp b/src/lib/block/serpent/serpent_avx2/serpent_avx2.cpp index 0db332035..028ee77e5 100644 --- a/src/lib/block/serpent/serpent_avx2/serpent_avx2.cpp +++ b/src/lib/block/serpent/serpent_avx2/serpent_avx2.cpp @@ -4,7 +4,7 @@ * Botan is released under the Simplified BSD License (see license.txt) */ -#include <botan/serpent.h> +#include <botan/internal/serpent.h> #include <botan/internal/serpent_sbox.h> #include <botan/internal/simd_avx2.h> diff --git a/src/lib/block/serpent/serpent_simd/serpent_simd.cpp b/src/lib/block/serpent/serpent_simd/serpent_simd.cpp index 8ac783ba5..5d1bc28f2 100644 --- a/src/lib/block/serpent/serpent_simd/serpent_simd.cpp +++ b/src/lib/block/serpent/serpent_simd/serpent_simd.cpp @@ -5,7 +5,7 @@ * Botan is released under the Simplified BSD License (see license.txt) */ -#include <botan/serpent.h> +#include <botan/internal/serpent.h> #include <botan/internal/serpent_sbox.h> #include <botan/internal/simd_32.h> |