We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hash_Function::final_truncated()
For certain applications it would actually be nice if Hash_Function could truncate internally. Something like:
Hash_Function
void Hash_Function::final_truncated(std::span<uint8_t> out) { if(out.size() == output_length()) { final(out); } else { const auto h = final(); copy_mem(out, std::span{h}.first(out.size())); } }
Or perhaps even pass the shorter span down into the individual hash functions to partially-copy straight from the hash's internal state (if possible).
Originally posted by @reneme in #4455 (comment)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
For certain applications it would actually be nice if
Hash_Function
could truncate internally. Something like:Or perhaps even pass the shorter span down into the individual hash functions to partially-copy straight from the hash's internal state (if possible).
Originally posted by @reneme in #4455 (comment)
The text was updated successfully, but these errors were encountered: