/dports/security/seal/SEAL-3.7.2/native/src/seal/util/ |
H A D | rns.cpp | 102 SEAL_ITERATE(iter(base_), size_, [&](auto I) { in extend() 276 SEAL_ITERATE(iter(value, base_), size_, [&](auto I) { in decompose() 311 SEAL_ITERATE(iter(base_, value_out), size_, [&](auto I) { in decompose_array() 345 SEAL_ITERATE( in compose() 392 SEAL_ITERATE( in compose_array() 408 SEAL_ITERATE( in fast_convert() 433 SEAL_ITERATE( in fast_convert_array() 458 SEAL_ITERATE(iter(get<0>(I), temp), count, [&](auto J) { in fast_convert_array() 797 SEAL_ITERATE(temp, coeff_count_, [&](auto &J) { in divide_and_round_q_last_ntt_inplace() 926 SEAL_ITERATE( in sm_mrq() [all …]
|
H A D | polyarithsmallmod.h | 72 SEAL_ITERATE(iter(poly_array, result), size, [&](auto I) { in modulo_poly_coeffs() 95 SEAL_ITERATE(iter(poly, result), coeff_count, [&](auto I) { in negate_poly_coeffmod() 157 SEAL_ITERATE(iter(poly_array, result), size, [&](auto I) { in negate_poly_coeffmod() 226 SEAL_ITERATE(iter(operand1, operand2, result), size, [&](auto I) { in add_poly_coeffmod() 295 SEAL_ITERATE(iter(operand1, operand2, result), size, [&](auto I) { in sub_poly_coeffmod() 363 SEAL_ITERATE(iter(poly_array, result), size, [&](auto I) { in add_poly_scalar_coeffmod() 431 SEAL_ITERATE(iter(poly_array, result), size, [&](auto I) { in sub_poly_scalar_coeffmod() 500 SEAL_ITERATE(iter(poly_array, result), size, [&](auto I) { in multiply_poly_scalar_coeffmod() 629 SEAL_ITERATE(iter(poly_array, result), size, [&](auto I) { in negacyclic_shift_poly_coeffmod() 709 SEAL_ITERATE(iter(poly_array, result), size, [&](auto I) { in negacyclic_multiply_poly_mono_coeffmod() [all …]
|
H A D | polyarithsmallmod.cpp | 38 SEAL_ITERATE( in modulo_poly_coeffs() 71 SEAL_ITERATE(iter(operand1, operand2, result), coeff_count, [&](auto I) { in add_poly_coeffmod() 115 SEAL_ITERATE(iter(operand1, operand2, result), coeff_count, [&](auto I) { in sub_poly_coeffmod() 158 SEAL_ITERATE(iter(poly, result), coeff_count, [&](auto I) { in add_poly_scalar_coeffmod() 190 SEAL_ITERATE(iter(poly, result), coeff_count, [&](auto I) { in sub_poly_scalar_coeffmod() 219 SEAL_ITERATE(iter(poly, result), coeff_count, [&](auto I) { in multiply_poly_scalar_coeffmod() 259 SEAL_ITERATE(iter(operand1, operand2, result), coeff_count, [&](auto I) { in dyadic_product_coeffmod() 304 SEAL_ITERATE(operand, coeff_count, [&](auto I) { in poly_infty_norm_coeffmod()
|
H A D | ntt.h | 210 SEAL_ITERATE(iter(operand, tables), coeff_modulus_size, [&](auto I) { in ntt_negacyclic_harvey_lazy() 227 SEAL_ITERATE( in ntt_negacyclic_harvey_lazy() 245 SEAL_ITERATE(iter(operand, tables), coeff_modulus_size, [&](auto I) { in ntt_negacyclic_harvey() 262 SEAL_ITERATE( in ntt_negacyclic_harvey() 281 SEAL_ITERATE(iter(operand, tables), coeff_modulus_size, [&](auto I) { in inverse_ntt_negacyclic_harvey_lazy() 298 SEAL_ITERATE(operand, size, [&](auto I) { in inverse_ntt_negacyclic_harvey_lazy() 318 SEAL_ITERATE(iter(operand, tables), coeff_modulus_size, [&](auto I) { in inverse_ntt_negacyclic_harvey() 335 SEAL_ITERATE( in inverse_ntt_negacyclic_harvey()
|
H A D | scalingvariant.cpp | 36 SEAL_ITERATE(iter(plain.data(), size_t(0)), plain_coeff_count, [&](auto I) { in multiply_add_plain_with_scaling_variant() 50 SEAL_ITERATE( in multiply_add_plain_with_scaling_variant() 79 SEAL_ITERATE(iter(plain.data(), size_t(0)), plain_coeff_count, [&](auto I) { in multiply_sub_plain_with_scaling_variant() 93 SEAL_ITERATE( in multiply_sub_plain_with_scaling_variant()
|
H A D | galois.h | 49 SEAL_ITERATE(iter(operand, modulus, result), coeff_modulus_size, [&](auto I) { in apply_galois() 73 SEAL_ITERATE(iter(operand, result), size, [&](auto I) { in apply_galois() 93 SEAL_ITERATE(iter(operand, result), coeff_modulus_size, [&](auto I) { in apply_galois_ntt() 116 SEAL_ITERATE(iter(operand, result), size, [&](auto I) { in apply_galois_ntt()
|
H A D | rlwe.cpp | 31 SEAL_ITERATE(iter(destination), coeff_count, [&](auto &I) { in sample_poly_ternary() 34 SEAL_ITERATE( in sample_poly_ternary() 57 SEAL_ITERATE(iter(destination), coeff_count, [&](auto &I) { in sample_poly_normal() 60 SEAL_ITERATE( in sample_poly_normal() 94 SEAL_ITERATE(iter(destination), coeff_count, [&](auto &I) { in sample_poly_cbd() 97 SEAL_ITERATE( in sample_poly_cbd()
|
H A D | defines.h | 162 #define SEAL_ITERATE seal::util::seal_for_each_n macro 164 #define SEAL_ITERATE std::for_each_n macro
|
H A D | ntt.cpp | 424 SEAL_ITERATE(operand, n, [&](auto &I) { in ntt_negacyclic_harvey() 466 SEAL_ITERATE(operand, n, [&](auto &I) { in inverse_ntt_negacyclic_harvey()
|
H A D | galois.cpp | 217 … SEAL_ITERATE(iter(table, result), coeff_count_, [&](auto I) { get<1>(I) = operand[get<0>(I)]; }); in apply_galois_ntt()
|
/dports/security/seal/SEAL-3.7.2/native/src/seal/ |
H A D | evaluator.cpp | 378 SEAL_ITERATE(iter(size_t(0)), dest_size, [&](auto I) { in bfv_multiply() 524 SEAL_ITERATE(coeff_modulus, coeff_modulus_size, [&](auto I) { in ckks_multiply() 559 SEAL_ITERATE(iter(size_t(0)), dest_size, [&](auto I) { in ckks_multiply() 882 SEAL_ITERATE(iter(size_t(0)), relins_needed, [&](auto I) { in relinearize_internal() 934 SEAL_ITERATE(iter(encrypted_copy), encrypted_size, [&](auto I) { in mod_switch_scale_to_next() 997 SEAL_ITERATE( in mod_switch_drop_to_next() 1660 SEAL_ITERATE(iter(encrypted), encrypted_size, [&](auto I) { in multiply_plain_normal() 1706 SEAL_ITERATE(iter(encrypted_ntt), encrypted_ntt_size, [&](auto I) { in multiply_plain_ntt() 1793 SEAL_ITERATE(helper_iter, coeff_modulus_size, [&](auto I) { in transform_to_ntt_inplace() 2152 SEAL_ITERATE(iter(size_t(0)), rns_modulus_size, [&](auto I) { in switch_key_inplace() [all …]
|
H A D | decryptor.cpp | 35 SEAL_ITERATE(poly, coeff_count, [&](auto I) { in poly_infty_norm_coeffmod() 225 SEAL_ITERATE( in compute_secret_key_array() 274 SEAL_ITERATE( in dot_product_ct_sk_array() 284 SEAL_ITERATE( in dot_product_ct_sk_array() 315 SEAL_ITERATE(iter(encrypted_copy, secret_key_array), encrypted_size - 1, [&](auto I) { in dot_product_ct_sk_array() 320 SEAL_ITERATE(encrypted_copy, encrypted_size - 1, [&](auto I) { in dot_product_ct_sk_array()
|
H A D | keygenerator.cpp | 285 … SEAL_ITERATE(iter(secret_key_power, next_secret_key_power), new_size - old_size, [&](auto I) { in compute_secret_key_array() 328 … SEAL_ITERATE(iter(new_key, key_modulus, destination, size_t(0)), decomp_mod_count, [&](auto I) { in generate_one_kswitch_key() 365 SEAL_ITERATE(iter(new_keys, destination.data()), num_keys, [&](auto I) { in generate_kswitch_keys()
|
H A D | encryptor.cpp | 138 SEAL_ITERATE(iter(temp, destination), temp.size(), [&](auto I) { in encrypt_zero_internal()
|
/dports/security/seal/SEAL-3.7.2/native/tests/seal/util/ |
H A D | iterator.cpp | 67 SEAL_ITERATE(iter(0), 0, [&](auto I) { in TEST() 76 SEAL_ITERATE(iter(0), 1, [&](auto I) { in TEST() 85 SEAL_ITERATE(iter(0), 10, [&](auto I) { in TEST() 93 … SEAL_ITERATE(iter(0, reverse_iter(0)), 10, [&](auto I) { sum += get<0>(I) + get<1>(I); }); in TEST()
|
/dports/security/seal/SEAL-3.7.2/cmake/ |
H A D | SEALConfig.cmake.in | 20 # SEAL_USE_STD_FOR_EACH_N : Set to non-zero value if library uses std::for_each_n for SEAL_ITERATE
|
/dports/security/seal/SEAL-3.7.2/ |
H A D | CHANGES.md | 315 This results in simpler code, where inside `SEAL_ITERATE` lambda functions dereferences of `seal::u… 316 … a dereferenced `seal::util::IterTuple` to an inner lambda function in nested `SEAL_ITERATE` calls. 317 …ide another call to `seal::util::iter` before passed on to the inner `SEAL_ITERATE` to produce an … 341 - Added macro `SEAL_ITERATE` that should be used instead of `for_each_n`.
|