references/kyber-submission-nist-round2/NIST-PQ-Submission-Kyber-20190330/Reference_Implementation/crypto_kem/kyber768/poly.c
/*************************************************
* Name:        poly_sub
*
* Description: Subtract two polynomials
*
* Arguments: - poly *r:       pointer to output polynomial
*            - const poly *a: pointer to first input polynomial
*            - const poly *b: pointer to second input polynomial
**************************************************/
poly_sub
Description: Subtract two polynomials

- poly *r:       pointer to output polynomial
const poly *a: pointer to first input polynomial
const poly *b: pointer to second input polynomial
poly_sub Description : Subtract two polynomials - poly * r : pointer to output polynomial const poly * a : pointer to first input polynomial const poly * b : pointer to second input polynomial
void poly_sub(poly *r, const poly *a, const poly *b)
{
  int i;
  for(i=0;i<KYBER_N;i++)
    r->coeffs[i] = a->coeffs[i] - b->coeffs[i];
}
void poly_sub ( poly * r , const poly * a , const poly * b ) { int i ; for ( i = 0 ; i < KYBER_N ; i ++ ) r -> coeffs [ i ] = a -> coeffs [ i ] - b -> coeffs [ i ] ; }
Name:        poly_sub
Description: Subtract two polynomials
Name : poly_sub Description : Subtract two polynomials