Skip to content

Commit

Permalink
cleanup sampling function
Browse files Browse the repository at this point in the history
  • Loading branch information
GiacomoPope committed Jul 26, 2024
1 parent 7851ecc commit b4b2c01
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/dilithium_py/polynomials/polynomials.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,6 @@ def coefficient_from_half_byte(j, eta):
coeffs[i] = c1
i += 1

# Remove the last byte if we ended up overfilling
if len(coeffs) > 256:
coeffs = coeffs[:256]

return self(coeffs)

def sample_mask_polynomial(self, rho_prime, i, kappa, gamma_1):
Expand Down

0 comments on commit b4b2c01

Please sign in to comment.