From 846134add11ce524e121e3378b737b9a0e8c2df1 Mon Sep 17 00:00:00 2001 From: Leander Schulten Date: Fri, 19 Apr 2024 18:02:01 +0200 Subject: [PATCH] blake2engine: Use .data() to get pointer to data and not .begin() --- src/core/include/utils/prng/blake2engine.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/include/utils/prng/blake2engine.h b/src/core/include/utils/prng/blake2engine.h index 48ff40133..43c92b883 100644 --- a/src/core/include/utils/prng/blake2engine.h +++ b/src/core/include/utils/prng/blake2engine.h @@ -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"); }