Skip to content

Commit

Permalink
take advantage of GH #3297
Browse files Browse the repository at this point in the history
  • Loading branch information
reneme committed Mar 17, 2023
1 parent 7bae133 commit a7d7457
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/pubkey/kyber/kyber_90s/kyber_90s.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class Kyber_90s_Symmetric_Primitives : public Kyber_Symmetric_Primitives
std::span<const uint8_t> seed) :
m_cipher(std::move(cipher))
{
m_cipher->set_key(seed.data(), seed.size());
m_cipher->set_key(seed);
}

void set_position(const std::tuple<uint8_t, uint8_t>& matrix_position) override
Expand All @@ -77,7 +77,7 @@ class Kyber_90s_Symmetric_Primitives : public Kyber_Symmetric_Primitives
const uint8_t nonce,
const size_t outlen) const override
{
m_aes256_ctr->set_key(seed.data(), seed.size());
m_aes256_ctr->set_key(seed);

const std::array<uint8_t, 12> iv = {nonce, 0};
m_aes256_ctr->set_iv(iv.data(), iv.size());
Expand Down

0 comments on commit a7d7457

Please sign in to comment.