references/kyber-submission-nist-round2/NIST-PQ-Submission-Kyber-20190330/Reference_Implementation/crypto_kem/kyber768/poly.c
/*************************************************
* Name:        poly_csubq
*
* Description: Applies conditional subtraction of q to each coefficient of a polynomial
*              for details of conditional subtraction of q see comments in reduce.c
*
* Arguments:   - poly *r:       pointer to input/output polynomial
**************************************************/
poly_csubq
Description: Applies conditional subtraction of q to each coefficient of a polynomial
for details of conditional subtraction of q see comments in reduce.c

- poly *r:       pointer to input/output polynomial
poly_csubq Description : Applies conditional subtraction of q to each coefficient of a polynomial for details of conditional subtraction of q see comments in reduce . c - poly * r : pointer to input / output polynomial
void poly_csubq(poly *r)
{
  int i;
  for(i=0;i<KYBER_N;i++)
    r->coeffs[i] = csubq(r->coeffs[i]);
}
void poly_csubq ( poly * r ) { int i ; for ( i = 0 ; i < KYBER_N ; i ++ ) r -> coeffs [ i ] = csubq ( r -> coeffs [ i ] ) ; }
Name:        poly_csubq
Description: Applies conditional subtraction of q to each coefficient of a polynomial
for details of conditional subtraction of q see comments in reduce.c
Name : poly_csubq Description : Applies conditional subtraction of q to each coefficient of a polynomial for details of conditional subtraction of q see comments in reduce . c