Skip to content

Commit

Permalink
Fix fuzzer
Browse files Browse the repository at this point in the history
  • Loading branch information
randombit committed Jun 14, 2024
1 parent 02ca6c0 commit 5815410
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fuzzer/mp_redc_crandall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ void fuzz(const uint8_t in[], size_t in_len) {

const auto refc = refz % refp;

const auto rc = Botan::redc_crandall<word, 4, C>(z);

std::array<word, 8> z = {};
for(size_t i = 0; i != 8; ++i) {
z[7 - i] = Botan::load_be<word>(in, i);
}

const auto rc = Botan::redc_crandall<word, 4, C>(z);

compare_word_vec(rc.data(), 4, refc._data(), refc.sig_words(), "Crandall reduction");
}

0 comments on commit 5815410

Please sign in to comment.