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

sha-256 impl #3

Merged
merged 3 commits into from
Sep 26, 2024
Merged

sha-256 impl #3

merged 3 commits into from
Sep 26, 2024

Conversation

cmazakas
Copy link
Contributor

This will form the base of all the future sha-2 algorithms

@@ -0,0 +1,229 @@
#ifndef SHA2_HPP_INCLUDED
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Include guard should be BOOST_HASH2_SHA2_HPP_INCLUDED.

test/sha2.cpp Outdated

for( std::size_t i = 0; i < N; ++i )
{
char buffer[ 4 ];
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tabs.

test/sha2.cpp Outdated

template<std::size_t N> std::string to_string( std::array<unsigned char, N> const & v )
{
std::string r;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indent 2?

@pdimov pdimov merged commit 2ffd620 into pdimov:develop Sep 26, 2024
57 checks passed
@cmazakas cmazakas deleted the feature/sha2 branch September 26, 2024 04:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants