diff --git a/native/src/seal/evaluator.cpp b/native/src/seal/evaluator.cpp index 25f4568b..841b45e0 100644 --- a/native/src/seal/evaluator.cpp +++ b/native/src/seal/evaluator.cpp @@ -680,7 +680,7 @@ namespace seal inverse_ntt_negacyclic_harvey(encrypted1, encrypted1.size(), ntt_table); } - void Evaluator::square_inplace(Ciphertext &encrypted, MemoryPoolHandle pool) + void Evaluator::square_inplace(Ciphertext &encrypted, MemoryPoolHandle pool) const { // Verify parameters. if (!is_metadata_valid_for(encrypted, context_) || !is_buffer_valid(encrypted)) @@ -931,7 +931,7 @@ namespace seal encrypted.scale() = new_scale; } - void Evaluator::bgv_square(Ciphertext &encrypted, MemoryPoolHandle pool) + void Evaluator::bgv_square(Ciphertext &encrypted, MemoryPoolHandle pool) const { if (encrypted.is_ntt_form()) { diff --git a/native/src/seal/util/polyarithsmallmod.h b/native/src/seal/util/polyarithsmallmod.h index 16be6084..d0fef603 100644 --- a/native/src/seal/util/polyarithsmallmod.h +++ b/native/src/seal/util/polyarithsmallmod.h @@ -159,7 +159,7 @@ namespace seal }); } - inline void add_poly_coeffmod( + void add_poly_coeffmod( ConstCoeffIter operand1, ConstCoeffIter operand2, std::size_t coeff_count, const Modulus &modulus, CoeffIter result);