Skip to content

Commit

Permalink
calculate L
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci committed Jul 21, 2024
1 parent f536e7d commit 2aae2de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hppk.go
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ func verifySignature(sig *Signature, digest []byte, pub *PublicKey, prime *big.I
func createCoPrimePair(polyTerms int, p *big.Int) (R *big.Int, S *big.Int, err error) {
one := big.NewInt(1)

bitLength := 2*p.BitLen() + big.NewInt(int64(polyTerms)).BitLen()
bitLength := 2*p.BitLen() + big.NewInt(int64(polyTerms*MULTIVARIATE)).BitLen()
L := big.NewInt(1)
L.Lsh(L, uint(bitLength))

Expand Down

0 comments on commit 2aae2de

Please sign in to comment.