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

Constexpr SHA-3 Implementation and To-Hex-Meta-String Support #904

Open
refvalue opened this issue Feb 14, 2025 · 5 comments
Open

Constexpr SHA-3 Implementation and To-Hex-Meta-String Support #904

refvalue opened this issue Feb 14, 2025 · 5 comments

Comments

@refvalue
Copy link
Contributor

refvalue commented Feb 14, 2025

Feature

Constexpr SHA-3 Algorithm Implementation.
A fundamental support for byte-array-to-hex-meta_string.
https://doi.org/10.6028/NIST.FIPS.202

Example

//refvalue::meta_string{"4ACB502EEC4FE8ECDA6E0A8D386FFE6B9B24B8CE2E22F6C8ABC729EC521D361CD883044B720458DCC7472906CC49D9D5"}

constexpr auto hash = to_hexadecimal_meta_string(sha3_digest<sha3_type::sha3_384>( "Whenever you want to, I can help.");

@refvalue
Copy link
Contributor Author

#903

@refvalue
Copy link
Contributor Author

@qicosmos
@poor-circle
@PikachuHyA
Please review this feature. Thanks.

@qicosmos
Copy link
Collaborator

Thanks for your PR, we will review it later.

@qicosmos
Copy link
Collaborator

@refvalue

a question, will sha-3 be used in your company?

@refvalue
Copy link
Contributor Author

@refvalue

a question, will sha-3 be used in your company?

Hi @qicosmos. I've utilized SHA-3 in some of my projects due to its strong assurance of security, particularly its resistance to collisions and cryptographic robustness. Maybe this tool can be used to create signatures at compile time for consumers (IMO ^^).

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

No branches or pull requests

2 participants