aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bip324.cpp5
-rw-r--r--src/bip324.h1
-rw-r--r--src/crypto/chacha20poly1305.cpp2
-rw-r--r--src/crypto/chacha20poly1305.h1
-rw-r--r--src/test/bip324_tests.cpp4
-rw-r--r--src/test/fuzz/bip324.cpp1
6 files changed, 9 insertions, 5 deletions
diff --git a/src/bip324.cpp b/src/bip324.cpp
index 7ed99e5585..314e756829 100644
--- a/src/bip324.cpp
+++ b/src/bip324.cpp
@@ -8,14 +8,19 @@
#include <crypto/chacha20.h>
#include <crypto/chacha20poly1305.h>
#include <crypto/hkdf_sha256_32.h>
+#include <key.h>
+#include <pubkey.h>
#include <random.h>
#include <span.h>
#include <support/cleanse.h>
+#include <uint256.h>
#include <algorithm>
#include <assert.h>
#include <cstdint>
#include <cstddef>
+#include <iterator>
+#include <string>
BIP324Cipher::BIP324Cipher() noexcept
{
diff --git a/src/bip324.h b/src/bip324.h
index ecab299af5..0238c479c0 100644
--- a/src/bip324.h
+++ b/src/bip324.h
@@ -5,6 +5,7 @@
#ifndef BITCOIN_BIP324_H
#define BITCOIN_BIP324_H
+#include <array>
#include <cstddef>
#include <optional>
diff --git a/src/crypto/chacha20poly1305.cpp b/src/crypto/chacha20poly1305.cpp
index 2636ebe2b2..26161641bb 100644
--- a/src/crypto/chacha20poly1305.cpp
+++ b/src/crypto/chacha20poly1305.cpp
@@ -11,9 +11,7 @@
#include <support/cleanse.h>
#include <assert.h>
-#include <cstdint>
#include <cstddef>
-#include <iterator>
AEADChaCha20Poly1305::AEADChaCha20Poly1305(Span<const std::byte> key) noexcept : m_chacha20(UCharCast(key.data()))
{
diff --git a/src/crypto/chacha20poly1305.h b/src/crypto/chacha20poly1305.h
index dc8fb1cc13..a847c258ef 100644
--- a/src/crypto/chacha20poly1305.h
+++ b/src/crypto/chacha20poly1305.h
@@ -6,7 +6,6 @@
#define BITCOIN_CRYPTO_CHACHA20POLY1305_H
#include <cstddef>
-#include <cstdlib>
#include <stdint.h>
#include <crypto/chacha20.h>
diff --git a/src/test/bip324_tests.cpp b/src/test/bip324_tests.cpp
index 0bc22496e3..04472611ec 100644
--- a/src/test/bip324_tests.cpp
+++ b/src/test/bip324_tests.cpp
@@ -6,13 +6,15 @@
#include <chainparams.h>
#include <key.h>
#include <pubkey.h>
+#include <span.h>
#include <test/util/random.h>
#include <test/util/setup_common.h>
#include <util/strencodings.h>
#include <array>
-#include <vector>
#include <cstddef>
+#include <cstdint>
+#include <vector>
#include <boost/test/unit_test.hpp>
diff --git a/src/test/fuzz/bip324.cpp b/src/test/fuzz/bip324.cpp
index 8282261c52..98ac10e364 100644
--- a/src/test/fuzz/bip324.cpp
+++ b/src/test/fuzz/bip324.cpp
@@ -11,7 +11,6 @@
#include <test/util/xoroshiro128plusplus.h>
#include <cstdint>
-#include <tuple>
#include <vector>
namespace {