Home
last modified time | relevance | path

Searched refs:reduce_once (Results 1 – 5 of 5) sorted by relevance

/freebsd/crypto/openssl/crypto/ml_dsa/
H A Dml_dsa_ntt.c99 return reduce_once(c); /* 0..q */ in reduce_montgomery()
146 p->coeff[j] = reduce_once(w_even + t_odd); in ossl_ml_dsa_poly_ntt()
184 p->coeff[j] = reduce_once(odd + even); in ossl_ml_dsa_poly_ntt_inverse()
H A Dml_dsa_local.h112 static ossl_inline ossl_unused uint32_t reduce_once(uint32_t x) in reduce_once() function
130 return reduce_once(ML_DSA_Q + a - b); in mod_sub()
H A Dml_dsa_key_compress.c137 uint32_t r = reduce_once(r_plus_z + ct0); in ossl_ml_dsa_key_compress_make_hint()
H A Dml_dsa_poly.h39 out->coeff[i] = reduce_once(lhs->coeff[i] + rhs->coeff[i]); in poly_add()
/freebsd/crypto/openssl/crypto/ml_kem/
H A Dml_kem.c792 static __owur uint16_t reduce_once(uint16_t x) in reduce_once() function
812 return reduce_once(remainder); in reduce()
852 *peer++ = reduce_once(even - odd + kPrime); in scalar_ntt()
853 *curr++ = reduce_once(odd + even); in scalar_ntt()
885 *curr++ = reduce_once(odd + even); in scalar_inverse_ntt()
898 lhs->c[i] = reduce_once(lhs->c[i] + rhs->c[i]); in scalar_add()
907 lhs->c[i] = reduce_once(lhs->c[i] - rhs->c[i] + kPrime); in scalar_sub()
1100 *curr = reduce_once(*curr + (mask & half_q_plus_1)); \ in scalar_decode_decompress_add()