Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds the CMake build files to the .gitignore #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -360,4 +360,5 @@ MigrationBackup/
.ionide/

# Fody - auto-generated XML schema
FodyWeavers.xsd
FodyWeavers.xsd
rsa_cpp/build
5 changes: 5 additions & 0 deletions rsa_cpp/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"files.associations": {
"chrono": "cpp"
}
}
10 changes: 6 additions & 4 deletions rsa_cpp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<boost::multiprecision::uint128_t>(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<std::chrono::nanoseconds>(duration).count() / 1e9L;
Expand Down