INNER CODE UNIT · C
ctr1
pq-crystals/dilithium · avx2/poly.c:575
ctr1 = rej_eta_avx(a1->coeffs, buf[1].coeffs);
ctr2 = rej_eta_avx(a2->coeffs, buf[2].coeffs);
ctr3 = rej_eta_avx(a3->coeffs, buf[3].coeffs);
while(ctr0 < N || ctr1 < N || ctr2 < N || ctr3 < N) {
shake256x4_squeezeblocks(buf[0].coeffs, buf[1].coeffs, buf[2].coeffs, buf[3].coeffs, 1, &state);
ctr0 += rej_eta(a0->coeffs + ctr0, N - ctr0, buf[0].coeffs, SHAKE256_RATE);
ctr1 += rej_eta(a1->coeffs + ctr1, N - ctr1, buf[1].coeffs, SHAKE256_RATE);
ctr2 += rej_eta(a2->coeffs + ctr2, N - ctr2, buf[2].coeffs, SHAKE256_RATE);
ctr3 += rej_eta(a3->coeffs + ctr3, N - ctr3, buf[3].coeffs, SHAKE256_RATE);
}
}
/*************************************************
* Name: poly_uniform_gamma1
*
* Description: Sample polynomial with uniformly random coefficients