Skip to content

Commit 2aae2de

Browse files
committed
calculate L
1 parent f536e7d commit 2aae2de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hppk.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ func verifySignature(sig *Signature, digest []byte, pub *PublicKey, prime *big.I
510510
func createCoPrimePair(polyTerms int, p *big.Int) (R *big.Int, S *big.Int, err error) {
511511
one := big.NewInt(1)
512512

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

0 commit comments

Comments
 (0)