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

blake2engine: Use .data() to get pointer to data and not .begin() #742

Closed
wants to merge 1 commit into from
Closed
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
blake2engine: Use .data() to get pointer to data and not .begin()
  • Loading branch information
autoantwort committed Apr 19, 2024
commit 846134add11ce524e121e3378b737b9a0e8c2df1
4 changes: 2 additions & 2 deletions src/core/include/utils/prng/blake2engine.h
Original file line number Diff line number Diff line change
@@ -142,8 +142,8 @@ class Blake2Engine {
void Generate() {
// m_counter is the input to the hash function
// m_buffer is the output
if (blake2xb(m_buffer.begin(), m_buffer.size() * sizeof(result_type),
&m_counter, sizeof(m_counter), m_seed.cbegin(),
if (blake2xb(m_buffer.data(), m_buffer.size() * sizeof(result_type),
&m_counter, sizeof(m_counter), m_seed.data(),
m_seed.size() * sizeof(result_type)) != 0) {
OPENFHE_THROW("PRNG: blake2xb failed");
}