aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/hash
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/hash')
-rw-r--r--src/lib/hash/blake2/blake2b.h2
-rw-r--r--src/lib/hash/checksum/adler32/adler32.h2
-rw-r--r--src/lib/hash/checksum/crc24/crc24.h2
-rw-r--r--src/lib/hash/checksum/crc32/crc32.h2
-rw-r--r--src/lib/hash/comb4p/comb4p.h2
-rw-r--r--src/lib/hash/gost_3411/gost_3411.h2
-rw-r--r--src/lib/hash/hash.h2
-rw-r--r--src/lib/hash/keccak/keccak.h2
-rw-r--r--src/lib/hash/md4/md4.h2
-rw-r--r--src/lib/hash/md5/md5.h2
-rw-r--r--src/lib/hash/mdx_hash/mdx_hash.h2
-rw-r--r--src/lib/hash/par_hash/par_hash.h2
-rw-r--r--src/lib/hash/rmd160/rmd160.h2
-rw-r--r--src/lib/hash/sha1/sha160.h2
-rw-r--r--src/lib/hash/sha2_32/sha2_32.h4
-rw-r--r--src/lib/hash/sha2_64/sha2_64.h6
-rw-r--r--src/lib/hash/sha3/sha3.h10
-rw-r--r--src/lib/hash/shake/shake.h4
-rw-r--r--src/lib/hash/skein/skein_512.h2
-rw-r--r--src/lib/hash/tiger/tiger.h2
-rw-r--r--src/lib/hash/whirlpool/whrlpool.h2
21 files changed, 29 insertions, 29 deletions
diff --git a/src/lib/hash/blake2/blake2b.h b/src/lib/hash/blake2/blake2b.h
index c7ceac01e..c177cc620 100644
--- a/src/lib/hash/blake2/blake2b.h
+++ b/src/lib/hash/blake2/blake2b.h
@@ -23,7 +23,7 @@ enum blake2b_constant {
/**
* BLAKE2B
*/
-class BOTAN_DLL Blake2b final : public HashFunction
+class BOTAN_PUBLIC_API(2,0) Blake2b final : public HashFunction
{
public:
/**
diff --git a/src/lib/hash/checksum/adler32/adler32.h b/src/lib/hash/checksum/adler32/adler32.h
index 98ba4f91a..93a68267a 100644
--- a/src/lib/hash/checksum/adler32/adler32.h
+++ b/src/lib/hash/checksum/adler32/adler32.h
@@ -15,7 +15,7 @@ namespace Botan {
/**
* The Adler32 checksum, used in zlib
*/
-class BOTAN_DLL Adler32 final : public HashFunction
+class BOTAN_PUBLIC_API(2,0) Adler32 final : public HashFunction
{
public:
std::string name() const override { return "Adler32"; }
diff --git a/src/lib/hash/checksum/crc24/crc24.h b/src/lib/hash/checksum/crc24/crc24.h
index 203611b8f..91b947e00 100644
--- a/src/lib/hash/checksum/crc24/crc24.h
+++ b/src/lib/hash/checksum/crc24/crc24.h
@@ -15,7 +15,7 @@ namespace Botan {
/**
* 24-bit cyclic redundancy check
*/
-class BOTAN_DLL CRC24 final : public HashFunction
+class BOTAN_PUBLIC_API(2,0) CRC24 final : public HashFunction
{
public:
std::string name() const override { return "CRC24"; }
diff --git a/src/lib/hash/checksum/crc32/crc32.h b/src/lib/hash/checksum/crc32/crc32.h
index e1e266de3..6da2a06d4 100644
--- a/src/lib/hash/checksum/crc32/crc32.h
+++ b/src/lib/hash/checksum/crc32/crc32.h
@@ -15,7 +15,7 @@ namespace Botan {
/**
* 32-bit cyclic redundancy check
*/
-class BOTAN_DLL CRC32 final : public HashFunction
+class BOTAN_PUBLIC_API(2,0) CRC32 final : public HashFunction
{
public:
std::string name() const override { return "CRC32"; }
diff --git a/src/lib/hash/comb4p/comb4p.h b/src/lib/hash/comb4p/comb4p.h
index 9579db0ab..1cc9ff566 100644
--- a/src/lib/hash/comb4p/comb4p.h
+++ b/src/lib/hash/comb4p/comb4p.h
@@ -16,7 +16,7 @@ namespace Botan {
* Combines two hash functions using a Feistel scheme. Described in
* "On the Security of Hash Function Combiners", Anja Lehmann
*/
-class BOTAN_DLL Comb4P final : public HashFunction
+class BOTAN_PUBLIC_API(2,0) Comb4P final : public HashFunction
{
public:
/**
diff --git a/src/lib/hash/gost_3411/gost_3411.h b/src/lib/hash/gost_3411/gost_3411.h
index 51f010afb..cc38f1a87 100644
--- a/src/lib/hash/gost_3411/gost_3411.h
+++ b/src/lib/hash/gost_3411/gost_3411.h
@@ -16,7 +16,7 @@ namespace Botan {
/**
* GOST 34.11
*/
-class BOTAN_DLL GOST_34_11 final : public HashFunction
+class BOTAN_PUBLIC_API(2,0) GOST_34_11 final : public HashFunction
{
public:
std::string name() const override { return "GOST-R-34.11-94" ; }
diff --git a/src/lib/hash/hash.h b/src/lib/hash/hash.h
index db049989a..557e60476 100644
--- a/src/lib/hash/hash.h
+++ b/src/lib/hash/hash.h
@@ -16,7 +16,7 @@ namespace Botan {
/**
* This class represents hash function (message digest) objects
*/
-class BOTAN_DLL HashFunction : public Buffered_Computation
+class BOTAN_PUBLIC_API(2,0) HashFunction : public Buffered_Computation
{
public:
/**
diff --git a/src/lib/hash/keccak/keccak.h b/src/lib/hash/keccak/keccak.h
index 36e1ad9fe..72143c8e5 100644
--- a/src/lib/hash/keccak/keccak.h
+++ b/src/lib/hash/keccak/keccak.h
@@ -17,7 +17,7 @@ namespace Botan {
/**
* Keccak[1600], a SHA-3 candidate
*/
-class BOTAN_DLL Keccak_1600 final : public HashFunction
+class BOTAN_PUBLIC_API(2,0) Keccak_1600 final : public HashFunction
{
public:
diff --git a/src/lib/hash/md4/md4.h b/src/lib/hash/md4/md4.h
index c84cb0058..278bd16f7 100644
--- a/src/lib/hash/md4/md4.h
+++ b/src/lib/hash/md4/md4.h
@@ -15,7 +15,7 @@ namespace Botan {
/**
* MD4
*/
-class BOTAN_DLL MD4 final : public MDx_HashFunction
+class BOTAN_PUBLIC_API(2,0) MD4 final : public MDx_HashFunction
{
public:
std::string name() const override { return "MD4"; }
diff --git a/src/lib/hash/md5/md5.h b/src/lib/hash/md5/md5.h
index ee8d70e3f..3f4d52536 100644
--- a/src/lib/hash/md5/md5.h
+++ b/src/lib/hash/md5/md5.h
@@ -15,7 +15,7 @@ namespace Botan {
/**
* MD5
*/
-class BOTAN_DLL MD5 final : public MDx_HashFunction
+class BOTAN_PUBLIC_API(2,0) MD5 final : public MDx_HashFunction
{
public:
std::string name() const override { return "MD5"; }
diff --git a/src/lib/hash/mdx_hash/mdx_hash.h b/src/lib/hash/mdx_hash/mdx_hash.h
index 649cf387d..dd3faadd0 100644
--- a/src/lib/hash/mdx_hash/mdx_hash.h
+++ b/src/lib/hash/mdx_hash/mdx_hash.h
@@ -15,7 +15,7 @@ namespace Botan {
/**
* MDx Hash Function Base Class
*/
-class BOTAN_DLL MDx_HashFunction : public HashFunction
+class BOTAN_PUBLIC_API(2,0) MDx_HashFunction : public HashFunction
{
public:
/**
diff --git a/src/lib/hash/par_hash/par_hash.h b/src/lib/hash/par_hash/par_hash.h
index 85bf49208..c3cbdae49 100644
--- a/src/lib/hash/par_hash/par_hash.h
+++ b/src/lib/hash/par_hash/par_hash.h
@@ -16,7 +16,7 @@ namespace Botan {
/**
* Parallel Hashes
*/
-class BOTAN_DLL Parallel final : public HashFunction
+class BOTAN_PUBLIC_API(2,0) Parallel final : public HashFunction
{
public:
void clear() override;
diff --git a/src/lib/hash/rmd160/rmd160.h b/src/lib/hash/rmd160/rmd160.h
index f2b57ef33..3e0dbb9d7 100644
--- a/src/lib/hash/rmd160/rmd160.h
+++ b/src/lib/hash/rmd160/rmd160.h
@@ -15,7 +15,7 @@ namespace Botan {
/**
* RIPEMD-160
*/
-class BOTAN_DLL RIPEMD_160 final : public MDx_HashFunction
+class BOTAN_PUBLIC_API(2,0) RIPEMD_160 final : public MDx_HashFunction
{
public:
std::string name() const override { return "RIPEMD-160"; }
diff --git a/src/lib/hash/sha1/sha160.h b/src/lib/hash/sha1/sha160.h
index fd3c77d46..326ea6329 100644
--- a/src/lib/hash/sha1/sha160.h
+++ b/src/lib/hash/sha1/sha160.h
@@ -15,7 +15,7 @@ namespace Botan {
/**
* NIST's SHA-160
*/
-class BOTAN_DLL SHA_160 final : public MDx_HashFunction
+class BOTAN_PUBLIC_API(2,0) SHA_160 final : public MDx_HashFunction
{
public:
std::string name() const override { return "SHA-160"; }
diff --git a/src/lib/hash/sha2_32/sha2_32.h b/src/lib/hash/sha2_32/sha2_32.h
index a6619f0fc..89e21f0a4 100644
--- a/src/lib/hash/sha2_32/sha2_32.h
+++ b/src/lib/hash/sha2_32/sha2_32.h
@@ -16,7 +16,7 @@ namespace Botan {
/**
* SHA-224
*/
-class BOTAN_DLL SHA_224 final : public MDx_HashFunction
+class BOTAN_PUBLIC_API(2,0) SHA_224 final : public MDx_HashFunction
{
public:
std::string name() const override { return "SHA-224"; }
@@ -38,7 +38,7 @@ class BOTAN_DLL SHA_224 final : public MDx_HashFunction
/**
* SHA-256
*/
-class BOTAN_DLL SHA_256 final : public MDx_HashFunction
+class BOTAN_PUBLIC_API(2,0) SHA_256 final : public MDx_HashFunction
{
public:
std::string name() const override { return "SHA-256"; }
diff --git a/src/lib/hash/sha2_64/sha2_64.h b/src/lib/hash/sha2_64/sha2_64.h
index b027c4d27..5d9496871 100644
--- a/src/lib/hash/sha2_64/sha2_64.h
+++ b/src/lib/hash/sha2_64/sha2_64.h
@@ -15,7 +15,7 @@ namespace Botan {
/**
* SHA-384
*/
-class BOTAN_DLL SHA_384 final : public MDx_HashFunction
+class BOTAN_PUBLIC_API(2,0) SHA_384 final : public MDx_HashFunction
{
public:
std::string name() const override { return "SHA-384"; }
@@ -37,7 +37,7 @@ class BOTAN_DLL SHA_384 final : public MDx_HashFunction
/**
* SHA-512
*/
-class BOTAN_DLL SHA_512 final : public MDx_HashFunction
+class BOTAN_PUBLIC_API(2,0) SHA_512 final : public MDx_HashFunction
{
public:
std::string name() const override { return "SHA-512"; }
@@ -59,7 +59,7 @@ class BOTAN_DLL SHA_512 final : public MDx_HashFunction
/**
* SHA-512/256
*/
-class BOTAN_DLL SHA_512_256 final : public MDx_HashFunction
+class BOTAN_PUBLIC_API(2,0) SHA_512_256 final : public MDx_HashFunction
{
public:
std::string name() const override { return "SHA-512-256"; }
diff --git a/src/lib/hash/sha3/sha3.h b/src/lib/hash/sha3/sha3.h
index fec25b806..5c2c280be 100644
--- a/src/lib/hash/sha3/sha3.h
+++ b/src/lib/hash/sha3/sha3.h
@@ -17,7 +17,7 @@ namespace Botan {
/**
* SHA-3
*/
-class BOTAN_DLL SHA_3 : public HashFunction
+class BOTAN_PUBLIC_API(2,0) SHA_3 : public HashFunction
{
public:
@@ -77,7 +77,7 @@ class BOTAN_DLL SHA_3 : public HashFunction
/**
* SHA-3-224
*/
-class BOTAN_DLL SHA_3_224 final : public SHA_3
+class BOTAN_PUBLIC_API(2,0) SHA_3_224 final : public SHA_3
{
public:
SHA_3_224() : SHA_3(224) {}
@@ -86,7 +86,7 @@ class BOTAN_DLL SHA_3_224 final : public SHA_3
/**
* SHA-3-256
*/
-class BOTAN_DLL SHA_3_256 final : public SHA_3
+class BOTAN_PUBLIC_API(2,0) SHA_3_256 final : public SHA_3
{
public:
SHA_3_256() : SHA_3(256) {}
@@ -95,7 +95,7 @@ class BOTAN_DLL SHA_3_256 final : public SHA_3
/**
* SHA-3-384
*/
-class BOTAN_DLL SHA_3_384 final : public SHA_3
+class BOTAN_PUBLIC_API(2,0) SHA_3_384 final : public SHA_3
{
public:
SHA_3_384() : SHA_3(384) {}
@@ -104,7 +104,7 @@ class BOTAN_DLL SHA_3_384 final : public SHA_3
/**
* SHA-3-512
*/
-class BOTAN_DLL SHA_3_512 final : public SHA_3
+class BOTAN_PUBLIC_API(2,0) SHA_3_512 final : public SHA_3
{
public:
SHA_3_512() : SHA_3(512) {}
diff --git a/src/lib/hash/shake/shake.h b/src/lib/hash/shake/shake.h
index 363e8be48..b76d00546 100644
--- a/src/lib/hash/shake/shake.h
+++ b/src/lib/hash/shake/shake.h
@@ -17,7 +17,7 @@ namespace Botan {
/**
* SHAKE-128
*/
-class BOTAN_DLL SHAKE_128 : public HashFunction
+class BOTAN_PUBLIC_API(2,0) SHAKE_128 : public HashFunction
{
public:
@@ -49,7 +49,7 @@ class BOTAN_DLL SHAKE_128 : public HashFunction
/**
* SHAKE-256
*/
-class BOTAN_DLL SHAKE_256 : public HashFunction
+class BOTAN_PUBLIC_API(2,0) SHAKE_256 : public HashFunction
{
public:
diff --git a/src/lib/hash/skein/skein_512.h b/src/lib/hash/skein/skein_512.h
index ad47e4b1c..f34c4c283 100644
--- a/src/lib/hash/skein/skein_512.h
+++ b/src/lib/hash/skein/skein_512.h
@@ -18,7 +18,7 @@ namespace Botan {
/**
* Skein-512, a SHA-3 candidate
*/
-class BOTAN_DLL Skein_512 final : public HashFunction
+class BOTAN_PUBLIC_API(2,0) Skein_512 final : public HashFunction
{
public:
/**
diff --git a/src/lib/hash/tiger/tiger.h b/src/lib/hash/tiger/tiger.h
index 73907b71f..fc74b821b 100644
--- a/src/lib/hash/tiger/tiger.h
+++ b/src/lib/hash/tiger/tiger.h
@@ -15,7 +15,7 @@ namespace Botan {
/**
* Tiger
*/
-class BOTAN_DLL Tiger final : public MDx_HashFunction
+class BOTAN_PUBLIC_API(2,0) Tiger final : public MDx_HashFunction
{
public:
std::string name() const override;
diff --git a/src/lib/hash/whirlpool/whrlpool.h b/src/lib/hash/whirlpool/whrlpool.h
index ed541e497..2e96f3013 100644
--- a/src/lib/hash/whirlpool/whrlpool.h
+++ b/src/lib/hash/whirlpool/whrlpool.h
@@ -15,7 +15,7 @@ namespace Botan {
/**
* Whirlpool
*/
-class BOTAN_DLL Whirlpool final : public MDx_HashFunction
+class BOTAN_PUBLIC_API(2,0) Whirlpool final : public MDx_HashFunction
{
public:
std::string name() const override { return "Whirlpool"; }