diff --git a/mlkem/poly.c b/mlkem/poly.c index 81973cd4..6fcc69b0 100644 --- a/mlkem/poly.c +++ b/mlkem/poly.c @@ -372,25 +372,6 @@ void poly_tomsg(uint8_t msg[KYBER_INDCPA_MSGBYTES], const poly *a) } } -/************************************************* -* Name: poly_getnoise_eta1 -* -* Description: Sample a polynomial deterministically from a seed and a nonce, -* with output polynomial close to centered binomial distribution -* with parameter KYBER_ETA1 -* -* 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 -**************************************************/ -void poly_getnoise_eta1(poly *r, const uint8_t seed[KYBER_SYMBYTES], uint8_t nonce) -{ - uint8_t buf[KYBER_ETA1 * KYBER_N / 4]; - prf(buf, sizeof(buf), seed, nonce); - poly_cbd_eta1(r, buf); -} - /************************************************* * Name: poly_getnoise_eta1_4x * diff --git a/mlkem/poly.h b/mlkem/poly.h index 6950568a..3b21853d 100644 --- a/mlkem/poly.h +++ b/mlkem/poly.h @@ -93,9 +93,6 @@ void poly_frommsg(poly *r, const uint8_t msg[KYBER_INDCPA_MSGBYTES]); #define poly_tomsg KYBER_NAMESPACE(poly_tomsg) void poly_tomsg(uint8_t msg[KYBER_INDCPA_MSGBYTES], const poly *r); -#define poly_getnoise_eta1 KYBER_NAMESPACE(poly_getnoise_eta1) -void poly_getnoise_eta1(poly *r, const uint8_t seed[KYBER_SYMBYTES], uint8_t nonce); - #define poly_getnoise_eta1_4x KYBER_NAMESPACE(poly_getnoise_eta1_4x) void poly_getnoise_eta1_4x(poly *r0, poly *r1,