references/NIST-PQ-Submission-Kyber-20201001/Additional_Implementations/avx2/crypto_kem/kyber768/poly.c
/*************************************************
* Name:        poly_getnoise_eta2
*
* Description: Sample a polynomial deterministically from a seed and a nonce,
*              with output polynomial close to centered binomial distribution
*              with parameter KYBER_ETA2
*
* Arguments:   - poly *r:             pointer to output polynomial
*              - const uint8_t *seed: pointer to input seed
*                                     (of length KYBER_SYMBYTES bytes)
*              - uint8_t nonce:       one-byte input nonce
**************************************************/
poly_getnoise_eta2
Description: Sample a polynomial deterministically from a seed and a nonce,
with output polynomial close to centered binomial distribution
with parameter KYBER_ETA2

- poly *r:             pointer to output polynomial
const uint8_t *seed: pointer to input seed
(of length KYBER_SYMBYTES bytes)
uint8_t nonce:       one-byte input nonce
poly_getnoise_eta2 Description : Sample a polynomial deterministically from a seed and a nonce with output polynomial close to centered binomial distribution with parameter KYBER_ETA2 - poly * r : pointer to output polynomial const uint8_t * seed : pointer to input seed ( of length KYBER_SYMBYTES bytes ) uint8_t nonce : one - byte input nonce
void poly_getnoise_eta2(poly *r, const uint8_t seed[KYBER_SYMBYTES], uint8_t nonce)
{
  __attribute__((aligned(32)))
  uint8_t buf[KYBER_ETA2*KYBER_N/4];
  prf(buf, sizeof(buf), seed, nonce);
  cbd_eta2(r, buf);
}
void poly_getnoise_eta2 ( poly * r , const uint8_t seed [ KYBER_SYMBYTES ] , uint8_t nonce ) { __attribute__ ( ( aligned ( 32 ) ) ) uint8_t buf [ KYBER_ETA2 * KYBER_N / 4 ] ; prf ( buf , sizeof ( buf ) , seed , nonce ) ; cbd_eta2 ( r , buf ) ; }
Name:        poly_getnoise_eta2
Description: Sample a polynomial deterministically from a seed and a nonce,
with output polynomial close to centered binomial distribution
with parameter KYBER_ETA2
Name : poly_getnoise_eta2 Description : Sample a polynomial deterministically from a seed and a nonce with output polynomial close to centered binomial distribution with parameter KYBER_ETA2