diff --git a/CMakeLists.txt b/CMakeLists.txt index f12dadd..85a0793 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,7 +30,7 @@ set(HMAC_HEADERS include/hmac_cpp/sha512.hpp include/hmac_cpp/secure_buffer.hpp include/hmac_cpp/memlock.hpp - include/hmac_cpp/secret.hpp + include/hmac_cpp/secret_string.hpp include/hmac_cpp/encoding.hpp include/hmac_cpp/version.hpp ) diff --git a/README-RU.md b/README-RU.md index 66f9d99..cf88565 100644 --- a/README-RU.md +++ b/README-RU.md @@ -145,7 +145,7 @@ auto mac = hmac::get_hmac(key, payload, hmac::TypeHash::SHA256); обфусцирует данные и по возможности закрепляет их в RAM: ```cpp -#include +#include hmac_cpp::secret_string token("super-secret-token"); diff --git a/README.md b/README.md index 7c4071e..05f4509 100644 --- a/README.md +++ b/README.md @@ -146,7 +146,7 @@ For additional protection in memory, `hmac_cpp::secret_string` obfuscates the data and tries to keep it locked in RAM: ```cpp -#include +#include hmac_cpp::secret_string token("super-secret-token"); diff --git a/example_secret.cpp b/example_secret.cpp index ee45623..81d59a6 100644 --- a/example_secret.cpp +++ b/example_secret.cpp @@ -1,5 +1,5 @@ #include -#include +#include int main() { hmac_cpp::secret_string token("super-secret-token"); diff --git a/include/hmac_cpp/secret.hpp b/include/hmac_cpp/secret_string.hpp similarity index 98% rename from include/hmac_cpp/secret.hpp rename to include/hmac_cpp/secret_string.hpp index c4bce7d..71243bb 100644 --- a/include/hmac_cpp/secret.hpp +++ b/include/hmac_cpp/secret_string.hpp @@ -1,5 +1,5 @@ -#ifndef HMAC_CPP_SECRET_HPP_INCLUDED -#define HMAC_CPP_SECRET_HPP_INCLUDED +#ifndef HMAC_CPP_SECRET_STRING_HPP_INCLUDED +#define HMAC_CPP_SECRET_STRING_HPP_INCLUDED #include #include @@ -270,4 +270,4 @@ class secret_string { } // namespace hmac_cpp -#endif // HMAC_CPP_SECRET_HPP_INCLUDED +#endif // HMAC_CPP_SECRET_STRING_HPP_INCLUDED diff --git a/test_all.cpp b/test_all.cpp index a4041b2..fefd729 100644 --- a/test_all.cpp +++ b/test_all.cpp @@ -12,7 +12,7 @@ #include "hmac_cpp/hmac.hpp" #include "hmac_cpp/hmac_utils.hpp" #include "hmac_cpp/encoding.hpp" -#include "hmac_cpp/secret.hpp" +#include "hmac_cpp/secret_string.hpp" static std::time_t mock_time_value = 0; static int mock_errno_value = 0;