diff --git a/src/lib/prov/pkcs11/p11_ecdh.cpp b/src/lib/prov/pkcs11/p11_ecdh.cpp index f7881d6400d..a9849c2a03c 100644 --- a/src/lib/prov/pkcs11/p11_ecdh.cpp +++ b/src/lib/prov/pkcs11/p11_ecdh.cpp @@ -11,9 +11,9 @@ #if defined(BOTAN_HAS_ECDH) #include + #include #include #include - #include namespace Botan::PKCS11 { diff --git a/src/lib/prov/pkcs11/p11_ecdsa.cpp b/src/lib/prov/pkcs11/p11_ecdsa.cpp index 3fc4589c087..e374463b644 100644 --- a/src/lib/prov/pkcs11/p11_ecdsa.cpp +++ b/src/lib/prov/pkcs11/p11_ecdsa.cpp @@ -10,10 +10,10 @@ #if defined(BOTAN_HAS_ECDSA) + #include #include #include #include - #include namespace Botan::PKCS11 { diff --git a/src/lib/prov/pkcs11/p11_rsa.cpp b/src/lib/prov/pkcs11/p11_rsa.cpp index c891574ee0e..e54680d38cd 100644 --- a/src/lib/prov/pkcs11/p11_rsa.cpp +++ b/src/lib/prov/pkcs11/p11_rsa.cpp @@ -16,7 +16,6 @@ #include #include #include - #include #include namespace Botan::PKCS11 { diff --git a/src/lib/prov/tpm/tpm.cpp b/src/lib/prov/tpm/tpm.cpp index b8d9d537eab..3eeff4311b7 100644 --- a/src/lib/prov/tpm/tpm.cpp +++ b/src/lib/prov/tpm/tpm.cpp @@ -9,10 +9,10 @@ #include #include +#include #include #include #include -#include #include #include diff --git a/src/lib/pubkey/info.txt b/src/lib/pubkey/info.txt index f91d90faf11..bad0debd1d2 100644 --- a/src/lib/pubkey/info.txt +++ b/src/lib/pubkey/info.txt @@ -11,6 +11,7 @@ brief -> "Implementations of public key schemes" pk_algs.h pk_keys.h pk_ops_fwd.h +pk_ops.h pkcs8.h pubkey.h x509_key.h @@ -18,7 +19,6 @@ x509_key.h blinding.h -pk_ops.h pk_ops_impl.h workfactor.h diff --git a/src/lib/pubkey/mce/mce_internal.h b/src/lib/pubkey/mce/mce_internal.h index e34de9e438a..4e14ff75dcd 100644 --- a/src/lib/pubkey/mce/mce_internal.h +++ b/src/lib/pubkey/mce/mce_internal.h @@ -13,7 +13,7 @@ #define BOTAN_MCELIECE_INTERNAL_H_ #include -#include +#include #include namespace Botan { diff --git a/src/lib/pubkey/pk_keys.cpp b/src/lib/pubkey/pk_keys.cpp index 300fe05b2e3..336be14255c 100644 --- a/src/lib/pubkey/pk_keys.cpp +++ b/src/lib/pubkey/pk_keys.cpp @@ -10,8 +10,8 @@ #include #include #include +#include #include -#include namespace Botan { diff --git a/src/lib/pubkey/pk_ops.h b/src/lib/pubkey/pk_ops.h index 846ceb94bc7..8af657ec759 100644 --- a/src/lib/pubkey/pk_ops.h +++ b/src/lib/pubkey/pk_ops.h @@ -33,7 +33,7 @@ namespace PK_Ops { /** * Public key encryption interface */ -class Encryption { +class BOTAN_PUBLIC_API(3, 3) Encryption { public: virtual secure_vector encrypt(const uint8_t msg[], size_t msg_len, RandomNumberGenerator& rng) = 0; @@ -47,7 +47,7 @@ class Encryption { /** * Public key decryption interface */ -class Decryption { +class BOTAN_PUBLIC_API(3, 3) Decryption { public: virtual secure_vector decrypt(uint8_t& valid_mask, const uint8_t ciphertext[], @@ -61,7 +61,7 @@ class Decryption { /** * Public key signature verification interface */ -class Verification { +class BOTAN_PUBLIC_API(3, 3) Verification { public: /** * Add more data to the message currently being signed @@ -86,7 +86,7 @@ class Verification { /** * Public key signature creation interface */ -class Signature { +class BOTAN_PUBLIC_API(3, 3) Signature { public: /** * Add more data to the message currently being signed @@ -124,7 +124,7 @@ class Signature { /** * A generic key agreement operation (eg DH or ECDH) */ -class Key_Agreement { +class BOTAN_PUBLIC_API(3, 3) Key_Agreement { public: virtual secure_vector agree( size_t key_len, const uint8_t other_key[], size_t other_key_len, const uint8_t salt[], size_t salt_len) = 0; @@ -137,7 +137,7 @@ class Key_Agreement { /** * KEM (key encapsulation) */ -class KEM_Encryption { +class BOTAN_PUBLIC_API(3, 3) KEM_Encryption { public: virtual void kem_encrypt(std::span out_encapsulated_key, std::span out_shared_key, @@ -152,7 +152,7 @@ class KEM_Encryption { virtual ~KEM_Encryption() = default; }; -class KEM_Decryption { +class BOTAN_PUBLIC_API(3, 3) KEM_Decryption { public: virtual void kem_decrypt(std::span out_shared_key, std::span encapsulated_key, diff --git a/src/lib/pubkey/pk_ops_impl.h b/src/lib/pubkey/pk_ops_impl.h index d95f960158b..990ec3e6a7f 100644 --- a/src/lib/pubkey/pk_ops_impl.h +++ b/src/lib/pubkey/pk_ops_impl.h @@ -10,8 +10,8 @@ #include #include +#include #include -#include namespace Botan::PK_Ops { diff --git a/src/lib/pubkey/pubkey.cpp b/src/lib/pubkey/pubkey.cpp index 35c970b0e53..903195b9003 100644 --- a/src/lib/pubkey/pubkey.cpp +++ b/src/lib/pubkey/pubkey.cpp @@ -10,11 +10,11 @@ #include #include #include +#include #include #include #include #include -#include #include namespace Botan { diff --git a/src/lib/pubkey/sm2/sm2_enc.cpp b/src/lib/pubkey/sm2/sm2_enc.cpp index 7985b2b7d0c..cb852e0d65d 100644 --- a/src/lib/pubkey/sm2/sm2_enc.cpp +++ b/src/lib/pubkey/sm2/sm2_enc.cpp @@ -11,9 +11,9 @@ #include #include #include +#include #include #include -#include #include namespace Botan { diff --git a/src/lib/pubkey/sphincsplus/sphincsplus_common/sphincsplus.cpp b/src/lib/pubkey/sphincsplus/sphincsplus_common/sphincsplus.cpp index c7e3fad5878..92a54840aac 100644 --- a/src/lib/pubkey/sphincsplus/sphincsplus_common/sphincsplus.cpp +++ b/src/lib/pubkey/sphincsplus/sphincsplus_common/sphincsplus.cpp @@ -6,9 +6,9 @@ * Botan is released under the Simplified BSD License (see license.txt) **/ -#include #include +#include #include #include #include diff --git a/src/lib/pubkey/xmss/xmss_signature_operation.h b/src/lib/pubkey/xmss/xmss_signature_operation.h index f500a0a1580..a3fa001902b 100644 --- a/src/lib/pubkey/xmss/xmss_signature_operation.h +++ b/src/lib/pubkey/xmss/xmss_signature_operation.h @@ -8,8 +8,8 @@ #ifndef BOTAN_XMSS_SIGNATURE_OPERATION_H_ #define BOTAN_XMSS_SIGNATURE_OPERATION_H_ +#include #include -#include #include #include #include diff --git a/src/lib/pubkey/xmss/xmss_verification_operation.h b/src/lib/pubkey/xmss/xmss_verification_operation.h index 4ff02510c97..db5e7d266dc 100644 --- a/src/lib/pubkey/xmss/xmss_verification_operation.h +++ b/src/lib/pubkey/xmss/xmss_verification_operation.h @@ -8,8 +8,8 @@ #ifndef BOTAN_XMSS_VERIFICATION_OPERATION_H_ #define BOTAN_XMSS_VERIFICATION_OPERATION_H_ +#include #include -#include #include namespace Botan {