From 8457d7f69980b24e6058201cd021a10542f380af Mon Sep 17 00:00:00 2001 From: Natan Freeman Date: Thu, 6 Jan 2022 15:46:26 +0200 Subject: [PATCH] Adds the CMake build files to the .gitignore --- .gitignore | 3 ++- rsa_cpp/.vscode/settings.json | 5 +++++ rsa_cpp/main.cpp | 10 ++++++---- 3 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 rsa_cpp/.vscode/settings.json diff --git a/.gitignore b/.gitignore index 9491a2f..1340895 100644 --- a/.gitignore +++ b/.gitignore @@ -360,4 +360,5 @@ MigrationBackup/ .ionide/ # Fody - auto-generated XML schema -FodyWeavers.xsd \ No newline at end of file +FodyWeavers.xsd +rsa_cpp/build diff --git a/rsa_cpp/.vscode/settings.json b/rsa_cpp/.vscode/settings.json new file mode 100644 index 0000000..5e09a03 --- /dev/null +++ b/rsa_cpp/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "files.associations": { + "chrono": "cpp" + } +} \ No newline at end of file diff --git a/rsa_cpp/main.cpp b/rsa_cpp/main.cpp index 47a09df..d2db5a4 100644 --- a/rsa_cpp/main.cpp +++ b/rsa_cpp/main.cpp @@ -5,12 +5,14 @@ int main() { const std::chrono::steady_clock::time_point start = std::chrono::steady_clock::now(); - + std::random_device rd; cryptb::random_engine engine(static_cast(rd.operator()())); - cryptb::rsa whatever{ engine }; - std::cout << "e: " << whatever.get_e() << std::endl << " d: " << whatever.get_d() << std::endl << " N: " << whatever.get_N() << std::endl; - + cryptb::rsa whatever{engine}; + std::cout << "e: " << whatever.get_e() << std::endl + << " d: " << whatever.get_d() << std::endl + << " N: " << whatever.get_N() << std::endl; + const std::chrono::steady_clock::time_point end = std::chrono::steady_clock::now(); const std::chrono::steady_clock::duration duration = end - start; const long double seconds = std::chrono::duration_cast(duration).count() / 1e9L;