diff options
Diffstat (limited to 'butl/sha256')
-rw-r--r-- | butl/sha256 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/butl/sha256 b/butl/sha256 index a1d0c38..77fa6bd 100644 --- a/butl/sha256 +++ b/butl/sha256 @@ -10,6 +10,8 @@ #include <cstdint> #include <cstddef> // size_t +#include <butl/export> + namespace butl { // SHA256 checksum calculator. @@ -19,7 +21,7 @@ namespace butl // // cerr << sha256 ("123").string () << endl; // - class sha256 + class LIBBUTL_EXPORT sha256 { public: sha256 (); @@ -85,14 +87,14 @@ namespace butl // like 01:AB:CD:...). Throw invalid_argument if the argument is not a valid // SHA256 string. // - std::string + LIBBUTL_EXPORT std::string sha256_to_fingerprint (const std::string&); // Convert a fingerprint (32 colon-separated hex digit pairs) to the SHA256 // string representation (64 lower case hex digits). Throw invalid_argument // if the argument is not a valid fingerprint. // - std::string + LIBBUTL_EXPORT std::string fingerprint_to_sha256 (const std::string&); }; |